1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

qemu: capabilities: Retire QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE

The flag was based on a version check which no longer made sense. Remove
the flag by replacing it's only use by an arch-check which is equivalent
at this point.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-02-09 17:21:33 +01:00
parent b72318f36d
commit 22acc863c7
13 changed files with 3 additions and 20 deletions

View File

@ -591,7 +591,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
/* 370 */ /* 370 */
"cpu.migratable", /* QEMU_CAPS_CPU_MIGRATABLE */ "cpu.migratable", /* QEMU_CAPS_CPU_MIGRATABLE */
"query-cpu-model-expansion.migratable", /* QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE */ "query-cpu-model-expansion.migratable", /* X_QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE */
"fw_cfg", /* X_QEMU_CAPS_FW_CFG */ "fw_cfg", /* X_QEMU_CAPS_FW_CFG */
"migration-param.bandwidth", /* QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH */ "migration-param.bandwidth", /* QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH */
"migration-param.downtime", /* QEMU_CAPS_MIGRATION_PARAM_DOWNTIME */ "migration-param.downtime", /* QEMU_CAPS_MIGRATION_PARAM_DOWNTIME */
@ -3088,7 +3088,7 @@ virQEMUCapsProbeQMPHostCPU(virQEMUCaps *qemuCaps,
/* Try to check migratability of each feature. */ /* Try to check migratability of each feature. */
if (modelInfo && if (modelInfo &&
virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE) && ARCH_IS_X86(qemuCaps->arch) &&
qemuMonitorGetCPUModelExpansion(mon, type, cpu, false, fail_no_props, qemuMonitorGetCPUModelExpansion(mon, type, cpu, false, fail_no_props,
&nonMigratable) < 0) &nonMigratable) < 0)
return -1; return -1;
@ -5298,12 +5298,6 @@ virQEMUCapsInitProcessCaps(virQEMUCaps *qemuCaps)
if (ARCH_IS_X86(qemuCaps->arch) && if (ARCH_IS_X86(qemuCaps->arch) &&
virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION)) { virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION)) {
virQEMUCapsSet(qemuCaps, QEMU_CAPS_CPU_CACHE); virQEMUCapsSet(qemuCaps, QEMU_CAPS_CPU_CACHE);
/* Old x86 QEMU supported migratable:false property in
* query-cpu-model-expansion arguments even though it was not properly
* advertised as a CPU property.
*/
virQEMUCapsSet(qemuCaps, QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE);
} }
if (ARCH_IS_S390(qemuCaps->arch)) { if (ARCH_IS_S390(qemuCaps->arch)) {

View File

@ -566,7 +566,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
/* 370 */ /* 370 */
QEMU_CAPS_CPU_MIGRATABLE, /* -cpu ...,migratable=on|off */ QEMU_CAPS_CPU_MIGRATABLE, /* -cpu ...,migratable=on|off */
QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE, /* query-cpu-model-expansion supports migratable:false */ X_QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION_MIGRATABLE, /* query-cpu-model-expansion supports migratable:false */
X_QEMU_CAPS_FW_CFG, /* -fw_cfg command line option */ X_QEMU_CAPS_FW_CFG, /* -fw_cfg command line option */
QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH, /* max-bandwidth field in migrate-set-parameters */ QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH, /* max-bandwidth field in migrate-set-parameters */
QEMU_CAPS_MIGRATION_PARAM_DOWNTIME, /* downtime-limit field in migrate-set-parameters */ QEMU_CAPS_MIGRATION_PARAM_DOWNTIME, /* downtime-limit field in migrate-set-parameters */

View File

@ -174,7 +174,6 @@
<flag name='tcg'/> <flag name='tcg'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -179,7 +179,6 @@
<flag name='tcg'/> <flag name='tcg'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -185,7 +185,6 @@
<flag name='tcg'/> <flag name='tcg'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -193,7 +193,6 @@
<flag name='tcg'/> <flag name='tcg'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -199,7 +199,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -198,7 +198,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -198,7 +198,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -198,7 +198,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -198,7 +198,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -198,7 +198,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>

View File

@ -198,7 +198,6 @@
<flag name='virtio-blk-pci.scsi.default.disabled'/> <flag name='virtio-blk-pci.scsi.default.disabled'/>
<flag name='pvscsi'/> <flag name='pvscsi'/>
<flag name='cpu.migratable'/> <flag name='cpu.migratable'/>
<flag name='query-cpu-model-expansion.migratable'/>
<flag name='migration-param.bandwidth'/> <flag name='migration-param.bandwidth'/>
<flag name='migration-param.downtime'/> <flag name='migration-param.downtime'/>
<flag name='migration-param.xbzrle-cache-size'/> <flag name='migration-param.xbzrle-cache-size'/>