From nobody Sun May 5 04:23:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 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=1612879205; cv=none; d=zohomail.com; s=zohoarc; b=f5vkwyoKtM4jTnsAnpfCFw6Kp9BTqntOHtZB6LSHS+1c7eHzOg1VnMUfBs/2P711WPes1vNb7zUvPJX3NB8lnpQbIm5p4AYvCDEcydomDd+CZ5OpQyP+5BhUFax0MsRe3ettUk8UrjON/xugGu6zVC1cOWOJI63QFVrfTBM/fgM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612879205; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=r/SztCOql1ZuuaB35Bf8q08r5pw8aLSe4KSfAOSQ1Ss=; b=mZZS8tVR2IsCj+h/+zgcxLNj9CPv9cy1x30Rbkq2NB3bewItjX4m4+xV0YbhoEvoDxXJkxFsg2kGItAnuP5kbqc3uXR65DCnv0VHBJmnDbcpz7DJzyoV3evIJLZ7vNp+WI4NJ83RPvoLE7T0xH+TvluMVvZBR+Nxf4AallTDPxU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1612879205454765.1222351176734; Tue, 9 Feb 2021 06:00:05 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-120-jpCDLIhPM7yCyteVTu1MNw-1; Tue, 09 Feb 2021 08:59:24 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id C2F17100CCC5; Tue, 9 Feb 2021 13:59:17 +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 9D9A25D745; Tue, 9 Feb 2021 13:59:17 +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 5FBA918095CB; Tue, 9 Feb 2021 13:59:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 119Dx9Zl024557 for ; Tue, 9 Feb 2021 08:59:09 -0500 Received: by smtp.corp.redhat.com (Postfix) id D3E286064B; Tue, 9 Feb 2021 13:59:09 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id D744418F15; Tue, 9 Feb 2021 13:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612879203; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=r/SztCOql1ZuuaB35Bf8q08r5pw8aLSe4KSfAOSQ1Ss=; b=FQfyi77HBux732lw7oOet/POKK0y+CjVYNbxdtTThAWT0XpKhJTrVpnyoIoDVZUCRCJt1h PSVOIgGBbe4iM2JVMICL76SHB9d9P6515HrExP0YEwFhjr7kg7GsYeiOy9yzyXH4TCRCRA mt9dD5X3ZQ+zg11k/VqzD0VyK9gk+fw= X-MC-Unique: jpCDLIhPM7yCyteVTu1MNw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 1/5] conf: define a new "maximum" CPU mode Date: Tue, 9 Feb 2021 13:58:57 +0000 Message-Id: <20210209135901.1225861-2-berrange@redhat.com> In-Reply-To: <20210209135901.1225861-1-berrange@redhat.com> References: <20210209135901.1225861-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Jiri Denemark X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) For hardware virtualization this is functionally identical to the existing host-passthrough mode so the same caveats apply. For emulated guest this exposes the maximum featureset supported by the emulator. Note that despite being emulated this is not guaranteed to be migration safe, especially if different emulator software versions are used on each host. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- docs/formatdomain.rst | 24 ++++++++++++++++++++++++ src/conf/cpu_conf.c | 13 +++++++++---- src/conf/cpu_conf.h | 1 + src/cpu/cpu.c | 1 + src/qemu/qemu_capabilities.c | 1 + src/qemu/qemu_command.c | 1 + src/qemu/qemu_domain.c | 1 + src/qemu/qemu_validate.c | 1 + 8 files changed, 39 insertions(+), 4 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 0f78aa3a8c..976770bdb6 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1226,6 +1226,13 @@ following collection of elements. :since:`Since 0.7.= 5` ... =20 +:: + + + + + ... + In case no restrictions need to be put on CPU model and its features, a si= mpler ``cpu`` element can be used. :since:`Since 0.7.6` =20 @@ -1351,6 +1358,18 @@ In case no restrictions need to be put on CPU model = and its features, a simpler another host safer: even with ``migratable=3D'on'`` migration will be dangerous unless both hosts are identical as described above. =20 + ``maximum`` + When running a guest with hardware virtualization this CPU model is + functionally identical to ``host-passthrough``, so refer to the docs + above. + + When running a guest with CPU emulation, this CPU model will enable + the maximum set of features that the emulation engine is able to sup= port. + Note that even with ``migratable=3D'on'`` migration will be dangerous + unless both hosts are running identical versions of the emulation co= de. + + :since:`Since 7.1.0` with the QEMU driver. + Both ``host-model`` and ``host-passthrough`` modes make sense when a do= main can run directly on the host CPUs (for example, domains with type ``kvm= ``). The actual host CPU is irrelevant for domains with emulated virtual CPUs @@ -1358,6 +1377,11 @@ In case no restrictions need to be put on CPU model = and its features, a simpler ``host-model`` may be implemented even for domains running on emulated = CPUs in which case the best CPU the hypervisor is able to emulate may be used rather then trying to mimic the host CPU model. + + If an application does not care about a specific CPU, just wants the + best featureset without a need for migration compatibility, the + ``maximum`` model is a good choice on hypervisors where it is available. + ``model`` The content of the ``model`` element specifies CPU model requested by t= he guest. The list of available CPU models and their definition can be fou= nd in diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c index f98b0a0eb3..eb4bfbbcfa 100644 --- a/src/conf/cpu_conf.c +++ b/src/conf/cpu_conf.c @@ -44,6 +44,7 @@ VIR_ENUM_IMPL(virCPUMode, "custom", "host-model", "host-passthrough", + "maximum", ); =20 VIR_ENUM_IMPL(virCPUMatch, @@ -402,10 +403,11 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt, if ((migratable =3D virXMLPropString(ctxt->node, "migratable"))) { int val; =20 - if (def->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH) { + if (def->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH && + def->mode !=3D VIR_CPU_MODE_MAXIMUM) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("Attribute migratable is only allowed for " - "host-passthrough CPU")); + "'host-passthrough' / 'maximum' CPU mode")); return -1; } =20 @@ -500,7 +502,8 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt, } =20 if (def->type =3D=3D VIR_CPU_TYPE_GUEST && - def->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH) { + def->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH && + def->mode !=3D VIR_CPU_MODE_MAXIMUM) { =20 if ((fallback =3D virXPathString("string(./model[1]/@fallback)", c= txt))) { if ((def->fallback =3D virCPUFallbackTypeFromString(fallback))= < 0) { @@ -727,7 +730,9 @@ virCPUDefFormatBufFull(virBufferPtr buf, virCPUCheckTypeToString(def->check)); } =20 - if (def->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH && def->migrata= ble) { + if ((def->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH || + def->mode =3D=3D VIR_CPU_MODE_MAXIMUM) && + def->migratable) { virBufferAsprintf(&attributeBuf, " migratable=3D'%s'", virTristateSwitchTypeToString(def->migratabl= e)); } diff --git a/src/conf/cpu_conf.h b/src/conf/cpu_conf.h index b744b06c2d..7ab198d370 100644 --- a/src/conf/cpu_conf.h +++ b/src/conf/cpu_conf.h @@ -44,6 +44,7 @@ typedef enum { VIR_CPU_MODE_CUSTOM, VIR_CPU_MODE_HOST_MODEL, VIR_CPU_MODE_HOST_PASSTHROUGH, + VIR_CPU_MODE_MAXIMUM, =20 VIR_CPU_MODE_LAST } virCPUMode; diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c index 44094bd0df..6ff88d6a9f 100644 --- a/src/cpu/cpu.c +++ b/src/cpu/cpu.c @@ -563,6 +563,7 @@ virCPUUpdate(virArch arch, =20 switch ((virCPUMode) guest->mode) { case VIR_CPU_MODE_HOST_PASSTHROUGH: + case VIR_CPU_MODE_MAXIMUM: return 0; =20 case VIR_CPU_MODE_HOST_MODEL: diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index d41b4a4753..d0378f94bc 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2334,6 +2334,7 @@ virQEMUCapsIsCPUModeSupported(virQEMUCapsPtr qemuCaps, cpus =3D virQEMUCapsGetAccel(qemuCaps, type)->cpuModels; return cpus && cpus->ncpus > 0; =20 + case VIR_CPU_MODE_MAXIMUM: case VIR_CPU_MODE_LAST: break; } diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 92036d26c0..059563d92f 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6356,6 +6356,7 @@ qemuBuildCpuModelArgStr(virQEMUDriverPtr driver, virBufferAdd(buf, cpu->model, -1); break; =20 + case VIR_CPU_MODE_MAXIMUM: case VIR_CPU_MODE_LAST: break; } diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 0f09e321fb..d89aea340b 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4151,6 +4151,7 @@ qemuDomainDefCPUPostParse(virDomainDefPtr def, def->cpu->check =3D VIR_CPU_CHECK_PARTIAL; break; =20 + case VIR_CPU_MODE_MAXIMUM: case VIR_CPU_MODE_LAST: break; } diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 78e80b7919..bf4ac19104 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -396,6 +396,7 @@ qemuValidateDomainDefCpu(virQEMUDriverPtr driver, * CUSTOM. */ break; + case VIR_CPU_MODE_MAXIMUM: case VIR_CPU_MODE_CUSTOM: case VIR_CPU_MODE_LAST: break; --=20 2.29.2 From nobody Sun May 5 04:23:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1612879174; cv=none; d=zohomail.com; s=zohoarc; b=UpoKrFPosRKkkn3mFpULc3rNkhBji68x3pCnRARMv0WjZ6M5HDBjCd9WQDVjP11U+sD+XQ06rz6bPQkUelMklote9JxoCzAuMD5q5dtsPl9+8MLu9GwRP7Yp5g1I04HOX9vrwQyDmhb7HZi5n6W/NP+IYnWsElyygb+MYYKadg8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612879174; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=Xt1Fgw5Ov+YefbiN1dLcdRUPsfKFqLpV1cj1nHjp1Uc=; b=NF7Jogd0iHFFI5moSKzNedfMrnwEBfve7bxQwNUhmngYgNEhP40V5HKDJz2SOVJV82b3kS9SUYS9uM1B4d7T5OInmMBA7vhnSxaLbtu190ngzeDaJm+QUdoQIPxe+/zlHrccSH8+WIIX0gla+odFb0XffI27kkcA97R7ul3LnyI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612879174039903.9172692236119; Tue, 9 Feb 2021 05:59:34 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-81-fC9L1cs1Mb6N2NPc-s2dWA-1; Tue, 09 Feb 2021 08:59:23 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id D78B380196C; Tue, 9 Feb 2021 13:59:16 +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 AF3575D745; Tue, 9 Feb 2021 13:59:16 +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 6D31F57DFE; Tue, 9 Feb 2021 13:59:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 119DxFiN024630 for ; Tue, 9 Feb 2021 08:59:15 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2059718A2F; Tue, 9 Feb 2021 13:59:15 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4452018F15; Tue, 9 Feb 2021 13:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612879172; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Xt1Fgw5Ov+YefbiN1dLcdRUPsfKFqLpV1cj1nHjp1Uc=; b=KoaegVmgJUDgWK3unBVqRY54ohEkDwiJYYA/hBrrquZWYmC9Yc6w4McNO040hLy6TOAIe2 M5+TNS3BqCFGuwQ9UCjIbx3NSZk+fQXOfjZO5zPXdydn7mZFCwT0f+VWb53leA/TsDrCZ2 Q+vQvALiogKR90fqAdA1XLLr4SVCgoE= X-MC-Unique: fC9L1cs1Mb6N2NPc-s2dWA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/5] conf: add reporting of "maximum" CPU mode in domain caps Date: Tue, 9 Feb 2021 13:58:58 +0000 Message-Id: <20210209135901.1225861-3-berrange@redhat.com> In-Reply-To: <20210209135901.1225861-1-berrange@redhat.com> References: <20210209135901.1225861-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Jiri Denemark X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The data reported is the same as for "host-passthrough" Signed-off-by: Daniel P. Berrang=C3=A9 --- docs/formatdomaincaps.html.in | 6 ++++++ docs/schemas/domaincaps.rng | 13 +++++++++++++ src/conf/domain_capabilities.c | 15 +++++++++++++++ src/conf/domain_capabilities.h | 2 ++ tests/domaincapsdata/bhyve_basic.x86_64.xml | 1 + tests/domaincapsdata/bhyve_fbuf.x86_64.xml | 1 + tests/domaincapsdata/bhyve_uefi.x86_64.xml | 1 + tests/domaincapsdata/empty.xml | 1 + tests/domaincapsdata/libxl-xenfv.xml | 1 + tests/domaincapsdata/libxl-xenpv.xml | 1 + tests/domaincapsdata/qemu_1.5.3-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.5.3-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.5.3.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.6.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.6.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.6.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.7.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.7.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_1.7.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.1.1-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.1.1-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.1.1.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.10.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_2.10.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_2.10.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_2.10.0.s390x.xml | 1 + tests/domaincapsdata/qemu_2.10.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.11.0.s390x.xml | 1 + tests/domaincapsdata/qemu_2.11.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_2.12.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_2.12.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_2.12.0.s390x.xml | 1 + tests/domaincapsdata/qemu_2.12.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.4.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.4.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.4.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.5.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.5.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.5.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.6.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.6.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.6.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_2.6.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_2.6.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_2.6.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.7.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.7.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.7.0.s390x.xml | 1 + tests/domaincapsdata/qemu_2.7.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.8.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.8.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.8.0.s390x.xml | 1 + tests/domaincapsdata/qemu_2.8.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_2.9.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_2.9.0.s390x.xml | 1 + tests/domaincapsdata/qemu_2.9.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_3.0.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_3.0.0.s390x.xml | 1 + tests/domaincapsdata/qemu_3.0.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_3.1.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_3.1.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_4.0.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_4.0.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_4.0.0.s390x.xml | 1 + tests/domaincapsdata/qemu_4.0.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.1.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_4.2.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_4.2.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_4.2.0.s390x.xml | 1 + tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_5.0.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_5.0.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_5.0.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.1.0.sparc.xml | 1 + tests/domaincapsdata/qemu_5.1.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml | 1 + tests/domaincapsdata/qemu_5.2.0.aarch64.xml | 1 + tests/domaincapsdata/qemu_5.2.0.ppc64.xml | 1 + tests/domaincapsdata/qemu_5.2.0.s390x.xml | 1 + tests/domaincapsdata/qemu_5.2.0.x86_64.xml | 1 + tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml | 1 + tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_6.0.0.x86_64.xml | 1 + 111 files changed, 143 insertions(+) diff --git a/docs/formatdomaincaps.html.in b/docs/formatdomaincaps.html.in index 8df88f5355..2d417b6953 100644 --- a/docs/formatdomaincaps.html.in +++ b/docs/formatdomaincaps.html.in @@ -207,6 +207,12 @@ <value>off</value> </enum> </mode> + <mode name=3D'maximum' supported=3D'yes'> + <enum name=3D'maximumMigratable'> + <value>on</value> + <value>off</value> + </enum> + </mode> <mode name=3D'host-model' supported=3D'yes'> <model fallback=3D'allow'>Broadwell</model> <vendor>Intel</vendor> diff --git a/docs/schemas/domaincaps.rng b/docs/schemas/domaincaps.rng index a57ef715c3..83d93ee494 100644 --- a/docs/schemas/domaincaps.rng +++ b/docs/schemas/domaincaps.rng @@ -88,6 +88,7 @@ + @@ -105,6 +106,18 @@ =20 + + + + maximum + + + + + + + + diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index 8605216cf7..fc48cc3fba 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -415,6 +415,21 @@ virDomainCapsCPUFormat(virBufferPtr buf, virBufferAddLit(buf, "/>\n"); } =20 + virBufferAsprintf(buf, "maximum ? "yes" : "no"); + + if (cpu->maximum && cpu->maximumMigratable.report) { + virBufferAddLit(buf, ">\n"); + virBufferAdjustIndent(buf, 2); + ENUM_PROCESS(cpu, maximumMigratable, + virTristateSwitchTypeToString); + virBufferAdjustIndent(buf, -2); + virBufferAddLit(buf, "\n"); + } else { + virBufferAddLit(buf, "/>\n"); + } + virBufferAsprintf(buf, "hostModel) { diff --git a/src/conf/domain_capabilities.h b/src/conf/domain_capabilities.h index f454780185..128b91fc8d 100644 --- a/src/conf/domain_capabilities.h +++ b/src/conf/domain_capabilities.h @@ -166,6 +166,8 @@ typedef virDomainCapsCPU *virDomainCapsCPUPtr; struct _virDomainCapsCPU { bool hostPassthrough; virDomainCapsEnum hostPassthroughMigratable; + bool maximum; + virDomainCapsEnum maximumMigratable; virCPUDefPtr hostModel; virDomainCapsCPUModelsPtr custom; }; diff --git a/tests/domaincapsdata/bhyve_basic.x86_64.xml b/tests/domaincaps= data/bhyve_basic.x86_64.xml index bdf2c4eee8..745f325531 100644 --- a/tests/domaincapsdata/bhyve_basic.x86_64.xml +++ b/tests/domaincapsdata/bhyve_basic.x86_64.xml @@ -8,6 +8,7 @@ + diff --git a/tests/domaincapsdata/bhyve_fbuf.x86_64.xml b/tests/domaincapsd= ata/bhyve_fbuf.x86_64.xml index f998c457c1..bb11c02ae9 100644 --- a/tests/domaincapsdata/bhyve_fbuf.x86_64.xml +++ b/tests/domaincapsdata/bhyve_fbuf.x86_64.xml @@ -17,6 +17,7 @@ + diff --git a/tests/domaincapsdata/bhyve_uefi.x86_64.xml b/tests/domaincapsd= ata/bhyve_uefi.x86_64.xml index 18f90023d5..dfd2360d74 100644 --- a/tests/domaincapsdata/bhyve_uefi.x86_64.xml +++ b/tests/domaincapsdata/bhyve_uefi.x86_64.xml @@ -17,6 +17,7 @@ + diff --git a/tests/domaincapsdata/empty.xml b/tests/domaincapsdata/empty.xml index 6c3f5f54fd..d3e2d89b60 100644 --- a/tests/domaincapsdata/empty.xml +++ b/tests/domaincapsdata/empty.xml @@ -5,6 +5,7 @@ x86_64 + diff --git a/tests/domaincapsdata/libxl-xenfv.xml b/tests/domaincapsdata/li= bxl-xenfv.xml index 4efc137c97..cc5b3847e2 100644 --- a/tests/domaincapsdata/libxl-xenfv.xml +++ b/tests/domaincapsdata/libxl-xenfv.xml @@ -20,6 +20,7 @@ + diff --git a/tests/domaincapsdata/libxl-xenpv.xml b/tests/domaincapsdata/li= bxl-xenpv.xml index 70e598fe9e..325f1e50b3 100644 --- a/tests/domaincapsdata/libxl-xenpv.xml +++ b/tests/domaincapsdata/libxl-xenpv.xml @@ -10,6 +10,7 @@ + diff --git a/tests/domaincapsdata/qemu_1.5.3-q35.x86_64.xml b/tests/domainc= apsdata/qemu_1.5.3-q35.x86_64.xml index 3ed96a3ee7..76e33a180d 100644 --- a/tests/domaincapsdata/qemu_1.5.3-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.5.3-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_1.5.3-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_1.5.3-tcg.x86_64.xml index 3b3d89a643..a88af9605a 100644 --- a/tests/domaincapsdata/qemu_1.5.3-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.5.3-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_1.5.3.x86_64.xml b/tests/domaincapsd= ata/qemu_1.5.3.x86_64.xml index 20cd3a105a..1536c94e95 100644 --- a/tests/domaincapsdata/qemu_1.5.3.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.5.3.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_1.6.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_1.6.0-q35.x86_64.xml index a4b26b46cb..5cc5b495a8 100644 --- a/tests/domaincapsdata/qemu_1.6.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.6.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_1.6.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_1.6.0-tcg.x86_64.xml index 6bff19bad5..4859ba4c33 100644 --- a/tests/domaincapsdata/qemu_1.6.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.6.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_1.6.0.x86_64.xml b/tests/domaincapsd= ata/qemu_1.6.0.x86_64.xml index 16417a13d2..df909cfa14 100644 --- a/tests/domaincapsdata/qemu_1.6.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.6.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_1.7.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_1.7.0-q35.x86_64.xml index 559b49491e..7f74f98aa2 100644 --- a/tests/domaincapsdata/qemu_1.7.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.7.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_1.7.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_1.7.0-tcg.x86_64.xml index 97e71bffff..07b020ef52 100644 --- a/tests/domaincapsdata/qemu_1.7.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.7.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_1.7.0.x86_64.xml b/tests/domaincapsd= ata/qemu_1.7.0.x86_64.xml index 472c073de9..5930a423cb 100644 --- a/tests/domaincapsdata/qemu_1.7.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_1.7.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.1.1-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.1.1-q35.x86_64.xml index a87f5b2a63..9e515c295a 100644 --- a/tests/domaincapsdata/qemu_2.1.1-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.1.1-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.1.1-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.1.1-tcg.x86_64.xml index 192a505d77..add9fc06fb 100644 --- a/tests/domaincapsdata/qemu_2.1.1-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.1.1-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_2.1.1.x86_64.xml b/tests/domaincapsd= ata/qemu_2.1.1.x86_64.xml index 15adfe0ee8..ded8183399 100644 --- a/tests/domaincapsdata/qemu_2.1.1.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.1.1.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_2.10.0-q35.x86_64.xml index be99698f09..e0314996c9 100644 --- a/tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_2.10.0-tcg.x86_64.xml index 31c096077d..3a1cec224d 100644 --- a/tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Opteron_G4 AMD diff --git a/tests/domaincapsdata/qemu_2.10.0-virt.aarch64.xml b/tests/doma= incapsdata/qemu_2.10.0-virt.aarch64.xml index bb509975ba..b8671f2733 100644 --- a/tests/domaincapsdata/qemu_2.10.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.10.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_2.10.0.aarch64.xml b/tests/domaincap= sdata/qemu_2.10.0.aarch64.xml index f1f34d5024..25205b7208 100644 --- a/tests/domaincapsdata/qemu_2.10.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.10.0.aarch64.xml @@ -30,6 +30,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_2.10.0.ppc64.xml b/tests/domaincapsd= ata/qemu_2.10.0.ppc64.xml index 2741a73237..d1a10c5f34 100644 --- a/tests/domaincapsdata/qemu_2.10.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_2.10.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_2.10.0.s390x.xml b/tests/domaincapsd= ata/qemu_2.10.0.s390x.xml index 2e81779ad3..e8b12be213 100644 --- a/tests/domaincapsdata/qemu_2.10.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.10.0.s390x.xml @@ -30,6 +30,7 @@ off + z14-base diff --git a/tests/domaincapsdata/qemu_2.10.0.x86_64.xml b/tests/domaincaps= data/qemu_2.10.0.x86_64.xml index 81bef600a9..f6db53e80d 100644 --- a/tests/domaincapsdata/qemu_2.10.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.10.0.x86_64.xml @@ -33,6 +33,7 @@ off + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_2.11.0-q35.x86_64.xml index d11e499bef..742ea30a66 100644 --- a/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_2.11.0-tcg.x86_64.xml index 3a6971584e..f077ca15e6 100644 --- a/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_2.11.0.s390x.xml b/tests/domaincapsd= ata/qemu_2.11.0.s390x.xml index 684382d4c9..6e149f1fd2 100644 --- a/tests/domaincapsdata/qemu_2.11.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.11.0.s390x.xml @@ -30,6 +30,7 @@ off + z14-base diff --git a/tests/domaincapsdata/qemu_2.11.0.x86_64.xml b/tests/domaincaps= data/qemu_2.11.0.x86_64.xml index 71ecbacacc..fb683a82eb 100644 --- a/tests/domaincapsdata/qemu_2.11.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0.x86_64.xml @@ -33,6 +33,7 @@ off + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_2.12.0-q35.x86_64.xml index dbd1bd4b15..d0512678e0 100644 --- a/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_2.12.0-tcg.x86_64.xml index 049bc7e2e0..d45c3cdcda 100644 --- a/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml b/tests/doma= incapsdata/qemu_2.12.0-virt.aarch64.xml index 58ebbe9cb8..8a6fbe9fe1 100644 --- a/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_2.12.0.aarch64.xml b/tests/domaincap= sdata/qemu_2.12.0.aarch64.xml index 5c96cc8d1e..05fbfef6e8 100644 --- a/tests/domaincapsdata/qemu_2.12.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.aarch64.xml @@ -30,6 +30,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_2.12.0.ppc64.xml b/tests/domaincapsd= ata/qemu_2.12.0.ppc64.xml index 1b12b9928f..310bef66c7 100644 --- a/tests/domaincapsdata/qemu_2.12.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_2.12.0.s390x.xml b/tests/domaincapsd= ata/qemu_2.12.0.s390x.xml index 4df87a9a2f..f5339dbc28 100644 --- a/tests/domaincapsdata/qemu_2.12.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.12.0.s390x.xml @@ -30,6 +30,7 @@ off + z14-base diff --git a/tests/domaincapsdata/qemu_2.12.0.x86_64.xml b/tests/domaincaps= data/qemu_2.12.0.x86_64.xml index 81d5083959..456d13d8a0 100644 --- a/tests/domaincapsdata/qemu_2.12.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.x86_64.xml @@ -34,6 +34,7 @@ off + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.4.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.4.0-q35.x86_64.xml index 23e103927e..3ae03de391 100644 --- a/tests/domaincapsdata/qemu_2.4.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.4.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.4.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.4.0-tcg.x86_64.xml index 2a6296739c..461cc4c102 100644 --- a/tests/domaincapsdata/qemu_2.4.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.4.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_2.4.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.4.0.x86_64.xml index 7c6d78e510..e1af5b6622 100644 --- a/tests/domaincapsdata/qemu_2.4.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.4.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.5.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.5.0-q35.x86_64.xml index bb8bd9c5c5..f46991ca27 100644 --- a/tests/domaincapsdata/qemu_2.5.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.5.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.5.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.5.0-tcg.x86_64.xml index 8b022e9bd7..82edcbfac6 100644 --- a/tests/domaincapsdata/qemu_2.5.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.5.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_2.5.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.5.0.x86_64.xml index a89990a42e..57f9f9b41b 100644 --- a/tests/domaincapsdata/qemu_2.5.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.5.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.6.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.6.0-q35.x86_64.xml index 251696a161..8bcd8f92ab 100644 --- a/tests/domaincapsdata/qemu_2.6.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.6.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.6.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.6.0-tcg.x86_64.xml index 7937fad971..2a7b46f775 100644 --- a/tests/domaincapsdata/qemu_2.6.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.6.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_2.6.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_2.6.0-virt.aarch64.xml index 95053e9cbe..14cab3f557 100644 --- a/tests/domaincapsdata/qemu_2.6.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.6.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_2.6.0.aarch64.xml b/tests/domaincaps= data/qemu_2.6.0.aarch64.xml index 223e944c8a..f84e648a15 100644 --- a/tests/domaincapsdata/qemu_2.6.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.6.0.aarch64.xml @@ -30,6 +30,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_2.6.0.ppc64.xml b/tests/domaincapsda= ta/qemu_2.6.0.ppc64.xml index c97f232028..7f9372a359 100644 --- a/tests/domaincapsdata/qemu_2.6.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_2.6.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_2.6.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.6.0.x86_64.xml index f95f8fb46a..4eeec1a22b 100644 --- a/tests/domaincapsdata/qemu_2.6.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.6.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.7.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.7.0-q35.x86_64.xml index 1e6c47f2d6..537941561b 100644 --- a/tests/domaincapsdata/qemu_2.7.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.7.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.7.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.7.0-tcg.x86_64.xml index 8b7c2ce8e6..79f5fba212 100644 --- a/tests/domaincapsdata/qemu_2.7.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.7.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_2.7.0.s390x.xml b/tests/domaincapsda= ta/qemu_2.7.0.s390x.xml index ff3dd4939b..f76564a9bc 100644 --- a/tests/domaincapsdata/qemu_2.7.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.7.0.s390x.xml @@ -30,6 +30,7 @@ off + diff --git a/tests/domaincapsdata/qemu_2.7.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.7.0.x86_64.xml index da1b10c41b..1dd19dfc37 100644 --- a/tests/domaincapsdata/qemu_2.7.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.7.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.8.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.8.0-q35.x86_64.xml index 0a7493d86d..e0bb1b1eee 100644 --- a/tests/domaincapsdata/qemu_2.8.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.8.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.8.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.8.0-tcg.x86_64.xml index 100e8e059c..1829fbda60 100644 --- a/tests/domaincapsdata/qemu_2.8.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.8.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Broadwell diff --git a/tests/domaincapsdata/qemu_2.8.0.s390x.xml b/tests/domaincapsda= ta/qemu_2.8.0.s390x.xml index 47b1aa46f7..2c075d7cdb 100644 --- a/tests/domaincapsdata/qemu_2.8.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.8.0.s390x.xml @@ -30,6 +30,7 @@ off + zEC12.2-base diff --git a/tests/domaincapsdata/qemu_2.8.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.8.0.x86_64.xml index 6fa754c18a..5f55b0730d 100644 --- a/tests/domaincapsdata/qemu_2.8.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.8.0.x86_64.xml @@ -33,6 +33,7 @@ off + Broadwell diff --git a/tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.9.0-q35.x86_64.xml index 3df3c3738e..440529443c 100644 --- a/tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.9.0-tcg.x86_64.xml index 08bb5fbad7..77bf8f4c52 100644 --- a/tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + Opteron_G4 AMD diff --git a/tests/domaincapsdata/qemu_2.9.0.ppc64.xml b/tests/domaincapsda= ta/qemu_2.9.0.ppc64.xml index 3776b6ed9c..2523d6ec6b 100644 --- a/tests/domaincapsdata/qemu_2.9.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_2.9.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_2.9.0.s390x.xml b/tests/domaincapsda= ta/qemu_2.9.0.s390x.xml index cf7e7781cc..d5b58a786d 100644 --- a/tests/domaincapsdata/qemu_2.9.0.s390x.xml +++ b/tests/domaincapsdata/qemu_2.9.0.s390x.xml @@ -30,6 +30,7 @@ off + z13.2-base diff --git a/tests/domaincapsdata/qemu_2.9.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.9.0.x86_64.xml index a80ef28488..50ef469308 100644 --- a/tests/domaincapsdata/qemu_2.9.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.9.0.x86_64.xml @@ -33,6 +33,7 @@ off + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_3.0.0-q35.x86_64.xml index 5b6e884403..72bc877529 100644 --- a/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_3.0.0-tcg.x86_64.xml index 1c650406c2..9354167ff7 100644 --- a/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_3.0.0.ppc64.xml b/tests/domaincapsda= ta/qemu_3.0.0.ppc64.xml index 6250af9e67..d8d8147bf4 100644 --- a/tests/domaincapsdata/qemu_3.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_3.0.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_3.0.0.s390x.xml b/tests/domaincapsda= ta/qemu_3.0.0.s390x.xml index dfec6c5c19..af9a8ddd4b 100644 --- a/tests/domaincapsdata/qemu_3.0.0.s390x.xml +++ b/tests/domaincapsdata/qemu_3.0.0.s390x.xml @@ -30,6 +30,7 @@ off + z14-base diff --git a/tests/domaincapsdata/qemu_3.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_3.0.0.x86_64.xml index 56830014ea..6561a9695c 100644 --- a/tests/domaincapsdata/qemu_3.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_3.1.0-q35.x86_64.xml index a75c577539..d57f1c78b3 100644 --- a/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_3.1.0-tcg.x86_64.xml index a7fde52d64..be3d54d87e 100644 --- a/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_3.1.0.ppc64.xml b/tests/domaincapsda= ta/qemu_3.1.0.ppc64.xml index 46226466d5..0f5be3a16f 100644 --- a/tests/domaincapsdata/qemu_3.1.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_3.1.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_3.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_3.1.0.x86_64.xml index 984be10833..859f973a40 100644 --- a/tests/domaincapsdata/qemu_3.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_4.0.0-q35.x86_64.xml index 566b8ab281..b873149375 100644 --- a/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_4.0.0-tcg.x86_64.xml index cc19a61316..7a793ef8f9 100644 --- a/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_4.0.0-virt.aarch64.xml index b77a7e67bc..e9eb19e39d 100644 --- a/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_4.0.0.aarch64.xml b/tests/domaincaps= data/qemu_4.0.0.aarch64.xml index 72ed2c90c5..43a492508f 100644 --- a/tests/domaincapsdata/qemu_4.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.aarch64.xml @@ -30,6 +30,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_4.0.0.ppc64.xml b/tests/domaincapsda= ta/qemu_4.0.0.ppc64.xml index 4b1ec16992..44d6cd5c2e 100644 --- a/tests/domaincapsdata/qemu_4.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_4.0.0.s390x.xml b/tests/domaincapsda= ta/qemu_4.0.0.s390x.xml index 3ac97b0625..7730f801ec 100644 --- a/tests/domaincapsdata/qemu_4.0.0.s390x.xml +++ b/tests/domaincapsdata/qemu_4.0.0.s390x.xml @@ -30,6 +30,7 @@ off + z14.2-base diff --git a/tests/domaincapsdata/qemu_4.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_4.0.0.x86_64.xml index 99d4a00a6a..a06a9fdc79 100644 --- a/tests/domaincapsdata/qemu_4.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_4.1.0-q35.x86_64.xml index 39050a2b7d..5081f5175e 100644 --- a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_4.1.0-tcg.x86_64.xml index dd2b28fe43..717b6b1b5a 100644 --- a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC-IBPB AMD diff --git a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_4.1.0.x86_64.xml index 1fc14a7dd6..1094ff4685 100644 --- a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_4.2.0-q35.x86_64.xml index a57529ee03..d76e5a9a18 100644 --- a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_4.2.0-tcg.x86_64.xml index e19f59b9d2..b90d300c42 100644 --- a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC-IBPB AMD diff --git a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_4.2.0-virt.aarch64.xml index 2d362f1582..814b2cf3f5 100644 --- a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml b/tests/domaincaps= data/qemu_4.2.0.aarch64.xml index 04bfba5196..2af62f7c07 100644 --- a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml @@ -30,6 +30,7 @@ off + pxa262 diff --git a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml b/tests/domaincapsda= ta/qemu_4.2.0.ppc64.xml index 304b06b14e..9523743b18 100644 --- a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_4.2.0.s390x.xml b/tests/domaincapsda= ta/qemu_4.2.0.s390x.xml index 7931dd4130..b5d92836d5 100644 --- a/tests/domaincapsdata/qemu_4.2.0.s390x.xml +++ b/tests/domaincapsdata/qemu_4.2.0.s390x.xml @@ -30,6 +30,7 @@ off + gen15a-base diff --git a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml b/tests/domaincapsd= ata/qemu_4.2.0.x86_64.xml index 6013d01e54..682225719d 100644 --- a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_5.0.0-q35.x86_64.xml index 4a30b558c0..e376a36df0 100644 --- a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_5.0.0-tcg.x86_64.xml index 18516adb71..7aa9dbdf0c 100644 --- a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_5.0.0-virt.aarch64.xml index 5fdc8d45d2..10ca10ae7d 100644 --- a/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml b/tests/domaincaps= data/qemu_5.0.0.aarch64.xml index 4a897d5e1e..524e483834 100644 --- a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.aarch64.xml @@ -30,6 +30,7 @@ off + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.0.0.ppc64.xml b/tests/domaincapsda= ta/qemu_5.0.0.ppc64.xml index bedfae90e0..e2339d7600 100644 --- a/tests/domaincapsdata/qemu_5.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_5.0.0.x86_64.xml index abaa54d493..49a8481f24 100644 --- a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml @@ -34,6 +34,7 @@ off + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_5.1.0-q35.x86_64.xml index 39452be343..b654c741f4 100644 --- a/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_5.1.0-tcg.x86_64.xml index cbecc55a77..8033951a6f 100644 --- a/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_5.1.0.sparc.xml b/tests/domaincapsda= ta/qemu_5.1.0.sparc.xml index 034951ecf8..f475f05c48 100644 --- a/tests/domaincapsdata/qemu_5.1.0.sparc.xml +++ b/tests/domaincapsdata/qemu_5.1.0.sparc.xml @@ -29,6 +29,7 @@ off + diff --git a/tests/domaincapsdata/qemu_5.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_5.1.0.x86_64.xml index d7477951b6..3a4a2fc071 100644 --- a/tests/domaincapsdata/qemu_5.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0.x86_64.xml @@ -34,6 +34,7 @@ off + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_5.2.0-q35.x86_64.xml index 5a5232751d..8f9e620b04 100644 --- a/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_5.2.0-tcg.x86_64.xml index 63546dc0a5..44e93d11d5 100644 --- a/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_5.2.0-virt.aarch64.xml index ccb95e6eac..1f837587f7 100644 --- a/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml @@ -32,6 +32,7 @@ off + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml b/tests/domaincaps= data/qemu_5.2.0.aarch64.xml index 4a897d5e1e..524e483834 100644 --- a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.aarch64.xml @@ -30,6 +30,7 @@ off + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.2.0.ppc64.xml b/tests/domaincapsda= ta/qemu_5.2.0.ppc64.xml index fb1aeae15c..f121524f2a 100644 --- a/tests/domaincapsdata/qemu_5.2.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.ppc64.xml @@ -30,6 +30,7 @@ off + POWER8 diff --git a/tests/domaincapsdata/qemu_5.2.0.s390x.xml b/tests/domaincapsda= ta/qemu_5.2.0.s390x.xml index efe999e4a2..e146dfb769 100644 --- a/tests/domaincapsdata/qemu_5.2.0.s390x.xml +++ b/tests/domaincapsdata/qemu_5.2.0.s390x.xml @@ -30,6 +30,7 @@ off + gen15a-base diff --git a/tests/domaincapsdata/qemu_5.2.0.x86_64.xml b/tests/domaincapsd= ata/qemu_5.2.0.x86_64.xml index efc21244b3..331117c39c 100644 --- a/tests/domaincapsdata/qemu_5.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.x86_64.xml @@ -34,6 +34,7 @@ off + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_6.0.0-q35.x86_64.xml index f216a8af33..819c5dde97 100644 --- a/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml @@ -35,6 +35,7 @@ off + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_6.0.0-tcg.x86_64.xml index d52814f9ee..d4b9e48275 100644 --- a/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml @@ -29,6 +29,7 @@ + EPYC AMD diff --git a/tests/domaincapsdata/qemu_6.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_6.0.0.x86_64.xml index c5a11d03b4..1661a48934 100644 --- a/tests/domaincapsdata/qemu_6.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0.x86_64.xml @@ -34,6 +34,7 @@ off + EPYC-Rome AMD --=20 2.29.2 From nobody Sun May 5 04:23:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1612879172; cv=none; d=zohomail.com; s=zohoarc; b=djO2S9TKmzOZDS4d3FBiAdrSZGBwWTUJdn8MC7eTGSfHqJSfIAioKAZPf2Qs8uZmKqF/MYgvQlooWaXKs0GLxL7ZMobZmSUbC7f183buOJDvWvhUU/bZXVBYVoWvcFw1hGj4enYDxMTNGdydcPxicOZG/SJs5u5EtwMAFQoWDVo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612879172; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=4+GC9MN02/p3W5/CsA01WocpT86LHhyZlDGlxtAnp80=; b=LrxCx37d50zmpZx910PC3ngJVunEhelWveb1AYvbM0yARQAULgIXaov5oZhB9wGewyyfddh1yQ5qzPMlsLmFy3wXgCMLB3cnU0Dkgh/OyHUQ+ztXU3HidvY4qFp6EasOsVR2LlansZAa81qK2LO+Nruj4i12l2f4DvFZ6cJi8C0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612879171996935.6854457776705; Tue, 9 Feb 2021 05:59:31 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-387--jhB4x4PP0WekBiwHrjKLA-1; Tue, 09 Feb 2021 08:59:27 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 242531084C84; Tue, 9 Feb 2021 13:59:20 +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 E9C5810016FC; Tue, 9 Feb 2021 13:59:19 +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 AF09A58073; Tue, 9 Feb 2021 13:59:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 119DxGCF024644 for ; Tue, 9 Feb 2021 08:59:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9F15919C97; Tue, 9 Feb 2021 13:59:16 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 897565B4B5; Tue, 9 Feb 2021 13:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612879171; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4+GC9MN02/p3W5/CsA01WocpT86LHhyZlDGlxtAnp80=; b=MzLkLniRgbfXllZUoDfBTTrC+h9NS3dBIm7F4eRBjzYTzuqCxnyGkHhduYPIHMc2dzPSIM 1Lmj6FHy6a07pgn/5jYaijfX8sX1hdBLL7ZKvSILu7Y2jgmox4rOGrACfpucIMhBi04Kol 1JPbKmHyKvSZPA7TSQ8hlfVX9OTjMWw= X-MC-Unique: -jhB4x4PP0WekBiwHrjKLA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 3/5] cpu: wire up support for maximum CPU mode Date: Tue, 9 Feb 2021 13:58:59 +0000 Message-Id: <20210209135901.1225861-4-berrange@redhat.com> In-Reply-To: <20210209135901.1225861-1-berrange@redhat.com> References: <20210209135901.1225861-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Jiri Denemark X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The logic applied in the ppc64 case isn't quite correct, as the interpretation of maximum mode depends on whether hardware virt is used or not. This is information the CPU driver doesn't have. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/cpu/cpu.c | 3 ++- src/cpu/cpu_ppc64.c | 10 ++++++++-- src/cpu/cpu_x86.c | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c index 6ff88d6a9f..dfedf5bbf0 100644 --- a/src/cpu/cpu.c +++ b/src/cpu/cpu.c @@ -884,7 +884,8 @@ virCPUTranslate(virArch arch, return -1; =20 if (cpu->mode =3D=3D VIR_CPU_MODE_HOST_MODEL || - cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH) + cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH || + cpu->mode =3D=3D VIR_CPU_MODE_MAXIMUM) return 0; =20 if (virCPUModelIsAllowed(cpu->model, models)) diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c index d71d147207..3e34b14f79 100644 --- a/src/cpu/cpu_ppc64.c +++ b/src/cpu/cpu_ppc64.c @@ -474,8 +474,14 @@ ppc64Compute(virCPUDefPtr host, G_GNUC_FALLTHROUGH; =20 case VIR_CPU_MODE_HOST_PASSTHROUGH: - /* host-model and host-passthrough: - * the guest CPU is the same as the host */ + case VIR_CPU_MODE_MAXIMUM: + /* host-model, host-passthrough & maximum: + * the guest CPU is the same as the host. + * + * Note for maximum, with non hardware virt + * the guest CPU is actually arbitrarily defined by + * the emulator, so this isn't strictly correct. + */ guest_model =3D ppc64ModelCopy(host_model); break; =20 diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 2422e258ec..fe423f38f9 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -3050,7 +3050,8 @@ virCPUx86UpdateLive(virCPUDefPtr cpu, virCPUDataPtr dataEnabled, virCPUDataPtr dataDisabled) { - bool hostPassthrough =3D cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUG= H; + bool hostPassthrough =3D (cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROU= GH || + cpu->mode =3D=3D VIR_CPU_MODE_MAXIMUM); virCPUx86MapPtr map; g_autoptr(virCPUx86Model) model =3D NULL; g_autoptr(virCPUx86Model) modelDisabled =3D NULL; --=20 2.29.2 From nobody Sun May 5 04:24:00 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1612879274; cv=none; d=zohomail.com; s=zohoarc; b=UMwPjuNqkh8OFD9LsuXRudGZunI9WZvVgAsWWEizF/JgtvMtISZiweJAFCtOrnuFymXWyZb2MBFQv7XtSI9r66p00kmnlmM7qlT7by/ZZ24LqY4/+H2WxkEXEUybErqulGtMZoQFhwiV7lcLZErB6d+k7kLSvqkbPDi3ASpRFNQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612879274; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=/ELdA1moLxvNUYTkH4Yih6g+glWyDnUZw+/fA9Udknc=; b=mo/78DpL/8bfmhNcNqcRIzskPuGjjE4Ntjgcv40URyVl2ainzDu0FecxFcY43xFkHsB8tqd9/Hg1StGMjJi2ST9zm32qg+STtGJeXn000uMpeyfgWP/eoxW4gzz05Sf2IVEajVMD8f+t32+VXs6x7i3jERU7gMPN5MSpxJzMTdg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612879274248784.3324236094701; Tue, 9 Feb 2021 06:01:14 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-35-SJPrYNBoMSWKdewi-F40kA-1; Tue, 09 Feb 2021 08:59:31 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id CFE2C100CCC8; Tue, 9 Feb 2021 13:59:22 +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 A8EBD50DD5; Tue, 9 Feb 2021 13:59:22 +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 6F88658078; Tue, 9 Feb 2021 13:59:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 119DxIKP024660 for ; Tue, 9 Feb 2021 08:59:18 -0500 Received: by smtp.corp.redhat.com (Postfix) id BF1A919CA8; Tue, 9 Feb 2021 13:59:18 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C1316064B; Tue, 9 Feb 2021 13:59:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612879272; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=/ELdA1moLxvNUYTkH4Yih6g+glWyDnUZw+/fA9Udknc=; b=dRm45KLmpuSfi+u66cxOCkO9tMsqzvba3b4nx9nojO29lQHuMiWYL3zM/UapiHU1GP9zxc 0F/FR9cd2+eggP5rPPsLavH8Rzy7Wv+iKcBYa5ZbLj/P+TanSq7dOnmUYU+rZh+fkmAPB7 9ub2ZhH9pvTsOX8QSUCYJZVtisNK5dg= X-MC-Unique: SJPrYNBoMSWKdewi-F40kA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 4/5] qemu: probe for "-cpu max" support Date: Tue, 9 Feb 2021 13:59:00 +0000 Message-Id: <20210209135901.1225861-5-berrange@redhat.com> In-Reply-To: <20210209135901.1225861-1-berrange@redhat.com> References: <20210209135901.1225861-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Jiri Denemark X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) This is a special CPU model similar to "-cpu host", so won't use our normal CPU model detection logic. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_capabilities.c | 11 +++++++++++ src/qemu/qemu_capabilities.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index d0378f94bc..ecfb313d0a 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -614,6 +614,7 @@ VIR_ENUM_IMPL(virQEMUCaps, =20 /* 390 */ "vhost-user-blk", + "cpu-max", ); =20 =20 @@ -2984,12 +2985,22 @@ virQEMUCapsProbeQMPCPUDefinitions(virQEMUCapsPtr qe= muCaps, virQEMUCapsAccelPtr accel, qemuMonitorPtr mon) { + qemuMonitorCPUDefsPtr defs =3D accel->cpuModels; + size_t i; + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_DEFINITIONS)) return 0; =20 if (virQEMUCapsFetchCPUDefinitions(mon, qemuCaps->arch, &accel->cpuMod= els) < 0) return -1; =20 + for (i =3D 0; i < defs->ncpus; i++) { + if (STREQ_NULLABLE(defs->cpus[i].name, "max")) { + virQEMUCapsSet(qemuCaps, QEMU_CAPS_CPU_MAX); + break; + } + } + return 0; } =20 diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 8cb5673042..79d443adfb 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -594,6 +594,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ =20 /* 390 */ QEMU_CAPS_DEVICE_VHOST_USER_BLK, /* -device vhost-user-blk */ + QEMU_CAPS_CPU_MAX, /* -cpu max */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; --=20 2.29.2 From nobody Sun May 5 04:24:00 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 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=1612879174; cv=none; d=zohomail.com; s=zohoarc; b=kzzY9XfVChSDAMPiG+BW/+Mr1pk/8VUfQXegckzIy44lh71hO9ZLSAXPK82SbKr2WhAntisDGlNAM3pUrKn+X7Nka57txzVGudR5EQxgI/X/kgQgdAMBZvVfSuf5es8QEM/FBTgxuQaFNw+3ZBV7J+zrtMAUVRKyUQiNzObxOMI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612879174; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=kX/kvc66j0kP9Aniw3B+Nj+zRYLog2Jra5EiNhqafsU=; b=X4ks4NpDvZftws+kbIRxk34VN9E87V/Hy9QsbDKD+5nbJjxFfFURUCVZvSNSA8SbSQhJhPtUYFlaS4Jsul81eSYkZOp05vEIbt4cNTxZUuFpm/KdpBHVL6Sz6D0JQlcGoB1VpGU9NN5/2h25sxagrdrGyu4DXhAK0HIUQ7ZeaEE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1612879174324136.6690336881503; Tue, 9 Feb 2021 05:59:34 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-308-kzM2QmixNvSDVOYzwVUZhQ-1; Tue, 09 Feb 2021 08:59:29 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6806DBBEF9; Tue, 9 Feb 2021 13:59:23 +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 382D660C4D; Tue, 9 Feb 2021 13:59:23 +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 E6BC118095CE; Tue, 9 Feb 2021 13:59:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 119DxLgv024673 for ; Tue, 9 Feb 2021 08:59:21 -0500 Received: by smtp.corp.redhat.com (Postfix) id F297A18A2F; Tue, 9 Feb 2021 13:59:20 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-66.ams2.redhat.com [10.36.115.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2315260BD9; Tue, 9 Feb 2021 13:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612879173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kX/kvc66j0kP9Aniw3B+Nj+zRYLog2Jra5EiNhqafsU=; b=hrWFNjPvS7y2xdSTwhxxdvilvIAnL9axzVMJZMM9mH2UgW032SkGLaRllK2x/AToLascTS cw4d7JGANnMDjyAENA+uxWXpwek8uZKPU1rFaEc5vq7wBiVtthg7mOfA5r7spLvQBFGgwN DkNQg8Jhqp4kBorzUS8cjZ5WUeb4HR4= X-MC-Unique: kzM2QmixNvSDVOYzwVUZhQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 5/5] qemu: wire up support for maximum CPU model Date: Tue, 9 Feb 2021 13:59:01 +0000 Message-Id: <20210209135901.1225861-6-berrange@redhat.com> In-Reply-To: <20210209135901.1225861-1-berrange@redhat.com> References: <20210209135901.1225861-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Jiri Denemark X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The "max" model can be treated the same way as "host" model in general. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_capabilities.c | 17 ++++++++++++++++- src/qemu/qemu_command.c | 10 +++++++--- src/qemu/qemu_domain.c | 11 +++++++---- src/qemu/qemu_driver.c | 2 ++ src/qemu/qemu_process.c | 8 +++++--- src/qemu/qemu_validate.c | 13 +++++++++++-- tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.10.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.11.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml | 7 ++++++- .../domaincapsdata/qemu_2.12.0-virt.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.12.0.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.12.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.12.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_2.9.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.0.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.0.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.1.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_3.1.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml | 7 ++++++- .../domaincapsdata/qemu_4.0.0-virt.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.0.0.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.0.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.0.0.s390x.xml | 7 ++++++- tests/domaincapsdata/qemu_4.0.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.1.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml | 7 ++++++- .../domaincapsdata/qemu_4.2.0-virt.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.2.0.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.2.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_4.2.0.s390x.xml | 7 ++++++- tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml | 7 ++++++- .../domaincapsdata/qemu_5.0.0-virt.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.0.0.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.0.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.0.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.1.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml | 7 ++++++- .../domaincapsdata/qemu_5.2.0-virt.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.2.0.aarch64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.2.0.ppc64.xml | 7 ++++++- tests/domaincapsdata/qemu_5.2.0.s390x.xml | 7 ++++++- tests/domaincapsdata/qemu_5.2.0.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml | 7 ++++++- tests/domaincapsdata/qemu_6.0.0.x86_64.xml | 7 ++++++- .../qemucapabilitiesdata/caps_2.10.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_2.11.0.x86_64.xml | 1 + .../caps_2.12.0.aarch64.xml | 1 + .../qemucapabilitiesdata/caps_2.12.0.ppc64.xml | 1 + .../qemucapabilitiesdata/caps_2.12.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_2.9.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml | 1 + .../qemucapabilitiesdata/caps_3.0.0.x86_64.xml | 1 + tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1 + .../qemucapabilitiesdata/caps_3.1.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_4.0.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml | 1 + .../qemucapabilitiesdata/caps_4.0.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_4.1.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_4.2.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml | 1 + .../qemucapabilitiesdata/caps_4.2.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_5.0.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 + .../qemucapabilitiesdata/caps_5.0.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_5.1.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_5.2.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml | 1 + .../qemucapabilitiesdata/caps_5.2.0.x86_64.xml | 1 + .../qemucapabilitiesdata/caps_6.0.0.x86_64.xml | 1 + .../qemuxml2argvdata/cpu-cache-passthrough3.err | 2 +- 94 files changed, 431 insertions(+), 73 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index ecfb313d0a..58e28c3bd1 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2336,6 +2336,8 @@ virQEMUCapsIsCPUModeSupported(virQEMUCapsPtr qemuCaps, return cpus && cpus->ncpus > 0; =20 case VIR_CPU_MODE_MAXIMUM: + return virQEMUCapsGet(qemuCaps, QEMU_CAPS_CPU_MAX); + case VIR_CPU_MODE_LAST: break; } @@ -2985,7 +2987,7 @@ virQEMUCapsProbeQMPCPUDefinitions(virQEMUCapsPtr qemu= Caps, virQEMUCapsAccelPtr accel, qemuMonitorPtr mon) { - qemuMonitorCPUDefsPtr defs =3D accel->cpuModels; + qemuMonitorCPUDefsPtr defs; size_t i; =20 if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_DEFINITIONS)) @@ -2994,6 +2996,7 @@ virQEMUCapsProbeQMPCPUDefinitions(virQEMUCapsPtr qemu= Caps, if (virQEMUCapsFetchCPUDefinitions(mon, qemuCaps->arch, &accel->cpuMod= els) < 0) return -1; =20 + defs =3D accel->cpuModels; for (i =3D 0; i < defs->ncpus; i++) { if (STREQ_NULLABLE(defs->cpus[i].name, "max")) { virQEMUCapsSet(qemuCaps, QEMU_CAPS_CPU_MAX); @@ -5977,6 +5980,18 @@ virQEMUCapsFillDomainCPUCaps(virQEMUCapsPtr qemuCaps, VIR_TRISTATE_SWITCH_OFF); } =20 + if (virQEMUCapsIsCPUModeSupported(qemuCaps, hostarch, domCaps->virttyp= e, + VIR_CPU_MODE_MAXIMUM, + domCaps->machine)) { + domCaps->cpu.maximum =3D true; + + domCaps->cpu.maximumMigratable.report =3D true; + VIR_DOMAIN_CAPS_ENUM_SET(domCaps->cpu.maximumMigratable, + VIR_TRISTATE_SWITCH_ON); + VIR_DOMAIN_CAPS_ENUM_SET(domCaps->cpu.maximumMigratable, + VIR_TRISTATE_SWITCH_OFF); + } + if (virQEMUCapsIsCPUModeSupported(qemuCaps, hostarch, domCaps->virttyp= e, VIR_CPU_MODE_HOST_MODEL, domCaps->machine)) { diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 059563d92f..f0333d4f1a 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6316,7 +6316,11 @@ qemuBuildCpuModelArgStr(virQEMUDriverPtr driver, =20 switch ((virCPUMode) cpu->mode) { case VIR_CPU_MODE_HOST_PASSTHROUGH: - virBufferAddLit(buf, "host"); + case VIR_CPU_MODE_MAXIMUM: + if (cpu->mode =3D=3D VIR_CPU_MODE_MAXIMUM) + virBufferAddLit(buf, "max"); + else + virBufferAddLit(buf, "host"); =20 if (def->os.arch =3D=3D VIR_ARCH_ARMV7L && driver->hostarch =3D=3D VIR_ARCH_AARCH64) { @@ -6356,7 +6360,6 @@ qemuBuildCpuModelArgStr(virQEMUDriverPtr driver, virBufferAdd(buf, cpu->model, -1); break; =20 - case VIR_CPU_MODE_MAXIMUM: case VIR_CPU_MODE_LAST: break; } @@ -6601,7 +6604,8 @@ qemuBuildCpuCommandLine(virCommandPtr cmd, } =20 if (hostOff && - def->cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH && + (def->cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH || + def->cpu->mode =3D=3D VIR_CPU_MODE_MAXIMUM) && virQEMUCapsGet(qemuCaps, QEMU_CAPS_CPU_CACHE)) virBufferAddLit(&buf, ",host-cache-info=3Doff"); =20 diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index d89aea340b..53b4fb5f4f 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4049,12 +4049,14 @@ qemuDomainDefCPUPostParse(virDomainDefPtr def, break; =20 case VIR_CPU_CACHE_MODE_PASSTHROUGH: - if (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH) { + if (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH && + def->cpu->mode !=3D VIR_CPU_MODE_MAXIMUM) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("CPU cache mode '%s' can only be used wit= h " - "'%s' CPUs"), + "'%s' / '%s' CPUs"), virCPUCacheModeTypeToString(cache->mode), - virCPUModeTypeToString(VIR_CPU_MODE_HOST_PA= SSTHROUGH)); + virCPUModeTypeToString(VIR_CPU_MODE_HOST_PA= SSTHROUGH), + virCPUModeTypeToString(VIR_CPU_MODE_MAXIMUM= )); return -1; } =20 @@ -4136,6 +4138,7 @@ qemuDomainDefCPUPostParse(virDomainDefPtr def, =20 switch ((virCPUMode) def->cpu->mode) { case VIR_CPU_MODE_HOST_PASSTHROUGH: + case VIR_CPU_MODE_MAXIMUM: def->cpu->check =3D VIR_CPU_CHECK_NONE; break; =20 @@ -4151,7 +4154,6 @@ qemuDomainDefCPUPostParse(virDomainDefPtr def, def->cpu->check =3D VIR_CPU_CHECK_PARTIAL; break; =20 - case VIR_CPU_MODE_MAXIMUM: case VIR_CPU_MODE_LAST: break; } @@ -6304,6 +6306,7 @@ qemuDomainObjCheckCPUTaint(virQEMUDriverPtr driver, =20 switch (obj->def->cpu->mode) { case VIR_CPU_MODE_HOST_PASSTHROUGH: + case VIR_CPU_MODE_MAXIMUM: if (incomingMigration) qemuDomainObjTaint(driver, obj, VIR_DOMAIN_TAINT_HOST_CPU, log= Ctxt); break; diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index c34af6b7d1..b0d907fbb3 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -12314,6 +12314,8 @@ qemuConnectCompareHypervisorCPU(virConnectPtr conn, if (!cpu->model) { if (cpu->mode =3D=3D VIR_CPU_MODE_HOST_PASSTHROUGH) { cpu->model =3D g_strdup("host"); + } else if (cpu->mode =3D=3D VIR_CPU_MODE_MAXIMUM) { + cpu->model =3D g_strdup("max"); } else { virReportError(VIR_ERR_INVALID_ARG, "%s", _("cpu parameter is missing a model name")); diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 30cfa4d485..8d21e45218 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -6156,8 +6156,9 @@ qemuProcessUpdateGuestCPU(virDomainDefPtr def, if (virCPUConvertLegacy(hostarch, def->cpu) < 0) return -1; =20 - /* nothing to update for host-passthrough */ - if (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH) { + /* nothing to update for host-passthrough / maximum */ + if (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH && + def->cpu->mode !=3D VIR_CPU_MODE_MAXIMUM) { g_autoptr(virDomainCapsCPUModels) cpuModels =3D NULL; =20 if (def->cpu->check =3D=3D VIR_CPU_CHECK_PARTIAL && @@ -8055,7 +8056,8 @@ qemuProcessRefreshCPUMigratability(virQEMUDriverPtr d= river, bool migratable; int rc; =20 - if (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH) + if (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTHROUGH && + def->cpu->mode !=3D VIR_CPU_MODE_MAXIMUM) return 0; =20 /* If the cpu.migratable capability is present, the migratable attribu= te diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index bf4ac19104..62a915e946 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -255,10 +255,11 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, =20 case VIR_DOMAIN_FEATURE_KVM: if (def->kvm_features[VIR_DOMAIN_KVM_DEDICATED] =3D=3D VIR_TRI= STATE_SWITCH_ON && - (!def->cpu || def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTH= ROUGH)) { + (!def->cpu || (def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASST= HROUGH && + def->cpu->mode !=3D VIR_CPU_MODE_MAXIMUM)))= { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("kvm-hint-dedicated=3Don is only applicab= le " - "for cpu host-passthrough")); + "for cpu host-passthrough / maximum")); return -1; } break; @@ -396,7 +397,15 @@ qemuValidateDomainDefCpu(virQEMUDriverPtr driver, * CUSTOM. */ break; + case VIR_CPU_MODE_MAXIMUM: + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CPU_MAX)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("maximum CPU is not supported by QEMU binary"= )); + return -1; + } + break; + case VIR_CPU_MODE_CUSTOM: case VIR_CPU_MODE_LAST: break; diff --git a/tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_2.10.0-q35.x86_64.xml index e0314996c9..06507fdbd6 100644 --- a/tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.10.0-q35.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_2.10.0-tcg.x86_64.xml index 3a1cec224d..83f1b8eeb3 100644 --- a/tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.10.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + Opteron_G4 AMD diff --git a/tests/domaincapsdata/qemu_2.10.0.x86_64.xml b/tests/domaincaps= data/qemu_2.10.0.x86_64.xml index f6db53e80d..1402425134 100644 --- a/tests/domaincapsdata/qemu_2.10.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.10.0.x86_64.xml @@ -33,7 +33,12 @@ off - + + + on + off + + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_2.11.0-q35.x86_64.xml index 742ea30a66..df11d98164 100644 --- a/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0-q35.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_2.11.0-tcg.x86_64.xml index f077ca15e6..dd4b9eb3a5 100644 --- a/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_2.11.0.x86_64.xml b/tests/domaincaps= data/qemu_2.11.0.x86_64.xml index fb683a82eb..bed878437b 100644 --- a/tests/domaincapsdata/qemu_2.11.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.11.0.x86_64.xml @@ -33,7 +33,12 @@ off - + + + on + off + + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_2.12.0-q35.x86_64.xml index d0512678e0..d23323e896 100644 --- a/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_2.12.0-tcg.x86_64.xml index d45c3cdcda..b7ed014bcc 100644 --- a/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml b/tests/doma= incapsdata/qemu_2.12.0-virt.aarch64.xml index 8a6fbe9fe1..6fb16ea733 100644 --- a/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.12.0-virt.aarch64.xml @@ -32,7 +32,12 @@ off - + + + on + off + + pxa262 diff --git a/tests/domaincapsdata/qemu_2.12.0.aarch64.xml b/tests/domaincap= sdata/qemu_2.12.0.aarch64.xml index 05fbfef6e8..890354eb5f 100644 --- a/tests/domaincapsdata/qemu_2.12.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.aarch64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + pxa262 diff --git a/tests/domaincapsdata/qemu_2.12.0.ppc64.xml b/tests/domaincapsd= ata/qemu_2.12.0.ppc64.xml index 310bef66c7..cbd2452163 100644 --- a/tests/domaincapsdata/qemu_2.12.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_2.12.0.x86_64.xml b/tests/domaincaps= data/qemu_2.12.0.x86_64.xml index 456d13d8a0..ac3a707d08 100644 --- a/tests/domaincapsdata/qemu_2.12.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.12.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Haswell-noTSX Intel diff --git a/tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_2.9.0-q35.x86_64.xml index 440529443c..797b970040 100644 --- a/tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.9.0-q35.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_2.9.0-tcg.x86_64.xml index 77bf8f4c52..b47c426f1b 100644 --- a/tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.9.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + Opteron_G4 AMD diff --git a/tests/domaincapsdata/qemu_2.9.0.x86_64.xml b/tests/domaincapsd= ata/qemu_2.9.0.x86_64.xml index 50ef469308..7716e9d381 100644 --- a/tests/domaincapsdata/qemu_2.9.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_2.9.0.x86_64.xml @@ -33,7 +33,12 @@ off - + + + on + off + + Skylake-Client Intel diff --git a/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_3.0.0-q35.x86_64.xml index 72bc877529..648244d37a 100644 --- a/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_3.0.0-tcg.x86_64.xml index 9354167ff7..fde3f445a3 100644 --- a/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_3.0.0.ppc64.xml b/tests/domaincapsda= ta/qemu_3.0.0.ppc64.xml index d8d8147bf4..7b8a2ab484 100644 --- a/tests/domaincapsdata/qemu_3.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_3.0.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_3.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_3.0.0.x86_64.xml index 6561a9695c..898c191ab7 100644 --- a/tests/domaincapsdata/qemu_3.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.0.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_3.1.0-q35.x86_64.xml index d57f1c78b3..97912f8119 100644 --- a/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_3.1.0-tcg.x86_64.xml index be3d54d87e..02c9ce1d38 100644 --- a/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_3.1.0.ppc64.xml b/tests/domaincapsda= ta/qemu_3.1.0.ppc64.xml index 0f5be3a16f..a3c1d7be5d 100644 --- a/tests/domaincapsdata/qemu_3.1.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_3.1.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_3.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_3.1.0.x86_64.xml index 859f973a40..2819a22ee0 100644 --- a/tests/domaincapsdata/qemu_3.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_3.1.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_4.0.0-q35.x86_64.xml index b873149375..d17068003d 100644 --- a/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_4.0.0-tcg.x86_64.xml index 7a793ef8f9..e65b8c21a3 100644 --- a/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_4.0.0-virt.aarch64.xml index e9eb19e39d..282a6b50da 100644 --- a/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.0.0-virt.aarch64.xml @@ -32,7 +32,12 @@ off - + + + on + off + + pxa262 diff --git a/tests/domaincapsdata/qemu_4.0.0.aarch64.xml b/tests/domaincaps= data/qemu_4.0.0.aarch64.xml index 43a492508f..a84b0d7a7a 100644 --- a/tests/domaincapsdata/qemu_4.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.aarch64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + pxa262 diff --git a/tests/domaincapsdata/qemu_4.0.0.ppc64.xml b/tests/domaincapsda= ta/qemu_4.0.0.ppc64.xml index 44d6cd5c2e..15a536f21c 100644 --- a/tests/domaincapsdata/qemu_4.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_4.0.0.s390x.xml b/tests/domaincapsda= ta/qemu_4.0.0.s390x.xml index 7730f801ec..5a8f0eaf69 100644 --- a/tests/domaincapsdata/qemu_4.0.0.s390x.xml +++ b/tests/domaincapsdata/qemu_4.0.0.s390x.xml @@ -30,7 +30,12 @@ off - + + + on + off + + z14.2-base diff --git a/tests/domaincapsdata/qemu_4.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_4.0.0.x86_64.xml index a06a9fdc79..e11d68f2ee 100644 --- a/tests/domaincapsdata/qemu_4.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.0.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_4.1.0-q35.x86_64.xml index 5081f5175e..f3784936fb 100644 --- a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_4.1.0-tcg.x86_64.xml index 717b6b1b5a..d759d00c61 100644 --- a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC-IBPB AMD diff --git a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_4.1.0.x86_64.xml index 1094ff4685..3578e27c11 100644 --- a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_4.2.0-q35.x86_64.xml index d76e5a9a18..8083dd2aeb 100644 --- a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_4.2.0-tcg.x86_64.xml index b90d300c42..ec001884b7 100644 --- a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC-IBPB AMD diff --git a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_4.2.0-virt.aarch64.xml index 814b2cf3f5..2ad2936d59 100644 --- a/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-virt.aarch64.xml @@ -32,7 +32,12 @@ off - + + + on + off + + pxa262 diff --git a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml b/tests/domaincaps= data/qemu_4.2.0.aarch64.xml index 2af62f7c07..72739fd752 100644 --- a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + pxa262 diff --git a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml b/tests/domaincapsda= ta/qemu_4.2.0.ppc64.xml index 9523743b18..69cbd260cf 100644 --- a/tests/domaincapsdata/qemu_4.2.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_4.2.0.s390x.xml b/tests/domaincapsda= ta/qemu_4.2.0.s390x.xml index b5d92836d5..17b28d84d1 100644 --- a/tests/domaincapsdata/qemu_4.2.0.s390x.xml +++ b/tests/domaincapsdata/qemu_4.2.0.s390x.xml @@ -30,7 +30,12 @@ off - + + + on + off + + gen15a-base diff --git a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml b/tests/domaincapsd= ata/qemu_4.2.0.x86_64.xml index 682225719d..be1be2dcae 100644 --- a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_5.0.0-q35.x86_64.xml index e376a36df0..590742b8d1 100644 --- a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_5.0.0-tcg.x86_64.xml index 7aa9dbdf0c..37aaa6f3da 100644 --- a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_5.0.0-virt.aarch64.xml index 10ca10ae7d..b762c7108f 100644 --- a/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-virt.aarch64.xml @@ -32,7 +32,12 @@ off - + + + on + off + + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml b/tests/domaincaps= data/qemu_5.0.0.aarch64.xml index 524e483834..c9561c6d92 100644 --- a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.aarch64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.0.0.ppc64.xml b/tests/domaincapsda= ta/qemu_5.0.0.ppc64.xml index e2339d7600..fd088bd2d5 100644 --- a/tests/domaincapsdata/qemu_5.0.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_5.0.0.x86_64.xml index 49a8481f24..16f3459c48 100644 --- a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + Skylake-Client-IBRS Intel diff --git a/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_5.1.0-q35.x86_64.xml index b654c741f4..41c59755df 100644 --- a/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_5.1.0-tcg.x86_64.xml index 8033951a6f..9afba50265 100644 --- a/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_5.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_5.1.0.x86_64.xml index 3a4a2fc071..ab3a7474d3 100644 --- a/tests/domaincapsdata/qemu_5.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.1.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_5.2.0-q35.x86_64.xml index 8f9e620b04..0ac7b1240f 100644 --- a/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_5.2.0-tcg.x86_64.xml index 44e93d11d5..7fcbb8c0f2 100644 --- a/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml b/tests/domai= ncapsdata/qemu_5.2.0-virt.aarch64.xml index 1f837587f7..a5b063e7f8 100644 --- a/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml @@ -32,7 +32,12 @@ off - + + + on + off + + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml b/tests/domaincaps= data/qemu_5.2.0.aarch64.xml index 524e483834..c9561c6d92 100644 --- a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.aarch64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + cortex-a9 diff --git a/tests/domaincapsdata/qemu_5.2.0.ppc64.xml b/tests/domaincapsda= ta/qemu_5.2.0.ppc64.xml index f121524f2a..93e020302e 100644 --- a/tests/domaincapsdata/qemu_5.2.0.ppc64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.ppc64.xml @@ -30,7 +30,12 @@ off - + + + on + off + + POWER8 diff --git a/tests/domaincapsdata/qemu_5.2.0.s390x.xml b/tests/domaincapsda= ta/qemu_5.2.0.s390x.xml index e146dfb769..d54f88fc10 100644 --- a/tests/domaincapsdata/qemu_5.2.0.s390x.xml +++ b/tests/domaincapsdata/qemu_5.2.0.s390x.xml @@ -30,7 +30,12 @@ off - + + + on + off + + gen15a-base diff --git a/tests/domaincapsdata/qemu_5.2.0.x86_64.xml b/tests/domaincapsd= ata/qemu_5.2.0.x86_64.xml index 331117c39c..35dca37b28 100644 --- a/tests/domaincapsdata/qemu_5.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_6.0.0-q35.x86_64.xml index 819c5dde97..ae0d4a6264 100644 --- a/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0-q35.x86_64.xml @@ -35,7 +35,12 @@ off - + + + on + off + + EPYC-Rome AMD diff --git a/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_6.0.0-tcg.x86_64.xml index d4b9e48275..bd2c51f34b 100644 --- a/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0-tcg.x86_64.xml @@ -29,7 +29,12 @@ - + + + on + off + + EPYC AMD diff --git a/tests/domaincapsdata/qemu_6.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_6.0.0.x86_64.xml index 1661a48934..e104a6b2d8 100644 --- a/tests/domaincapsdata/qemu_6.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_6.0.0.x86_64.xml @@ -34,7 +34,12 @@ off - + + + on + off + + EPYC-Rome AMD diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml b/tests/qemu= capabilitiesdata/caps_2.10.0.x86_64.xml index 2fe1888535..579b88c17f 100644 --- a/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml @@ -193,6 +193,7 @@ + 2010000 0 43100287 diff --git a/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml b/tests/qemu= capabilitiesdata/caps_2.11.0.x86_64.xml index 56024cfa5d..2c475d73bc 100644 --- a/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml @@ -200,6 +200,7 @@ + 2011000 0 43100288 diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml b/tests/qem= ucapabilitiesdata/caps_2.12.0.aarch64.xml index 3ff1bf3ff8..d4dad8d8b2 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml @@ -167,6 +167,7 @@ + 2012000 0 61700289 diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml b/tests/qemuc= apabilitiesdata/caps_2.12.0.ppc64.xml index 9311bf66db..f441354054 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml @@ -168,6 +168,7 @@ + 2011090 0 42900289 diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml b/tests/qemu= capabilitiesdata/caps_2.12.0.x86_64.xml index df0ce08da6..d54e305e2e 100644 --- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml @@ -211,6 +211,7 @@ + 2011090 0 43100289 diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_2.9.0.x86_64.xml index d984ad3066..37406cb4a9 100644 --- a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml @@ -186,6 +186,7 @@ + 2009000 0 43100247 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_3.0.0.ppc64.xml index dc0e8d637e..28cc662bfb 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml @@ -170,6 +170,7 @@ + 2012050 0 42900239 diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_3.0.0.x86_64.xml index 2ea912eaad..09bdbf7fc7 100644 --- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml @@ -217,6 +217,7 @@ + 3000000 0 43100239 diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_3.1.0.ppc64.xml index b05f16983c..11d8d668de 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml @@ -175,6 +175,7 @@ + 3000091 0 42900240 diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_3.1.0.x86_64.xml index 8a892a5da3..7c7216826b 100644 --- a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml @@ -220,6 +220,7 @@ + 3000092 0 43100240 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml b/tests/qemu= capabilitiesdata/caps_4.0.0.aarch64.xml index c28ada94fb..c44d5c6ddf 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml @@ -181,6 +181,7 @@ + 4000000 0 61700240 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_4.0.0.ppc64.xml index a15edd87de..7094752b29 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml @@ -189,6 +189,7 @@ + 4000000 0 42900240 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml b/tests/qemuca= pabilitiesdata/caps_4.0.0.s390x.xml index 4a10deea01..8cc3a51eeb 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml +++ b/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml @@ -145,6 +145,7 @@ + 4000000 0 39100240 diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_4.0.0.x86_64.xml index c580d29374..23a150348d 100644 --- a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml @@ -226,6 +226,7 @@ + 4000000 0 43100240 diff --git a/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_4.1.0.x86_64.xml index 26eb3786e8..792ea9e9e9 100644 --- a/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml @@ -233,6 +233,7 @@ + 4001000 0 43100241 diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml b/tests/qemu= capabilitiesdata/caps_4.2.0.aarch64.xml index 4c149e79bb..20549834eb 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml @@ -194,6 +194,7 @@ + 4001050 0 61700242 diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_4.2.0.ppc64.xml index a0019f2a20..58c73f0a98 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml @@ -195,6 +195,7 @@ + 4001050 0 42900242 diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml b/tests/qemuca= pabilitiesdata/caps_4.2.0.s390x.xml index 41db85be6b..9bfdb2ce63 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml @@ -156,6 +156,7 @@ + 4002000 0 39100242 diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_4.2.0.x86_64.xml index 976eaf347b..10dc5d562e 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml @@ -242,6 +242,7 @@ + 4002000 0 43100242 diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml b/tests/qemu= capabilitiesdata/caps_5.0.0.aarch64.xml index b9963bbd7e..3e8c87ece3 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml @@ -204,6 +204,7 @@ + 5000000 0 61700241 diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_5.0.0.ppc64.xml index 46edacd44b..49479c215f 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml @@ -213,6 +213,7 @@ + 5000000 0 42900241 diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_5.0.0.x86_64.xml index f5bcc9ed83..99155d9097 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml @@ -249,6 +249,7 @@ + 5000000 0 43100241 diff --git a/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_5.1.0.x86_64.xml index f7d0be69cb..9e1fa172df 100644 --- a/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml @@ -251,6 +251,7 @@ + 5001000 0 43100242 diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml b/tests/qemu= capabilitiesdata/caps_5.2.0.aarch64.xml index 6b40141f15..1f015c2da1 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml @@ -208,6 +208,7 @@ + 5002000 0 61700243 diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml b/tests/qemuca= pabilitiesdata/caps_5.2.0.ppc64.xml index 298139cdd7..bc94e50e59 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml @@ -215,6 +215,7 @@ + 5002000 0 42900243 diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml b/tests/qemuca= pabilitiesdata/caps_5.2.0.s390x.xml index b59404230c..8ca989facb 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.s390x.xml @@ -163,6 +163,7 @@ + 5002000 0 39100243 diff --git a/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_5.2.0.x86_64.xml index 52a755ffc8..c85362e1db 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml @@ -252,6 +252,7 @@ + 5002000 0 43100243 diff --git a/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_6.0.0.x86_64.xml index 0cb94e02e8..0f2467609c 100644 --- a/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml @@ -253,6 +253,7 @@ + 5002050 0 43100242 diff --git a/tests/qemuxml2argvdata/cpu-cache-passthrough3.err b/tests/qemu= xml2argvdata/cpu-cache-passthrough3.err index 2d64cda5e5..6581f143d6 100644 --- a/tests/qemuxml2argvdata/cpu-cache-passthrough3.err +++ b/tests/qemuxml2argvdata/cpu-cache-passthrough3.err @@ -1 +1 @@ -unsupported configuration: CPU cache mode 'passthrough' can only be used w= ith 'host-passthrough' CPUs +unsupported configuration: CPU cache mode 'passthrough' can only be used w= ith 'host-passthrough' / 'maximum' CPUs --=20 2.29.2