From nobody Sat Feb 7 22:34:28 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 1642686878632655.6193508365384; Thu, 20 Jan 2022 05:54:38 -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-74-va5yMWv0OviajlP3gbbdGw-1; Thu, 20 Jan 2022 08:54:33 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F04CF92518; Thu, 20 Jan 2022 13:54:27 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CA7727B6CA; Thu, 20 Jan 2022 13:54:27 +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 9896118218BB; Thu, 20 Jan 2022 13:54:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20KDrd5M009731 for ; Thu, 20 Jan 2022 08:53:39 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7A06A492D49; Thu, 20 Jan 2022 13:53:39 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 75F53492CA3 for ; Thu, 20 Jan 2022 13:53:39 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (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 5D1B41078461 for ; Thu, 20 Jan 2022 13:53:39 +0000 (UTC) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-36-k9Fis5u6Ocyod-4bBUzrXQ-3; Thu, 20 Jan 2022 08:53:37 -0500 Received: by mail-ot1-f52.google.com with SMTP id m8-20020a9d4c88000000b00592bae7944bso7670152otf.1 for ; Thu, 20 Jan 2022 05:53:36 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id a26sm1574102oiy.26.2022.01.20.05.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:53:36 -0800 (PST) X-MC-Unique: va5yMWv0OviajlP3gbbdGw-1 X-MC-Unique: k9Fis5u6Ocyod-4bBUzrXQ-3 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=XnddmX3aCdYU2CrBEysdWIhFXywAlzFDavqs4keskz0=; b=VqvmvdzPSHCDMUG1TOwvewPBI3zfLxoW417Kr+SrK37QX5C4V9ohJ/v49dyALypey0 SYQdgGDz4uiDnY9hKpBb/3pNYMH0BTuAWh+b5P20dYxlbqFn1B2fO5ZhX0vR36GVJ5jV QHTY7PGUFOqrmQRhqA0aIq0viNfeks4hOa6mGXfh8ljf6Qqq+QLOjHKJ0VDPlx66KW3P db6Pc9YMDHW0xA0zIaQb4f40IXuO+kjZ7TAJrRT+ZsHgM98f3mIvQGJIxYx5GnepHYM3 xYGCx4UtT3rzaWDx4RhyZc5XDZuQZc7ch92Lz4lvEMVOnb1adWXH3IfMy0Lle/PBXzVd ZmAw== X-Gm-Message-State: AOAM53220O4JAnACR+M6cQezcZHbk5JmwP1oS4Epv2jQJzwdxEB7kTkE EzvKHiNVVwc52VScNlZwZAYHEK7tKUM= X-Google-Smtp-Source: ABdhPJwNJzcvO5mlZsklJx+q6QPFLn/MuJpirM1SR+dXoAZNwIDA2NHHjb0Uhli77iILb46PvlHuoQ== X-Received: by 2002:a9d:5789:: with SMTP id q9mr9356954oth.198.1642686816258; Thu, 20 Jan 2022 05:53:36 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 27/33] qemu: introduce QEMU_CAPS_DEVICE_PNV_PHB4_ROOT_PORT Date: Thu, 20 Jan 2022 10:52:30 -0300 Message-Id: <20220120135236.719924-28-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.9 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.79 on 10.5.11.16 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: 1642686879824100001 Content-Type: text/plain; charset="utf-8" The pnv-phb4-root-port device is the pcie-root-port for PowerNV9 domains. Aside from being usable only by the 'powernv9' machine to connect into the soon to be added 'pnv-phb4' host bridges, its usage and semantics are similar to what was introduced with the pnv-phb3-root-port support. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_6.2.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_7.0.0.ppc64.xml | 1 + 6 files changed, 7 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index a1012d4795..c049dda627 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -659,6 +659,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "device.json+hotplug", /* QEMU_CAPS_DEVICE_JSON */ "pnv-phb3-root-port", /* QEMU_CAPS_DEVICE_PNV_PHB3_ROOT_PORT= */ "pnv-phb3", /* QEMU_CAPS_DEVICE_PNV_PHB3 */ + "pnv-phb4-root-port", /* QEMU_CAPS_DEVICE_PNV_PHB4_ROOT_PORT= */ ); =20 =20 @@ -1360,6 +1361,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[= ] =3D { { "virtio-mem-pci", QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI }, { "pnv-phb3-root-port", QEMU_CAPS_DEVICE_PNV_PHB3_ROOT_PORT }, { "pnv-phb3", QEMU_CAPS_DEVICE_PNV_PHB3 }, + { "pnv-phb4-root-port", QEMU_CAPS_DEVICE_PNV_PHB4_ROOT_PORT }, }; =20 =20 diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 0d76db484b..d7bf211723 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -638,6 +638,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_DEVICE_JSON, /* -device accepts JSON (and works with hot-unp= lug) */ QEMU_CAPS_DEVICE_PNV_PHB3_ROOT_PORT, /* -device pnv-phb3-root-port */ QEMU_CAPS_DEVICE_PNV_PHB3, /* -device pnv-phb3 */ + QEMU_CAPS_DEVICE_PNV_PHB4_ROOT_PORT, /* -device pnv-phb3-root-port */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_5.0.0.ppc64.xml index 809999734e..047ed74bed 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml @@ -188,6 +188,7 @@ + 5000000 0 42900241 diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_5.2.0.ppc64.xml index dc055245ff..22725f1eea 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml @@ -191,6 +191,7 @@ + 5002000 0 42900243 diff --git a/tests/qemucapabilitiesdata/caps_6.2.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_6.2.0.ppc64.xml index dc9fce3a49..c4ab974141 100644 --- a/tests/qemucapabilitiesdata/caps_6.2.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_6.2.0.ppc64.xml @@ -200,6 +200,7 @@ + 6001050 0 42900244 diff --git a/tests/qemucapabilitiesdata/caps_7.0.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_7.0.0.ppc64.xml index 1f622d1372..2be5786f4e 100644 --- a/tests/qemucapabilitiesdata/caps_7.0.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_7.0.0.ppc64.xml @@ -202,6 +202,7 @@ + 6002050 0 42900243 --=20 2.34.1