mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
qemu: capabilities: Retire QEMU_CAPS_MACHINE_SMM_OPT
The feature is present in all supported QEMU versions and there isn't a more elegant way to detect it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
4819a6c06f
commit
78309f01a1
@ -5021,7 +5021,6 @@ void
|
||||
virQEMUCapsInitQMPBasicArch(virQEMUCaps *qemuCaps)
|
||||
{
|
||||
/* Following caps were asserted by a version check for pre 2.11 qemus */
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_SMM_OPT);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_SDL_GL);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_MACHINE_KERNEL_IRQCHIP_SPLIT);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_EGL_HEADLESS);
|
||||
|
@ -369,7 +369,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_DEVICE_INTEL_IOMMU, /* -device intel-iommu */
|
||||
|
||||
/* 230 */
|
||||
QEMU_CAPS_MACHINE_SMM_OPT, /* -machine xxx,smm=on/off/auto */
|
||||
X_QEMU_CAPS_MACHINE_SMM_OPT, /* -machine xxx,smm=on/off/auto */
|
||||
QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, /* virtio-*pci.disable-legacy */
|
||||
QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS, /* qmp command query-hotpluggable-cpus */
|
||||
QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE, /* virtio-net-*.rx_queue_size */
|
||||
|
@ -244,15 +244,6 @@ qemuValidateDomainDefFeatures(const virDomainDef *def,
|
||||
}
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_FEATURE_SMM:
|
||||
if (def->features[i] != VIR_TRISTATE_SWITCH_ABSENT &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_SMM_OPT)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("smm is not available with this QEMU binary"));
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_FEATURE_VMPORT:
|
||||
if (def->features[i] != VIR_TRISTATE_SWITCH_ABSENT &&
|
||||
!virQEMUCapsSupportsVmport(qemuCaps, def)) {
|
||||
@ -325,6 +316,7 @@ qemuValidateDomainDefFeatures(const virDomainDef *def,
|
||||
}
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_FEATURE_SMM:
|
||||
case VIR_DOMAIN_FEATURE_KVM:
|
||||
case VIR_DOMAIN_FEATURE_XEN:
|
||||
case VIR_DOMAIN_FEATURE_ACPI:
|
||||
|
@ -61,7 +61,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -95,7 +95,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -89,7 +89,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -61,7 +61,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -124,7 +124,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -88,7 +88,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -50,7 +50,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<flag name='gluster.debug_level'/>
|
||||
|
@ -50,7 +50,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<flag name='gluster.debug_level'/>
|
||||
|
@ -63,7 +63,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -89,7 +89,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -97,7 +97,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -94,7 +94,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -102,7 +102,6 @@
|
||||
<flag name='spice-unix'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -102,7 +102,6 @@
|
||||
<flag name='spice-unix'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -63,7 +63,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -124,7 +124,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -124,7 +124,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -98,7 +98,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -94,7 +94,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -63,7 +63,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -100,7 +100,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -95,7 +95,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -102,7 +102,6 @@
|
||||
<flag name='spice-unix'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -45,7 +45,6 @@
|
||||
<flag name='spice-unix'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<flag name='gluster.debug_level'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -99,7 +99,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -94,7 +94,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -101,7 +101,6 @@
|
||||
<flag name='spice-unix'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -62,7 +62,6 @@
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -124,7 +124,6 @@
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
<flag name='intel-iommu'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-net.rx_queue_size'/>
|
||||
|
@ -1060,7 +1060,6 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
QEMU_CAPS_ICH9_AHCI,
|
||||
QEMU_CAPS_MACHINE_SMM_OPT,
|
||||
QEMU_CAPS_VIRTIO_SCSI);
|
||||
DO_TEST("machine-vmport-opt",
|
||||
QEMU_CAPS_MACHINE_VMPORT_OPT);
|
||||
@ -1195,7 +1194,6 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
QEMU_CAPS_ICH9_AHCI,
|
||||
QEMU_CAPS_MACHINE_SMM_OPT,
|
||||
QEMU_CAPS_VIRTIO_SCSI);
|
||||
|
||||
/* Make sure all combinations of ACPI and UEFI behave as expected */
|
||||
|
@ -1395,7 +1395,6 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
QEMU_CAPS_ICH9_AHCI,
|
||||
QEMU_CAPS_MACHINE_SMM_OPT,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_MCH_EXTENDED_TSEG_MBYTES);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user