From nobody Sun Feb 8 01:29:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1642686808475803.7043405890117; Thu, 20 Jan 2022 05:53:28 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-460-kz1_Ro0TPOu4SRla4eNo3w-1; Thu, 20 Jan 2022 08:53:23 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 71D6210B7466; Thu, 20 Jan 2022 13:53:18 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C6FB2378D; Thu, 20 Jan 2022 13:53:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1EC3A4A707; Thu, 20 Jan 2022 13:53:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20KDrCCP008897 for ; Thu, 20 Jan 2022 08:53:12 -0500 Received: by smtp.corp.redhat.com (Postfix) id 48FD5C33AE3; Thu, 20 Jan 2022 13:53:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 438ECC33AE5 for ; Thu, 20 Jan 2022 13:53:12 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 22F693C15115 for ; Thu, 20 Jan 2022 13:53:12 +0000 (UTC) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-639-yJfnlHPgM02JNqR5aBGg2g-2; Thu, 20 Jan 2022 08:53:10 -0500 Received: by mail-oi1-f179.google.com with SMTP id s22so8911297oie.10 for ; Thu, 20 Jan 2022 05:53:10 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id a26sm1574102oiy.26.2022.01.20.05.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:53:09 -0800 (PST) X-MC-Unique: kz1_Ro0TPOu4SRla4eNo3w-1 X-MC-Unique: yJfnlHPgM02JNqR5aBGg2g-2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yieHIgNTEp10T/XYz3B7xUa2CdxzsMhmCJOTRy31XV0=; b=tRnOLq9X/aEXXe/yuxSIzHIVnWe/wOmzf646u5X1UM6Q983a5YnTlmqpqRRpSXtnRy VV027pU2Qb2jVZq+4s1EiomnD36v2aZFq333hHrAoXIDWhV0GuClc17gA0dJJoyLQh/R iGoX8FreCjBY1oJkBwHB2qb8BLJP2mzT3LtxfokazsADkxUc7VHvyZY2yHroZvSMacDE NYVLq/zvsY+zdTkIYJRn1E/EnCsnZ44b/ajdATxPqJ22QBntN+dpJPfLYaWHn2Pg8ggR zXVvB9mTDiWoNZi+MclH1y+vhrQtOqQ2imzoBTpcreZ23LXDI3pLclkhOdXvMG5sxn02 XtJw== X-Gm-Message-State: AOAM532pSXUK6i+N5HkXrBcfMLc4Cnm7hRowXHUVajQw6NoNvEyjLJcI aR7go0BvhemhvPOCJGSNPy9lTNGAgMg= X-Google-Smtp-Source: ABdhPJxMgvZ5lMbpsczbUIGZ3dBpl4eFITeCBX7bhOPzz/3nNrxkJqOj8jJ8VU/P/Dx8cGsF5XbXRw== X-Received: by 2002:a05:6808:bcc:: with SMTP id o12mr7705573oik.66.1642686789800; Thu, 20 Jan 2022 05:53:09 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 11/33] conf: add 'pnv-phb3-root-port' domain definition Date: Thu, 20 Jan 2022 10:52:14 -0300 Message-Id: <20220120135236.719924-12-danielhb413@gmail.com> In-Reply-To: <20220120135236.719924-1-danielhb413@gmail.com> References: <20220120135236.719924-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-loop: libvir-list@redhat.com Cc: fbarrat@linux.ibm.com, danielhb413@gmail.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1642686810325100001 Content-Type: text/plain; charset="utf-8" Apart from being usable only with pnv-phb3 PCIE host bridges (to be added soon), this device acts as a regular pcie-root-port but with a specific model name. Signed-off-by: Daniel Henrique Barboza --- docs/schemas/domaincommon.rng | 1 + src/conf/domain_conf.c | 1 + src/conf/domain_conf.h | 1 + src/qemu/qemu_validate.c | 2 ++ 4 files changed, 5 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 169b8d8dee..9e2797ec58 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2601,6 +2601,7 @@ ioh3420 pcie-root-port + pnv-phb3-root-port x3130-upstream diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 393f9d9478..c540b740df 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -437,6 +437,7 @@ VIR_ENUM_IMPL(virDomainControllerPCIModelName, "pcie-root-port", "spapr-pci-host-bridge", "pcie-pci-bridge", + "pnv-phb3-root-port", ); =20 VIR_ENUM_IMPL(virDomainControllerModelSCSI, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index e2f35fe20b..18aa7a885b 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -645,6 +645,7 @@ typedef enum { VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PCIE_ROOT_PORT, VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_SPAPR_PCI_HOST_BRIDGE, VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PCIE_PCI_BRIDGE, + VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB3_ROOT_PORT, =20 VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_LAST } virDomainControllerPCIModelName; diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 95af0ecf3b..bdb7c6f1e6 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -3429,6 +3429,8 @@ virValidateControllerPCIModelNameToQEMUCaps(int model= Name) return QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE; case VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PCIE_PCI_BRIDGE: return QEMU_CAPS_DEVICE_PCIE_PCI_BRIDGE; + case VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB3_ROOT_PORT: + return QEMU_CAPS_DEVICE_PNV_PHB3_ROOT_PORT; case VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_NONE: return 0; case VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_LAST: --=20 2.34.1