From nobody Mon Apr 29 02:17:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558020949; cv=none; d=zoho.com; s=zohoarc; b=HaGHnAgXRnfqSqi7zYs0+vCueYXnQ6G04+IJylYpAenlxE7JRg/vxNThTpH+XfYFOqgF9TP1aewwmKJQ+QtstxyVQVslZ6sIxAR0BcxkL2V9RmWZ92mGsK3APo5XHfDuFAVOK7P4peevvwD68KvjbRw467eIsDZ90j058GI5yYM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558020949; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=CXBSvYL8I50l0GNsxHJQBP4o2mE/1papoEIbQCzsl6M=; b=Iq+IOa8r519u9YyK6xUvrPnwtlM1/jy6CL8CkYC6L7AnJTSQWon8iSeJucV1C0zSyKCvwRErrh0BUe1m0NptYRAHT3Xr5seBZaRvP/9jbPZQbdGRjyDMgUiae/FmHYSbQXZIYX5aT/6x6odNdlyGVGG6TDxZsP4mlNpOs0zoArQ= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558020949662734.4044064707791; Thu, 16 May 2019 08:35:49 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 704D3300174D; Thu, 16 May 2019 15:35:45 +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 4483910021B4; Thu, 16 May 2019 15:35:45 +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 B3761206D3; Thu, 16 May 2019 15:35:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4GFZfAm006446 for ; Thu, 16 May 2019 11:35:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id E83071A8F6; Thu, 16 May 2019 15:35:41 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 711D61A8F5 for ; Thu, 16 May 2019 15:35:41 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 16 May 2019 17:35:31 +0200 Message-Id: <20190516153536.12068-2-abologna@redhat.com> In-Reply-To: <20190516153536.12068-1-abologna@redhat.com> References: <20190516153536.12068-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/6] qemu: Introduce virQEMUCapsProbeQMPMachineProps() 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Thu, 16 May 2019 15:35:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Up until now we've probed machine type properties, along with properties for other types, in virQEMUCapsProbeQMPDevices(), but soon we're going to need some logic that is specific to machine types and as such wouldn't quite fit into that function. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- src/qemu/qemu_capabilities.c | 52 ++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index a0b2ca73fb..66745ab4e2 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -1391,12 +1391,6 @@ static struct virQEMUCapsStringFlags virQEMUCapsObje= ctPropsMemoryBackendMemfd[] { "hugetlb", QEMU_CAPS_OBJECT_MEMORY_MEMFD_HUGETLB }, }; =20 -static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsSPAPRMachine[] = =3D { - { "cap-hpt-max-page-size", QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_= SIZE }, - { "cap-htm", QEMU_CAPS_MACHINE_PSERIES_CAP_HTM }, - { "cap-nested-hv", QEMU_CAPS_MACHINE_PSERIES_CAP_NESTED_HV }, -}; - static virQEMUCapsObjectTypeProps virQEMUCapsObjectProps[] =3D { { "memory-backend-file", virQEMUCapsObjectPropsMemoryBackendFile, ARRAY_CARDINALITY(virQEMUCapsObjectPropsMemoryBackendFile), @@ -1404,8 +1398,17 @@ static virQEMUCapsObjectTypeProps virQEMUCapsObjectP= rops[] =3D { { "memory-backend-memfd", virQEMUCapsObjectPropsMemoryBackendMemfd, ARRAY_CARDINALITY(virQEMUCapsObjectPropsMemoryBackendMemfd), QEMU_CAPS_OBJECT_MEMORY_MEMFD }, - { "spapr-machine", virQEMUCapsObjectPropsSPAPRMachine, - ARRAY_CARDINALITY(virQEMUCapsObjectPropsSPAPRMachine), +}; + +static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsSPAPR[] =3D { + { "cap-hpt-max-page-size", QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_= SIZE }, + { "cap-htm", QEMU_CAPS_MACHINE_PSERIES_CAP_HTM }, + { "cap-nested-hv", QEMU_CAPS_MACHINE_PSERIES_CAP_NESTED_HV }, +}; + +static virQEMUCapsObjectTypeProps virQEMUCapsMachineProps[] =3D { + { "spapr-machine", virQEMUCapsMachinePropsSPAPR, + ARRAY_CARDINALITY(virQEMUCapsMachinePropsSPAPR), -1 }, }; =20 @@ -2341,6 +2344,37 @@ virQEMUCapsProbeQMPMachineTypes(virQEMUCapsPtr qemuC= aps, } =20 =20 +static int +virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemuCaps, + qemuMonitorPtr mon) +{ + char **values; + int nvalues; + size_t i; + + /* We need qom-list-properties for this to work */ + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QOM_LIST_PROPERTIES)) + return 0; + + for (i =3D 0; i < ARRAY_CARDINALITY(virQEMUCapsMachineProps); i++) { + virQEMUCapsObjectTypeProps props =3D virQEMUCapsMachineProps[i]; + const char *type =3D props.type; + + if ((nvalues =3D qemuMonitorGetObjectProps(mon, type, &values)) < = 0) + return -1; + + virQEMUCapsProcessStringFlags(qemuCaps, + props.nprops, + props.props, + nvalues, values); + + virStringListFreeCount(values, nvalues); + } + + return 0; +} + + virDomainCapsCPUModelsPtr virQEMUCapsFetchCPUDefinitions(qemuMonitorPtr mon) { @@ -4355,6 +4389,8 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps, return -1; if (virQEMUCapsProbeQMPDevices(qemuCaps, mon) < 0) return -1; + if (virQEMUCapsProbeQMPMachineProps(qemuCaps, mon) < 0) + return -1; if (virQEMUCapsProbeQMPMachineTypes(qemuCaps, mon) < 0) return -1; if (virQEMUCapsProbeQMPCPUDefinitions(qemuCaps, mon, false) < 0) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 02:17:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558020956; cv=none; d=zoho.com; s=zohoarc; b=VlF9dCWDFqFQvG7CdeUxDsbQFRYZDVLSgPYaJsBHA2EPgd7rkofnGk2bAdX5vQUaxtcvaGAJfqaKMaYEHe/0kqy10jJf+4FCyHYZU5nzMNUZP617szdbUu0NLWQ9EeAwNE27eRm1xdPrzhfbISEfxT8qEwK96RbG1tGXD72D7PI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558020956; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=WGUenuZH2VQubUlKhWrLx5XakJb9r41Mw7qSxIUILwU=; b=Q/KO6Jcjl0YVf2EJFQ7yux4uVN0VKPSTL/c39aUR1n6G/ZAO8+XAUmjnhMcEE3pPRquiU/FcSrrD7GIUfCI88591PcZtxZAIZgu0K3P2dnA4IbBZzNg3X+JgRmmDUNNk0qx7xLxYtvA+YlEA+HShdW4PaJBI9E/JFioz933RqBU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558020956625799.7029011851602; Thu, 16 May 2019 08:35:56 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C5DD9308FBB4; Thu, 16 May 2019 15:35:54 +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 96ABB6C33B; Thu, 16 May 2019 15:35:54 +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 4DE451806B19; Thu, 16 May 2019 15:35:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4GFZgJp006456 for ; Thu, 16 May 2019 11:35:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id B7FA41A8F5; Thu, 16 May 2019 15:35:42 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 40C2827C38 for ; Thu, 16 May 2019 15:35:42 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 16 May 2019 17:35:32 +0200 Message-Id: <20190516153536.12068-3-abologna@redhat.com> In-Reply-To: <20190516153536.12068-1-abologna@redhat.com> References: <20190516153536.12068-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/6] qemu: Add -machine suffix automatically 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 16 May 2019 15:35:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" The QOM type for machine types is the machine type name followed by the -machine suffix. Since this is always the case, we can make virQEMUCapsMachineProps more readable and avoid repetition by not including the suffix there and adding it automatically while processing the data. Signed-off-by: Andrea Bolognani --- src/qemu/qemu_capabilities.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 66745ab4e2..34d162b9d1 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -1407,7 +1407,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsMachi= nePropsSPAPR[] =3D { }; =20 static virQEMUCapsObjectTypeProps virQEMUCapsMachineProps[] =3D { - { "spapr-machine", virQEMUCapsMachinePropsSPAPR, + { "spapr", virQEMUCapsMachinePropsSPAPR, ARRAY_CARDINALITY(virQEMUCapsMachinePropsSPAPR), -1 }, }; @@ -2358,7 +2358,12 @@ virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemuC= aps, =20 for (i =3D 0; i < ARRAY_CARDINALITY(virQEMUCapsMachineProps); i++) { virQEMUCapsObjectTypeProps props =3D virQEMUCapsMachineProps[i]; - const char *type =3D props.type; + VIR_AUTOFREE(char *) type =3D NULL; + + /* The QOM type for machine types is the machine type name + * followed by the -machine suffix */ + if (virAsprintf(&type, "%s-machine", props.type) < 0) + return -1; =20 if ((nvalues =3D qemuMonitorGetObjectProps(mon, type, &values)) < = 0) return -1; --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 02:17:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558020956; cv=none; d=zoho.com; s=zohoarc; b=UXwXHy+M1hK+4H/4k6a148MCn4kbjiaRhfSq82GAmTp4oMI/QKJ5Qh74sxFO4wPxFmaDCRkKFbEP0PgUsf9z6vm7AQkozHBM2Yp3ywySHsPZmvssxiYpwHavjptTJKdX0+hdPhNE0rlbzjFrB0epV2ERlpECDx3zs+r4r6j+6fE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558020956; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=0M4MFh+eZ2UO6jVT5GO4BK1mWCb61FOnIead0Vz3eLk=; b=K8xjYaMch1HiZzbUg3TL3gAvMZfCh0WfwJxPk+rj/8IFYzazkAbHsyRtVJbNDZMR4lO6IXJExbbvkM9EGL6TQ9z4I10XfAepkTjdSnyNoOYP7w4iH5jJgGehBV1pJNDSkDWNi3gR8bmEqgqtqsQisSwt7+bOpLGvSB8+wkvTy28= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558020956844336.7243217469271; Thu, 16 May 2019 08:35:56 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id B7A853003715; Thu, 16 May 2019 15:35:54 +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 8F3822E193; Thu, 16 May 2019 15:35:54 +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 4C66A206D6; Thu, 16 May 2019 15:35:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4GFZim7006468 for ; Thu, 16 May 2019 11:35:44 -0400 Received: by smtp.corp.redhat.com (Postfix) id 070FE1A8F5; Thu, 16 May 2019 15:35:44 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1252C27C38 for ; Thu, 16 May 2019 15:35:42 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 16 May 2019 17:35:33 +0200 Message-Id: <20190516153536.12068-4-abologna@redhat.com> In-Reply-To: <20190516153536.12068-1-abologna@redhat.com> References: <20190516153536.12068-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/6] qemu: Move call to virQEMUCapsProbeQMPMachineProps() 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 16 May 2019 15:35:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" We're going to need information about available machine types when probing machine type properties soon, and that means we have to change the order we call QMP commands. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- src/qemu/qemu_capabilities.c | 4 +- .../caps_2.12.0.aarch64.replies | 34 +- .../caps_2.12.0.ppc64.replies | 288 ++++++++-------- .../caps_2.12.0.s390x.replies | 34 +- .../caps_2.12.0.x86_64.replies | 34 +- .../caps_3.0.0.ppc64.replies | 298 ++++++++-------- .../caps_3.0.0.riscv32.replies | 34 +- .../caps_3.0.0.riscv64.replies | 34 +- .../caps_3.0.0.s390x.replies | 34 +- .../caps_3.0.0.x86_64.replies | 34 +- .../caps_3.1.0.ppc64.replies | 308 ++++++++--------- .../caps_3.1.0.x86_64.replies | 34 +- .../caps_4.0.0.aarch64.replies | 34 +- .../caps_4.0.0.ppc64.replies | 318 +++++++++--------- .../caps_4.0.0.riscv32.replies | 34 +- .../caps_4.0.0.riscv64.replies | 34 +- .../caps_4.0.0.s390x.replies | 34 +- .../caps_4.0.0.x86_64.replies | 34 +- 18 files changed, 829 insertions(+), 829 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 34d162b9d1..294d42b0e5 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -4394,10 +4394,10 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps, return -1; if (virQEMUCapsProbeQMPDevices(qemuCaps, mon) < 0) return -1; - if (virQEMUCapsProbeQMPMachineProps(qemuCaps, mon) < 0) - return -1; if (virQEMUCapsProbeQMPMachineTypes(qemuCaps, mon) < 0) return -1; + if (virQEMUCapsProbeQMPMachineProps(qemuCaps, mon) < 0) + return -1; if (virQEMUCapsProbeQMPCPUDefinitions(qemuCaps, mon, false) < 0) return -1; if (virQEMUCapsProbeQMPTPM(qemuCaps, mon) < 0) diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies b/tests= /qemucapabilitiesdata/caps_2.12.0.aarch64.replies index 830b73df03..1eaa60f656 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies @@ -5330,25 +5330,9 @@ "id": "libvirt-30" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-31" -} - -{ - "id": "libvirt-31", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-32" + "id": "libvirt-31" } =20 { @@ -5645,9 +5629,25 @@ "cpu-max": 1 } ], + "id": "libvirt-31" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-32" } =20 +{ + "id": "libvirt-32", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-33" diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies b/tests/q= emucapabilitiesdata/caps_2.12.0.ppc64.replies index a1a0f25a58..38d77aa19c 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies @@ -5385,12 +5385,155 @@ "id": "libvirt-31" } =20 +{ + "execute": "query-machines", + "id": "libvirt-32" +} + +{ + "return": [ + { + "hotpluggable-cpus": false, + "name": "ref405ep", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "sam460ex", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "none", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "virtex-ml507", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "powernv", + "cpu-max": 2048 + }, + { + "hotpluggable-cpus": false, + "name": "ppce500", + "cpu-max": 32 + }, + { + "hotpluggable-cpus": false, + "name": "mpc8544ds", + "cpu-max": 15 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.12-sxxm", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "bamboo", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "g3beige", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.10", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "prep", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.11", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.12", + "is-default": true, + "cpu-max": 1024, + "alias": "pseries" + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.9", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "mac99", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.6", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.7", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.8", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.4", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.5", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.2", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "taihu", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.3", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.1", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "40p", + "cpu-max": 1 + } + ], + "id": "libvirt-32" +} + { "execute": "qom-list-properties", "arguments": { "typename": "spapr-machine" }, - "id": "libvirt-32" + "id": "libvirt-33" } =20 { @@ -5551,149 +5694,6 @@ "type": "bool" } ], - "id": "libvirt-32" -} - -{ - "execute": "query-machines", - "id": "libvirt-33" -} - -{ - "return": [ - { - "hotpluggable-cpus": false, - "name": "ref405ep", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "sam460ex", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "none", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "virtex-ml507", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "powernv", - "cpu-max": 2048 - }, - { - "hotpluggable-cpus": false, - "name": "ppce500", - "cpu-max": 32 - }, - { - "hotpluggable-cpus": false, - "name": "mpc8544ds", - "cpu-max": 15 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.12-sxxm", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "bamboo", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "g3beige", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.10", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "prep", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.11", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.12", - "is-default": true, - "cpu-max": 1024, - "alias": "pseries" - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.9", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "mac99", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.6", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.7", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.8", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.4", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.5", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.2", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "taihu", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.3", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.1", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "40p", - "cpu-max": 1 - } - ], "id": "libvirt-33" } =20 diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies b/tests/q= emucapabilitiesdata/caps_2.12.0.s390x.replies index 23b898120d..59e699b8be 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies @@ -3745,25 +3745,9 @@ "id": "libvirt-30" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-31" -} - -{ - "id": "libvirt-31", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-32" + "id": "libvirt-31" } =20 { @@ -3821,9 +3805,25 @@ "alias": "s390-ccw-virtio" } ], + "id": "libvirt-31" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-32" } =20 +{ + "id": "libvirt-32", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-33" diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies b/tests/= qemucapabilitiesdata/caps_2.12.0.x86_64.replies index b1783f4073..5e4686c988 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies @@ -4761,25 +4761,9 @@ "id": "libvirt-36" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-37" -} - -{ - "id": "libvirt-37", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -4978,9 +4962,25 @@ "cpu-max": 255 } ], + "id": "libvirt-37" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-38" } =20 +{ + "id": "libvirt-38", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-39" diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_3.0.0.ppc64.replies index 1d57a5d7ba..80c68de11a 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies @@ -5465,12 +5465,160 @@ "id": "libvirt-31" } =20 +{ + "execute": "query-machines", + "id": "libvirt-32" +} + +{ + "return": [ + { + "hotpluggable-cpus": false, + "name": "ref405ep", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "sam460ex", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "none", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "virtex-ml507", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "powernv", + "cpu-max": 2048 + }, + { + "hotpluggable-cpus": false, + "name": "ppce500", + "cpu-max": 32 + }, + { + "hotpluggable-cpus": false, + "name": "mpc8544ds", + "cpu-max": 15 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.12-sxxm", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "bamboo", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "g3beige", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-3.0", + "is-default": true, + "cpu-max": 1024, + "alias": "pseries" + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.10", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "prep", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.11", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.12", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.9", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "mac99", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.6", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.7", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.8", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.4", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.5", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.2", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "taihu", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.3", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.1", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "40p", + "cpu-max": 1 + } + ], + "id": "libvirt-32" +} + { "execute": "qom-list-properties", "arguments": { "typename": "spapr-machine" }, - "id": "libvirt-32" + "id": "libvirt-33" } =20 { @@ -5641,154 +5789,6 @@ "type": "bool" } ], - "id": "libvirt-32" -} - -{ - "execute": "query-machines", - "id": "libvirt-33" -} - -{ - "return": [ - { - "hotpluggable-cpus": false, - "name": "ref405ep", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "sam460ex", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "none", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "virtex-ml507", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "powernv", - "cpu-max": 2048 - }, - { - "hotpluggable-cpus": false, - "name": "ppce500", - "cpu-max": 32 - }, - { - "hotpluggable-cpus": false, - "name": "mpc8544ds", - "cpu-max": 15 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.12-sxxm", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "bamboo", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "g3beige", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-3.0", - "is-default": true, - "cpu-max": 1024, - "alias": "pseries" - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.10", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "prep", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.11", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.12", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.9", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "mac99", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.6", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.7", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.8", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.4", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.5", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.2", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "taihu", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.3", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.1", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "40p", - "cpu-max": 1 - } - ], "id": "libvirt-33" } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies b/tests/= qemucapabilitiesdata/caps_3.0.0.riscv32.replies index eaab110763..995171fa56 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies @@ -1655,25 +1655,9 @@ "id": "libvirt-26" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-27" -} - -{ - "id": "libvirt-27", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-28" + "id": "libvirt-27" } =20 { @@ -1710,9 +1694,25 @@ "cpu-max": 1 } ], + "id": "libvirt-27" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-28" } =20 +{ + "id": "libvirt-28", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-tpm-models", "id": "libvirt-29" diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies b/tests/= qemucapabilitiesdata/caps_3.0.0.riscv64.replies index d727902b84..4775ff260f 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies @@ -1655,25 +1655,9 @@ "id": "libvirt-26" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-27" -} - -{ - "id": "libvirt-27", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-28" + "id": "libvirt-27" } =20 { @@ -1710,9 +1694,25 @@ "cpu-max": 1 } ], + "id": "libvirt-27" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-28" } =20 +{ + "id": "libvirt-28", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-tpm-models", "id": "libvirt-29" diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies b/tests/qe= mucapabilitiesdata/caps_3.0.0.s390x.replies index e5f554f955..1268924316 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies @@ -3899,25 +3899,9 @@ "id": "libvirt-31" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-32" -} - -{ - "id": "libvirt-32", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -3980,9 +3964,25 @@ "cpu-max": 248 } ], + "id": "libvirt-32" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-33" } =20 +{ + "id": "libvirt-33", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-34" diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_3.0.0.x86_64.replies index 8511053834..c546944e8f 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies @@ -4892,25 +4892,9 @@ "id": "libvirt-36" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-37" -} - -{ - "id": "libvirt-37", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -5119,9 +5103,25 @@ "cpu-max": 255 } ], + "id": "libvirt-37" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-38" } =20 +{ + "id": "libvirt-38", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-39" diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_3.1.0.ppc64.replies index 3921f8eff0..e62c3cd3bb 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies @@ -5540,162 +5540,9 @@ "id": "libvirt-31" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-32" -} - -{ - "return": [ - { - "name": "type", - "type": "string" - }, - { - "name": "graphics", - "description": "Set on/off to enable/disable graphics emulation", - "type": "bool" - }, - { - "name": "phandle-start", - "description": "The first phandle ID we may generate dynamically", - "type": "int" - }, - { - "name": "dump-guest-core", - "description": "Include guest memory in a core dump", - "type": "bool" - }, - { - "name": "kernel-irqchip", - "description": "Configure KVM in-kernel irqchip", - "type": "on|off|split" - }, - { - "name": "accel", - "description": "Accelerator list", - "type": "string" - }, - { - "name": "append", - "description": "Linux kernel command line", - "type": "string" - }, - { - "name": "dumpdtb", - "description": "Dump current dtb to a file and quit", - "type": "string" - }, - { - "name": "memory-encryption", - "description": "Set memory encryption object to use", - "type": "string" - }, - { - "name": "igd-passthru", - "description": "Set on/off to enable/disable igd passthrou", - "type": "bool" - }, - { - "name": "dt-compatible", - "description": "Overrides the \"compatible\" property of the dt root= node", - "type": "string" - }, - { - "name": "kernel", - "description": "Linux kernel image file", - "type": "string" - }, - { - "name": "usb", - "description": "Set on/off to enable/disable usb", - "type": "bool" - }, - { - "name": "suppress-vmdesc", - "description": "Set on to disable self-describing migration", - "type": "bool" - }, - { - "name": "dtb", - "description": "Linux kernel device tree file", - "type": "string" - }, - { - "name": "firmware", - "description": "Firmware image", - "type": "string" - }, - { - "name": "mem-merge", - "description": "Enable/disable memory merge support", - "type": "bool" - }, - { - "name": "initrd", - "description": "Linux initial ramdisk file", - "type": "string" - }, - { - "name": "enforce-config-section", - "description": "Set on to enforce configuration section migration", - "type": "bool" - }, - { - "name": "kvm-shadow-mem", - "description": "KVM shadow MMU size", - "type": "int" - }, - { - "name": "cap-hpt-max-page-size", - "description": "Maximum page size for Hash Page Table guests", - "type": "int" - }, - { - "name": "cap-dfp", - "description": "Allow Decimal Floating Point (DFP)", - "type": "bool" - }, - { - "name": "cap-cfpc", - "description": "Cache Flush on Privilege Change (broken, workaround,= fixed)", - "type": "string" - }, - { - "name": "cap-ibs", - "description": "Indirect Branch Speculation (broken, fixed-ibs, fixe= d-ccd)", - "type": "string" - }, - { - "name": "cap-sbbc", - "description": "Speculation Barrier Bounds Checking (broken, workaro= und, fixed)", - "type": "string" - }, - { - "name": "cap-vsx", - "description": "Allow Vector Scalar Extensions (VSX)", - "type": "bool" - }, - { - "name": "cap-htm", - "description": "Allow Hardware Transactional Memory (HTM)", - "type": "bool" - }, - { - "name": "cap-nested-hv", - "description": "Allow Nested KVM-HV", - "type": "bool" - } - ], - "id": "libvirt-32" -} - { "execute": "query-machines", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -5843,6 +5690,159 @@ "cpu-max": 1 } ], + "id": "libvirt-32" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, + "id": "libvirt-33" +} + +{ + "return": [ + { + "name": "type", + "type": "string" + }, + { + "name": "graphics", + "description": "Set on/off to enable/disable graphics emulation", + "type": "bool" + }, + { + "name": "phandle-start", + "description": "The first phandle ID we may generate dynamically", + "type": "int" + }, + { + "name": "dump-guest-core", + "description": "Include guest memory in a core dump", + "type": "bool" + }, + { + "name": "kernel-irqchip", + "description": "Configure KVM in-kernel irqchip", + "type": "on|off|split" + }, + { + "name": "accel", + "description": "Accelerator list", + "type": "string" + }, + { + "name": "append", + "description": "Linux kernel command line", + "type": "string" + }, + { + "name": "dumpdtb", + "description": "Dump current dtb to a file and quit", + "type": "string" + }, + { + "name": "memory-encryption", + "description": "Set memory encryption object to use", + "type": "string" + }, + { + "name": "igd-passthru", + "description": "Set on/off to enable/disable igd passthrou", + "type": "bool" + }, + { + "name": "dt-compatible", + "description": "Overrides the \"compatible\" property of the dt root= node", + "type": "string" + }, + { + "name": "kernel", + "description": "Linux kernel image file", + "type": "string" + }, + { + "name": "usb", + "description": "Set on/off to enable/disable usb", + "type": "bool" + }, + { + "name": "suppress-vmdesc", + "description": "Set on to disable self-describing migration", + "type": "bool" + }, + { + "name": "dtb", + "description": "Linux kernel device tree file", + "type": "string" + }, + { + "name": "firmware", + "description": "Firmware image", + "type": "string" + }, + { + "name": "mem-merge", + "description": "Enable/disable memory merge support", + "type": "bool" + }, + { + "name": "initrd", + "description": "Linux initial ramdisk file", + "type": "string" + }, + { + "name": "enforce-config-section", + "description": "Set on to enforce configuration section migration", + "type": "bool" + }, + { + "name": "kvm-shadow-mem", + "description": "KVM shadow MMU size", + "type": "int" + }, + { + "name": "cap-hpt-max-page-size", + "description": "Maximum page size for Hash Page Table guests", + "type": "int" + }, + { + "name": "cap-dfp", + "description": "Allow Decimal Floating Point (DFP)", + "type": "bool" + }, + { + "name": "cap-cfpc", + "description": "Cache Flush on Privilege Change (broken, workaround,= fixed)", + "type": "string" + }, + { + "name": "cap-ibs", + "description": "Indirect Branch Speculation (broken, fixed-ibs, fixe= d-ccd)", + "type": "string" + }, + { + "name": "cap-sbbc", + "description": "Speculation Barrier Bounds Checking (broken, workaro= und, fixed)", + "type": "string" + }, + { + "name": "cap-vsx", + "description": "Allow Vector Scalar Extensions (VSX)", + "type": "bool" + }, + { + "name": "cap-htm", + "description": "Allow Hardware Transactional Memory (HTM)", + "type": "bool" + }, + { + "name": "cap-nested-hv", + "description": "Allow Nested KVM-HV", + "type": "bool" + } + ], "id": "libvirt-33" } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_3.1.0.x86_64.replies index 0f0778f3e5..856f588fd0 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies @@ -4955,25 +4955,9 @@ "id": "libvirt-36" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-37" -} - -{ - "id": "libvirt-37", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -5192,9 +5176,25 @@ "cpu-max": 255 } ], + "id": "libvirt-37" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-38" } =20 +{ + "id": "libvirt-38", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-39" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.aarch64.replies index fa092a409e..4891413490 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies @@ -5863,25 +5863,9 @@ "id": "libvirt-31" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-32" -} - -{ - "id": "libvirt-32", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -6223,9 +6207,25 @@ "cpu-max": 1 } ], + "id": "libvirt-32" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-33" } =20 +{ + "id": "libvirt-33", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-34" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_4.0.0.ppc64.replies index e1bc78bfae..c51b06f9a2 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies @@ -5918,12 +5918,170 @@ "id": "libvirt-32" } =20 +{ + "execute": "query-machines", + "id": "libvirt-33" +} + +{ + "return": [ + { + "hotpluggable-cpus": false, + "name": "ref405ep", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "sam460ex", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "none", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "virtex-ml507", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "powernv", + "cpu-max": 2048 + }, + { + "hotpluggable-cpus": false, + "name": "ppce500", + "cpu-max": 32 + }, + { + "hotpluggable-cpus": false, + "name": "mpc8544ds", + "cpu-max": 15 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-3.1", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.12-sxxm", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "bamboo", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "g3beige", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-3.0", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.10", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "prep", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.11", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.12", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.9", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "mac99", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.6", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.7", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-2.8", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.4", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.5", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": true, + "name": "pseries-4.0", + "is-default": true, + "cpu-max": 1024, + "alias": "pseries" + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.2", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "taihu", + "cpu-max": 1 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.3", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "pseries-2.1", + "cpu-max": 1024 + }, + { + "hotpluggable-cpus": false, + "name": "40p", + "cpu-max": 1 + } + ], + "id": "libvirt-33" +} + { "execute": "qom-list-properties", "arguments": { "typename": "spapr-machine" }, - "id": "libvirt-33" + "id": "libvirt-34" } =20 { @@ -6078,164 +6236,6 @@ "type": "bool" } ], - "id": "libvirt-33" -} - -{ - "execute": "query-machines", - "id": "libvirt-34" -} - -{ - "return": [ - { - "hotpluggable-cpus": false, - "name": "ref405ep", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "sam460ex", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "none", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "virtex-ml507", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "powernv", - "cpu-max": 2048 - }, - { - "hotpluggable-cpus": false, - "name": "ppce500", - "cpu-max": 32 - }, - { - "hotpluggable-cpus": false, - "name": "mpc8544ds", - "cpu-max": 15 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-3.1", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.12-sxxm", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "bamboo", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "g3beige", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-3.0", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.10", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "prep", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.11", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.12", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.9", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "mac99", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.6", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.7", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-2.8", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.4", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.5", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": true, - "name": "pseries-4.0", - "is-default": true, - "cpu-max": 1024, - "alias": "pseries" - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.2", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "taihu", - "cpu-max": 1 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.3", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "pseries-2.1", - "cpu-max": 1024 - }, - { - "hotpluggable-cpus": false, - "name": "40p", - "cpu-max": 1 - } - ], "id": "libvirt-34" } =20 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.riscv32.replies index 9671d6f914..feb5c8fc4d 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies @@ -4037,25 +4037,9 @@ "id": "libvirt-32" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-33" -} - -{ - "id": "libvirt-33", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { @@ -4092,9 +4076,25 @@ "cpu-max": 1 } ], + "id": "libvirt-33" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-34" } =20 +{ + "id": "libvirt-34", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-tpm-models", "id": "libvirt-35" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.riscv64.replies index 0ca4484781..e2588168a0 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies @@ -4037,25 +4037,9 @@ "id": "libvirt-32" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-33" -} - -{ - "id": "libvirt-33", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { @@ -4092,9 +4076,25 @@ "cpu-max": 1 } ], + "id": "libvirt-33" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-34" } =20 +{ + "id": "libvirt-34", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-tpm-models", "id": "libvirt-35" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies b/tests/qe= mucapabilitiesdata/caps_4.0.0.s390x.replies index 8b7d60f1d9..e806185863 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies @@ -4202,25 +4202,9 @@ "id": "libvirt-31" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-32" -} - -{ - "id": "libvirt-32", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -4293,9 +4277,25 @@ "cpu-max": 248 } ], + "id": "libvirt-32" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-33" } =20 +{ + "id": "libvirt-33", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-34" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_4.0.0.x86_64.replies index 1482f85846..f89603d64d 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies @@ -5188,25 +5188,9 @@ "id": "libvirt-36" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "spapr-machine" - }, - "id": "libvirt-37" -} - -{ - "id": "libvirt-37", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" - } -} - { "execute": "query-machines", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -5425,9 +5409,25 @@ "alias": "q35" } ], + "id": "libvirt-37" +} + +{ + "execute": "qom-list-properties", + "arguments": { + "typename": "spapr-machine" + }, "id": "libvirt-38" } =20 +{ + "id": "libvirt-38", + "error": { + "class": "DeviceNotFound", + "desc": "Class 'spapr-machine' not found" + } +} + { "execute": "query-cpu-definitions", "id": "libvirt-39" --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 02:17:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558020949; cv=none; d=zoho.com; s=zohoarc; b=mCdp7xeyXZ2T55QuuhuY2HJ+7CxcDcZE0LN+PgUt2W6tg41PscDJAh4Yxszae22Xm0lEItmxvZVWUbp0Bpr1BJ6NRl/toZpRycCN75732NVrrXJR7tAukq3wDpGRHJwZfrJFKCxP7qsMyvwfm+WsNr0nsLs9MswTpXedUNwDLjo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558020949; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Z7DaEodUmWopyYV8Dz9t3yn4LI43UswEFigjL79viXY=; b=TlVpTwEZiYsTkb5OQIkmPpRydtYx4Tqxfe3s2HJ6gdgFv0PAcUSwIcadjFS/AGC1YZct/kTHm3MwmFbvI+X6mnChlN8mmaVQwBnYFwuFLvPmZkaNvTJb1nkWWvTXEVdI8oCjTAi8CENW5ZX1w8g2XlmCmBMMZH9gkWyzkkzLhcM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155802094981175.57711142874962; Thu, 16 May 2019 08:35:49 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C5DCE30842A9; Thu, 16 May 2019 15:35:47 +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 965A01001E61; Thu, 16 May 2019 15:35:46 +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 4788A1806B14; Thu, 16 May 2019 15:35:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4GFZii3006477 for ; Thu, 16 May 2019 11:35:44 -0400 Received: by smtp.corp.redhat.com (Postfix) id CC4B01A8F5; Thu, 16 May 2019 15:35:44 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 55BD527C38 for ; Thu, 16 May 2019 15:35:44 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 16 May 2019 17:35:34 +0200 Message-Id: <20190516153536.12068-5-abologna@redhat.com> In-Reply-To: <20190516153536.12068-1-abologna@redhat.com> References: <20190516153536.12068-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 4/6] qemu: Probe canonicalized machine type 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 16 May 2019 15:35:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Now that we have the list of machine types available when probing machine type properties, we can list properties for the canonicalized version of the "pseries" machine type instead of having to go through "spapr-machine", which we know to be the parent type for all "pseries-*-machine" types. By doing this, we'll be able to find even properties that are only available from a certain versioned machine type forward, and can't thus be obtained when looking at the parent type only. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- src/qemu/qemu_capabilities.c | 9 +++++---- tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies | 2 +- tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies | 4 ++-- tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies | 2 +- tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies | 4 ++-- tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies | 4 ++-- tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies | 2 +- tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies | 2 +- tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies | 4 ++-- tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies | 4 ++-- tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies | 4 ++-- tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies | 4 ++-- 18 files changed, 35 insertions(+), 34 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 294d42b0e5..e12f076da8 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -1400,15 +1400,15 @@ static virQEMUCapsObjectTypeProps virQEMUCapsObject= Props[] =3D { QEMU_CAPS_OBJECT_MEMORY_MEMFD }, }; =20 -static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsSPAPR[] =3D { +static struct virQEMUCapsStringFlags virQEMUCapsMachinePropsPSeries[] =3D { { "cap-hpt-max-page-size", QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_= SIZE }, { "cap-htm", QEMU_CAPS_MACHINE_PSERIES_CAP_HTM }, { "cap-nested-hv", QEMU_CAPS_MACHINE_PSERIES_CAP_NESTED_HV }, }; =20 static virQEMUCapsObjectTypeProps virQEMUCapsMachineProps[] =3D { - { "spapr", virQEMUCapsMachinePropsSPAPR, - ARRAY_CARDINALITY(virQEMUCapsMachinePropsSPAPR), + { "pseries", virQEMUCapsMachinePropsPSeries, + ARRAY_CARDINALITY(virQEMUCapsMachinePropsPSeries), -1 }, }; =20 @@ -2358,11 +2358,12 @@ virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemu= Caps, =20 for (i =3D 0; i < ARRAY_CARDINALITY(virQEMUCapsMachineProps); i++) { virQEMUCapsObjectTypeProps props =3D virQEMUCapsMachineProps[i]; + const char *canon =3D virQEMUCapsGetCanonicalMachine(qemuCaps, pro= ps.type); VIR_AUTOFREE(char *) type =3D NULL; =20 /* The QOM type for machine types is the machine type name * followed by the -machine suffix */ - if (virAsprintf(&type, "%s-machine", props.type) < 0) + if (virAsprintf(&type, "%s-machine", canon) < 0) return -1; =20 if ((nvalues =3D qemuMonitorGetObjectProps(mon, type, &values)) < = 0) diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies b/tests= /qemucapabilitiesdata/caps_2.12.0.aarch64.replies index 1eaa60f656..7b42e70d5d 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies @@ -5635,7 +5635,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-32" } @@ -5644,7 +5644,7 @@ "id": "libvirt-32", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies b/tests/q= emucapabilitiesdata/caps_2.12.0.ppc64.replies index 38d77aa19c..5c9ddbc178 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.replies @@ -5531,7 +5531,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-2.12-machine" }, "id": "libvirt-33" } diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies b/tests/q= emucapabilitiesdata/caps_2.12.0.s390x.replies index 59e699b8be..3cd62cd10a 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies @@ -3811,7 +3811,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-32" } @@ -3820,7 +3820,7 @@ "id": "libvirt-32", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies b/tests/= qemucapabilitiesdata/caps_2.12.0.x86_64.replies index 5e4686c988..124be0cd71 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies @@ -4968,7 +4968,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-38" } @@ -4977,7 +4977,7 @@ "id": "libvirt-38", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_3.0.0.ppc64.replies index 80c68de11a..fa370a39bd 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.replies @@ -5616,7 +5616,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-3.0-machine" }, "id": "libvirt-33" } diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies b/tests/= qemucapabilitiesdata/caps_3.0.0.riscv32.replies index 995171fa56..ce6f554cfe 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies @@ -1700,7 +1700,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-28" } @@ -1709,7 +1709,7 @@ "id": "libvirt-28", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies b/tests/= qemucapabilitiesdata/caps_3.0.0.riscv64.replies index 4775ff260f..8884ca1c6e 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies @@ -1700,7 +1700,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-28" } @@ -1709,7 +1709,7 @@ "id": "libvirt-28", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies b/tests/qe= mucapabilitiesdata/caps_3.0.0.s390x.replies index 1268924316..b385e27fa1 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies @@ -3970,7 +3970,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-33" } @@ -3979,7 +3979,7 @@ "id": "libvirt-33", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_3.0.0.x86_64.replies index c546944e8f..964759a50d 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies @@ -5109,7 +5109,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-38" } @@ -5118,7 +5118,7 @@ "id": "libvirt-38", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_3.1.0.ppc64.replies index e62c3cd3bb..c23f67e869 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies @@ -5696,7 +5696,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-3.1-machine" }, "id": "libvirt-33" } diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_3.1.0.x86_64.replies index 856f588fd0..b562839794 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies @@ -5182,7 +5182,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-38" } @@ -5191,7 +5191,7 @@ "id": "libvirt-38", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.aarch64.replies index 4891413490..043189d1ac 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies @@ -6213,7 +6213,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-33" } @@ -6222,7 +6222,7 @@ "id": "libvirt-33", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_4.0.0.ppc64.replies index c51b06f9a2..38e4c254a4 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies @@ -6079,7 +6079,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-4.0-machine" }, "id": "libvirt-34" } diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.riscv32.replies index feb5c8fc4d..5205bda05c 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies @@ -4082,7 +4082,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-34" } @@ -4091,7 +4091,7 @@ "id": "libvirt-34", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.riscv64.replies index e2588168a0..dfe5671a58 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies @@ -4082,7 +4082,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-34" } @@ -4091,7 +4091,7 @@ "id": "libvirt-34", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies b/tests/qe= mucapabilitiesdata/caps_4.0.0.s390x.replies index e806185863..6f74f107f7 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies @@ -4283,7 +4283,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-33" } @@ -4292,7 +4292,7 @@ "id": "libvirt-33", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_4.0.0.x86_64.replies index f89603d64d..6cfff8b7e0 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies @@ -5415,7 +5415,7 @@ { "execute": "qom-list-properties", "arguments": { - "typename": "spapr-machine" + "typename": "pseries-machine" }, "id": "libvirt-38" } @@ -5424,7 +5424,7 @@ "id": "libvirt-38", "error": { "class": "DeviceNotFound", - "desc": "Class 'spapr-machine' not found" + "desc": "Class 'pseries-machine' not found" } } =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 02:17:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558020958; cv=none; d=zoho.com; s=zohoarc; b=d3rleUj/QnVu8cjJzLJfqE/h5N0rYktjMD0I6gei9dzBlpHaRCbcX8s8mwkTjCHaJZyp8KvTjb7GlWoWZP1cs8JkST64R8pz7HzJAVzmlwk7xssNV4uL6/ve4a0R/Szuwjo0PDVoIi55WNFKPxAg3t3ish+xRJvR1AmiYA1Xzi4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558020958; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=lPLvQSKMfAMduO/rCcN+fvtfavE19WUqL4JSZqqAzsk=; b=lv3Odr+H68cJU3xolgF6OvWZ+bE/5JWENjvZ8Zb8XqJZT8P7RrKZ1zt40j+TeSHyus//kpEDaigFYg82P4MQXzO5mviQ8X4gzw/A5DpjucswlK6/J5mXiH5yiNA3DMFwGD//WorR9qiKXM0IFp6bZ3o6LbXntRs+Y+UaJHLPNEk= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558020958734666.3166479037917; Thu, 16 May 2019 08:35:58 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA0F9307D913; Thu, 16 May 2019 15:35:56 +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 752A85D72E; Thu, 16 May 2019 15:35:56 +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 2B8A61806B16; Thu, 16 May 2019 15:35:56 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4GFZj5w006485 for ; Thu, 16 May 2019 11:35:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9C83D1A8F6; Thu, 16 May 2019 15:35:45 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 25FEC1A8F5 for ; Thu, 16 May 2019 15:35:44 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 16 May 2019 17:35:35 +0200 Message-Id: <20190516153536.12068-6-abologna@redhat.com> In-Reply-To: <20190516153536.12068-1-abologna@redhat.com> References: <20190516153536.12068-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 5/6] tests: Refresh capabilities for QEMU on ppc64 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 16 May 2019 15:35:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Now that we're probing machine type properties using the latest machine type rather than the "spapr-machine" parent, we can finally discover properties that are not available on all machine types. This commit refreshes replies for QEMU 4.0.0 as well as 3.1.0 to show not only that we're actually discovering new machine type properties this way, but also that the number of available machine type properties increases with each subsequent QEMU release. If qom-list-properties had been available in QEMU 2.10.0, we could now drop the explicit version number checks for the QEMU_CAPS_MACHINE_PSERIES_MAX_CPU_COMPAT and QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT capabilities, but unfortunately it wasn't, so we have to keep them around still. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- .../caps_3.1.0.ppc64.replies | 29 ++++++++++++ .../caps_4.0.0.ppc64.replies | 44 +++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_3.1.0.ppc64.replies index c23f67e869..33666a43db 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies @@ -5841,6 +5841,35 @@ "name": "cap-nested-hv", "description": "Allow Nested KVM-HV", "type": "bool" + }, + { + "name": "resize-hpt", + "description": "Resizing of the Hash Page Table (enabled, disabled, = required)", + "type": "string" + }, + { + "name": "max-cpu-compat", + "description": "Maximum permitted CPU compatibility mode. Valid valu= es are power6, power7, power7+, power8, power9.", + "type": "string" + }, + { + "name": "modern-hotplug-events", + "description": "Use dedicated hotplug event mechanism in place of st= andard EPOW events when possible (required for memory hot-unplug support)", + "type": "bool" + }, + { + "name": "vsmt", + "description": "Virtual SMT: KVM behaves as if this were the host's = SMT mode", + "type": "uint32" + }, + { + "name": "kvm-type", + "description": "Specifies the KVM virtualization mode (HV, PR)", + "type": "string" + }, + { + "name": "vfio-no-msix-emulation", + "type": "bool" } ], "id": "libvirt-33" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies b/tests/qe= mucapabilitiesdata/caps_4.0.0.ppc64.replies index 38e4c254a4..baa8f8963d 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies @@ -6234,6 +6234,50 @@ "name": "cap-nested-hv", "description": "Allow Nested KVM-HV", "type": "bool" + }, + { + "name": "vfio-no-msix-emulation", + "type": "bool" + }, + { + "name": "ic-mode", + "description": "Specifies the interrupt controller mode (xics, xive,= dual)", + "type": "string" + }, + { + "name": "kvm-type", + "description": "Specifies the KVM virtualization mode (HV, PR)", + "type": "string" + }, + { + "name": "host-model", + "description": "Host model to advertise in guest device tree", + "type": "string" + }, + { + "name": "max-cpu-compat", + "description": "Maximum permitted CPU compatibility mode. Valid valu= es are power6, power7, power7+, power8, power9.", + "type": "string" + }, + { + "name": "modern-hotplug-events", + "description": "Use dedicated hotplug event mechanism in place of st= andard EPOW events when possible (required for memory hot-unplug support)", + "type": "bool" + }, + { + "name": "vsmt", + "description": "Virtual SMT: KVM behaves as if this were the host's = SMT mode", + "type": "uint32" + }, + { + "name": "host-serial", + "description": "Host serial number to advertise in guest device tree= ", + "type": "string" + }, + { + "name": "resize-hpt", + "description": "Resizing of the Hash Page Table (enabled, disabled, = required)", + "type": "string" } ], "id": "libvirt-34" --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon Apr 29 02:17:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558020960; cv=none; d=zoho.com; s=zohoarc; b=iJ4w05oqxNzYs79vQXpISZCNM3SDjRyJ52zLvMxcIF3ltXmtuZDaP/gSoT+IeGkan2DPEPFIwbw7F3kYkDn9E7vO2SuRcMSed3x7svFOOgEQxr/t2AcN/5V609hTy9TWLfi+Jp1UoMRrkryzBGIq4SYfPSXb92uDCAHmAzFwkIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558020960; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=pdW7HfYwdjElnonvHo8wXVJjk7kjGwH92ag7MAYNytw=; b=B2pe5CdZP/6hZVgpqJuvoo0z0Y0GKj/CfRU/zv/VdLKtrHjP2cQqFIKKQqfuLLx/nBYU0vgSHR/+gNmq/caxOHdAQBoxjixI5KHDaR3eF1M9lQGvG1hHlSx/uIMQRcP9KAlZuc6MhEsrcy5oWDZ7i+dW8kaoPaY+d1hsNSRIQmw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1558020960551495.24128836499096; Thu, 16 May 2019 08:36:00 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id D61E93001822; Thu, 16 May 2019 15:35:58 +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 A74B31A8F6; Thu, 16 May 2019 15:35:58 +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 60ED0206D9; Thu, 16 May 2019 15:35:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4GFZkNc006497 for ; Thu, 16 May 2019 11:35:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 980071A8F6; Thu, 16 May 2019 15:35:46 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EBCB31A8F5 for ; Thu, 16 May 2019 15:35:45 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 16 May 2019 17:35:36 +0200 Message-Id: <20190516153536.12068-7-abologna@redhat.com> In-Reply-To: <20190516153536.12068-1-abologna@redhat.com> References: <20190516153536.12068-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 6/6] qemu: Only probe available machine types 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 16 May 2019 15:35:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Since we know the full list of machine types supported by the QEMU binary when probing machine type properties, we can save some work (and eventually test suite churn, as more architecture-specific machine types need to be probed) by only probing machines that we know exist. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- src/qemu/qemu_capabilities.c | 5 ++ .../caps_2.12.0.aarch64.replies | 44 +++++--------- .../caps_2.12.0.s390x.replies | 48 +++++---------- .../caps_2.12.0.x86_64.replies | 60 +++++++------------ .../caps_3.0.0.riscv32.replies | 36 ++++------- .../caps_3.0.0.riscv64.replies | 36 ++++------- .../caps_3.0.0.s390x.replies | 48 +++++---------- .../caps_3.0.0.x86_64.replies | 60 +++++++------------ .../caps_3.1.0.x86_64.replies | 60 +++++++------------ .../caps_4.0.0.aarch64.replies | 44 +++++--------- .../caps_4.0.0.riscv32.replies | 36 ++++------- .../caps_4.0.0.riscv64.replies | 36 ++++------- .../caps_4.0.0.s390x.replies | 48 +++++---------- .../caps_4.0.0.x86_64.replies | 60 +++++++------------ 14 files changed, 209 insertions(+), 412 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index e12f076da8..d13c2c1192 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2361,6 +2361,11 @@ virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemuC= aps, const char *canon =3D virQEMUCapsGetCanonicalMachine(qemuCaps, pro= ps.type); VIR_AUTOFREE(char *) type =3D NULL; =20 + /* If the machine type is not supported by the QEMU binary, we + * don't need to bother probing its properties */ + if (!virQEMUCapsIsMachineSupported(qemuCaps, canon)) + continue; + /* The QOM type for machine types is the machine type name * followed by the -machine suffix */ if (virAsprintf(&type, "%s-machine", canon) < 0) diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies b/tests= /qemucapabilitiesdata/caps_2.12.0.aarch64.replies index 7b42e70d5d..67553451fc 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies @@ -5632,25 +5632,9 @@ "id": "libvirt-31" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-32" -} - -{ - "id": "libvirt-32", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -5826,35 +5810,35 @@ "static": false } ], - "id": "libvirt-33" + "id": "libvirt-32" } =20 { "execute": "query-tpm-models", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "return": [ ], - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "execute": "query-tpm-types", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ "emulator" ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-command-line-options", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { @@ -7015,12 +6999,12 @@ "option": "drive" } ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -7082,12 +7066,12 @@ "capability": "dirty-bitmaps" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -18455,12 +18439,12 @@ "meta-type": "object" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { "execute": "query-gic-capabilities", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -18476,7 +18460,7 @@ "kernel": false } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies b/tests/q= emucapabilitiesdata/caps_2.12.0.s390x.replies index 3cd62cd10a..77afcbaa5b 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.replies @@ -3808,25 +3808,9 @@ "id": "libvirt-31" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-32" -} - -{ - "id": "libvirt-32", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -4361,35 +4345,35 @@ "migration-safe": true } ], - "id": "libvirt-33" + "id": "libvirt-32" } =20 { "execute": "query-tpm-models", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "return": [ ], - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "execute": "query-tpm-types", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ "emulator" ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-command-line-options", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { @@ -5514,12 +5498,12 @@ "option": "drive" } ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -5581,12 +5565,12 @@ "capability": "dirty-bitmaps" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -16954,7 +16938,7 @@ "meta-type": "object" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -16965,7 +16949,7 @@ "name": "host" } }, - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -17003,7 +16987,7 @@ } } }, - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -17017,11 +17001,11 @@ } } }, - "id": "libvirt-40" + "id": "libvirt-39" } =20 { - "id": "libvirt-40", + "id": "libvirt-39", "error": { "class": "GenericError", "desc": "Property '.migratable' not found" diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies b/tests/= qemucapabilitiesdata/caps_2.12.0.x86_64.replies index 124be0cd71..2e4e5ae4ab 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.replies @@ -4965,25 +4965,9 @@ "id": "libvirt-37" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-38" -} - -{ - "id": "libvirt-38", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -5497,12 +5481,12 @@ "migration-safe": true } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { "execute": "query-tpm-models", - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -5510,12 +5494,12 @@ "tpm-crb", "tpm-tis" ], - "id": "libvirt-40" + "id": "libvirt-39" } =20 { "execute": "query-tpm-types", - "id": "libvirt-41" + "id": "libvirt-40" } =20 { @@ -5523,12 +5507,12 @@ "passthrough", "emulator" ], - "id": "libvirt-41" + "id": "libvirt-40" } =20 { "execute": "query-command-line-options", - "id": "libvirt-42" + "id": "libvirt-41" } =20 { @@ -6815,12 +6799,12 @@ "option": "drive" } ], - "id": "libvirt-42" + "id": "libvirt-41" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-43" + "id": "libvirt-42" } =20 { @@ -6882,12 +6866,12 @@ "capability": "dirty-bitmaps" } ], - "id": "libvirt-43" + "id": "libvirt-42" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -18255,7 +18239,7 @@ "meta-type": "object" } ], - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -18266,7 +18250,7 @@ "name": "host" } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -18456,7 +18440,7 @@ } } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -18648,7 +18632,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -18903,7 +18887,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -18917,7 +18901,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -19107,7 +19091,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -19299,7 +19283,7 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { @@ -19554,12 +19538,12 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { "execute": "query-sev-capabilities", - "id": "libvirt-49" + "id": "libvirt-48" } =20 { @@ -19569,7 +19553,7 @@ "cert-chain": "AQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAA= ", "pdh": "AQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAA= OAAA" }, - "id": "libvirt-49" + "id": "libvirt-48" } =20 { diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies b/tests/= qemucapabilitiesdata/caps_3.0.0.riscv32.replies index ce6f554cfe..389fc95e0e 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies @@ -1697,36 +1697,20 @@ "id": "libvirt-27" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-28" -} - -{ - "id": "libvirt-28", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-tpm-models", - "id": "libvirt-29" + "id": "libvirt-28" } =20 { "return": [ ], - "id": "libvirt-29" + "id": "libvirt-28" } =20 { "execute": "query-tpm-types", - "id": "libvirt-30" + "id": "libvirt-29" } =20 { @@ -1734,12 +1718,12 @@ "passthrough", "emulator" ], - "id": "libvirt-30" + "id": "libvirt-29" } =20 { "execute": "query-command-line-options", - "id": "libvirt-31" + "id": "libvirt-30" } =20 { @@ -2864,12 +2848,12 @@ "option": "drive" } ], - "id": "libvirt-31" + "id": "libvirt-30" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-32" + "id": "libvirt-31" } =20 { @@ -2939,12 +2923,12 @@ "capability": "late-block-activate" } ], - "id": "libvirt-32" + "id": "libvirt-31" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -14619,5 +14603,5 @@ "meta-type": "object" } ], - "id": "libvirt-33" + "id": "libvirt-32" } diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies b/tests/= qemucapabilitiesdata/caps_3.0.0.riscv64.replies index 8884ca1c6e..65da947c60 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies @@ -1697,36 +1697,20 @@ "id": "libvirt-27" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-28" -} - -{ - "id": "libvirt-28", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-tpm-models", - "id": "libvirt-29" + "id": "libvirt-28" } =20 { "return": [ ], - "id": "libvirt-29" + "id": "libvirt-28" } =20 { "execute": "query-tpm-types", - "id": "libvirt-30" + "id": "libvirt-29" } =20 { @@ -1734,12 +1718,12 @@ "passthrough", "emulator" ], - "id": "libvirt-30" + "id": "libvirt-29" } =20 { "execute": "query-command-line-options", - "id": "libvirt-31" + "id": "libvirt-30" } =20 { @@ -2864,12 +2848,12 @@ "option": "drive" } ], - "id": "libvirt-31" + "id": "libvirt-30" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-32" + "id": "libvirt-31" } =20 { @@ -2939,12 +2923,12 @@ "capability": "late-block-activate" } ], - "id": "libvirt-32" + "id": "libvirt-31" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-33" + "id": "libvirt-32" } =20 { @@ -14619,5 +14603,5 @@ "meta-type": "object" } ], - "id": "libvirt-33" + "id": "libvirt-32" } diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies b/tests/qe= mucapabilitiesdata/caps_3.0.0.s390x.replies index b385e27fa1..5640750d19 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.s390x.replies @@ -3967,25 +3967,9 @@ "id": "libvirt-32" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-33" -} - -{ - "id": "libvirt-33", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { @@ -4536,35 +4520,35 @@ "migration-safe": true } ], - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "execute": "query-tpm-models", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-tpm-types", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "return": [ "emulator" ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-command-line-options", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -5724,12 +5708,12 @@ "option": "drive" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -5799,12 +5783,12 @@ "capability": "late-block-activate" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -17479,7 +17463,7 @@ "meta-type": "object" } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -17490,7 +17474,7 @@ "name": "host" } }, - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -17532,7 +17516,7 @@ } } }, - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -17546,11 +17530,11 @@ } } }, - "id": "libvirt-41" + "id": "libvirt-40" } =20 { - "id": "libvirt-41", + "id": "libvirt-40", "error": { "class": "GenericError", "desc": "Property '.migratable' not found" diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_3.0.0.x86_64.replies index 964759a50d..d5f40bd1d4 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.replies @@ -5106,25 +5106,9 @@ "id": "libvirt-37" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-38" -} - -{ - "id": "libvirt-38", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -5561,12 +5545,12 @@ "migration-safe": true } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { "execute": "query-tpm-models", - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -5574,12 +5558,12 @@ "tpm-crb", "tpm-tis" ], - "id": "libvirt-40" + "id": "libvirt-39" } =20 { "execute": "query-tpm-types", - "id": "libvirt-41" + "id": "libvirt-40" } =20 { @@ -5587,12 +5571,12 @@ "passthrough", "emulator" ], - "id": "libvirt-41" + "id": "libvirt-40" } =20 { "execute": "query-command-line-options", - "id": "libvirt-42" + "id": "libvirt-41" } =20 { @@ -6891,12 +6875,12 @@ "option": "drive" } ], - "id": "libvirt-42" + "id": "libvirt-41" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-43" + "id": "libvirt-42" } =20 { @@ -6966,12 +6950,12 @@ "capability": "late-block-activate" } ], - "id": "libvirt-43" + "id": "libvirt-42" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -18851,7 +18835,7 @@ "meta-type": "object" } ], - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -18862,7 +18846,7 @@ "name": "host" } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -19055,7 +19039,7 @@ } } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -19250,7 +19234,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -19513,7 +19497,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -19527,7 +19511,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -19720,7 +19704,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -19915,7 +19899,7 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { @@ -20178,16 +20162,16 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { "execute": "query-sev-capabilities", - "id": "libvirt-49" + "id": "libvirt-48" } =20 { - "id": "libvirt-49", + "id": "libvirt-48", "error": { "class": "GenericError", "desc": "SEV feature is not available" diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_3.1.0.x86_64.replies index b562839794..7567ee6f42 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.replies @@ -5179,25 +5179,9 @@ "id": "libvirt-37" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-38" -} - -{ - "id": "libvirt-38", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -5716,12 +5700,12 @@ "migration-safe": true } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { "execute": "query-tpm-models", - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -5729,12 +5713,12 @@ "tpm-crb", "tpm-tis" ], - "id": "libvirt-40" + "id": "libvirt-39" } =20 { "execute": "query-tpm-types", - "id": "libvirt-41" + "id": "libvirt-40" } =20 { @@ -5742,12 +5726,12 @@ "passthrough", "emulator" ], - "id": "libvirt-41" + "id": "libvirt-40" } =20 { "execute": "query-command-line-options", - "id": "libvirt-42" + "id": "libvirt-41" } =20 { @@ -7021,12 +7005,12 @@ "option": "drive" } ], - "id": "libvirt-42" + "id": "libvirt-41" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-43" + "id": "libvirt-42" } =20 { @@ -7096,12 +7080,12 @@ "capability": "late-block-activate" } ], - "id": "libvirt-43" + "id": "libvirt-42" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -19286,7 +19270,7 @@ "meta-type": "object" } ], - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -19297,7 +19281,7 @@ "name": "host" } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -19499,7 +19483,7 @@ } } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -19703,7 +19687,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -19978,7 +19962,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -19992,7 +19976,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -20194,7 +20178,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -20398,7 +20382,7 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { @@ -20673,16 +20657,16 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { "execute": "query-sev-capabilities", - "id": "libvirt-49" + "id": "libvirt-48" } =20 { - "id": "libvirt-49", + "id": "libvirt-48", "error": { "class": "GenericError", "desc": "SEV feature is not available" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.aarch64.replies index 043189d1ac..128ee04e86 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies @@ -6210,25 +6210,9 @@ "id": "libvirt-32" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-33" -} - -{ - "id": "libvirt-33", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { @@ -6419,34 +6403,34 @@ "static": false } ], - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "execute": "query-tpm-models", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-tpm-types", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "return": [ ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-command-line-options", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -7594,12 +7578,12 @@ "option": "drive" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -7673,12 +7657,12 @@ "capability": "x-ignore-shared" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -19765,12 +19749,12 @@ ] } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { "execute": "query-gic-capabilities", - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -19786,7 +19770,7 @@ "kernel": false } ], - "id": "libvirt-40" + "id": "libvirt-39" } =20 { diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.riscv32.replies index 5205bda05c..053b714825 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies @@ -4079,47 +4079,31 @@ "id": "libvirt-33" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-34" -} - -{ - "id": "libvirt-34", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-tpm-models", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-tpm-types", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "return": [ ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-command-line-options", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -5391,12 +5375,12 @@ "option": "drive" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -5470,12 +5454,12 @@ "capability": "x-ignore-shared" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -17754,5 +17738,5 @@ ] } ], - "id": "libvirt-39" + "id": "libvirt-38" } diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies b/tests/= qemucapabilitiesdata/caps_4.0.0.riscv64.replies index dfe5671a58..2db59687aa 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies @@ -4079,47 +4079,31 @@ "id": "libvirt-33" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-34" -} - -{ - "id": "libvirt-34", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-tpm-models", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-tpm-types", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "return": [ ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-command-line-options", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -5391,12 +5375,12 @@ "option": "drive" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -5470,12 +5454,12 @@ "capability": "x-ignore-shared" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -17754,5 +17738,5 @@ ] } ], - "id": "libvirt-39" + "id": "libvirt-38" } diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies b/tests/qe= mucapabilitiesdata/caps_4.0.0.s390x.replies index 6f74f107f7..8c2c299828 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.s390x.replies @@ -4280,25 +4280,9 @@ "id": "libvirt-32" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-33" -} - -{ - "id": "libvirt-33", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-34" + "id": "libvirt-33" } =20 { @@ -4873,34 +4857,34 @@ "migration-safe": true } ], - "id": "libvirt-34" + "id": "libvirt-33" } =20 { "execute": "query-tpm-models", - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "return": [ ], - "id": "libvirt-35" + "id": "libvirt-34" } =20 { "execute": "query-tpm-types", - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "return": [ ], - "id": "libvirt-36" + "id": "libvirt-35" } =20 { "execute": "query-command-line-options", - "id": "libvirt-37" + "id": "libvirt-36" } =20 { @@ -6043,12 +6027,12 @@ "option": "drive" } ], - "id": "libvirt-37" + "id": "libvirt-36" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-38" + "id": "libvirt-37" } =20 { @@ -6122,12 +6106,12 @@ "capability": "x-ignore-shared" } ], - "id": "libvirt-38" + "id": "libvirt-37" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -18295,7 +18279,7 @@ ] } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -18306,7 +18290,7 @@ "name": "host" } }, - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -18351,7 +18335,7 @@ } } }, - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -18365,11 +18349,11 @@ } } }, - "id": "libvirt-41" + "id": "libvirt-40" } =20 { - "id": "libvirt-41", + "id": "libvirt-40", "error": { "class": "GenericError", "desc": "Property '.migratable' not found" diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies b/tests/q= emucapabilitiesdata/caps_4.0.0.x86_64.replies index 6cfff8b7e0..52a2825505 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies +++ b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.replies @@ -5412,25 +5412,9 @@ "id": "libvirt-37" } =20 -{ - "execute": "qom-list-properties", - "arguments": { - "typename": "pseries-machine" - }, - "id": "libvirt-38" -} - -{ - "id": "libvirt-38", - "error": { - "class": "DeviceNotFound", - "desc": "Class 'pseries-machine' not found" - } -} - { "execute": "query-cpu-definitions", - "id": "libvirt-39" + "id": "libvirt-38" } =20 { @@ -5947,12 +5931,12 @@ "migration-safe": true } ], - "id": "libvirt-39" + "id": "libvirt-38" } =20 { "execute": "query-tpm-models", - "id": "libvirt-40" + "id": "libvirt-39" } =20 { @@ -5960,12 +5944,12 @@ "tpm-crb", "tpm-tis" ], - "id": "libvirt-40" + "id": "libvirt-39" } =20 { "execute": "query-tpm-types", - "id": "libvirt-41" + "id": "libvirt-40" } =20 { @@ -5973,12 +5957,12 @@ "passthrough", "emulator" ], - "id": "libvirt-41" + "id": "libvirt-40" } =20 { "execute": "query-command-line-options", - "id": "libvirt-42" + "id": "libvirt-41" } =20 { @@ -7260,12 +7244,12 @@ "option": "drive" } ], - "id": "libvirt-42" + "id": "libvirt-41" } =20 { "execute": "query-migrate-capabilities", - "id": "libvirt-43" + "id": "libvirt-42" } =20 { @@ -7339,12 +7323,12 @@ "capability": "x-ignore-shared" } ], - "id": "libvirt-43" + "id": "libvirt-42" } =20 { "execute": "query-qmp-schema", - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -19809,7 +19793,7 @@ ] } ], - "id": "libvirt-44" + "id": "libvirt-43" } =20 { @@ -19820,7 +19804,7 @@ "name": "host" } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -20024,7 +20008,7 @@ } } }, - "id": "libvirt-45" + "id": "libvirt-44" } =20 { @@ -20230,7 +20214,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -20509,7 +20493,7 @@ } } }, - "id": "libvirt-46" + "id": "libvirt-45" } =20 { @@ -20523,7 +20507,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -20727,7 +20711,7 @@ } } }, - "id": "libvirt-47" + "id": "libvirt-46" } =20 { @@ -20933,7 +20917,7 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { @@ -21212,16 +21196,16 @@ } } }, - "id": "libvirt-48" + "id": "libvirt-47" } =20 { "execute": "query-sev-capabilities", - "id": "libvirt-49" + "id": "libvirt-48" } =20 { - "id": "libvirt-49", + "id": "libvirt-48", "error": { "class": "GenericError", "desc": "SEV feature is not available" --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list