mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu: capabilities: remove -en from piix4-acpi-root-hotplug-en
The capability name piix4-acpi-root-hotplug-en is not conventional and appreared to be confusing to some. "en" suffix is also incorrect as the capability in qemu is used to both enable and disable hotplug on the pci root bus on the i440fx. Hence, rename it to piix4.acpi-root-pci-hotplug so that it is clearer, less confusing and more accurate. Signed-off-by: Ani Sinha <ani@anisinha.ca> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
13fc1432c6
commit
400979fd06
@ -643,7 +643,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
/* 410 */
|
||||
"virtio-mem-pci", /* QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI */
|
||||
"memory-backend-file.reserve", /* QEMU_CAPS_MEMORY_BACKEND_RESERVE */
|
||||
"piix4-acpi-root-hotplug-en", /* QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG */
|
||||
"piix4.acpi-root-pci-hotplug", /* QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG */
|
||||
);
|
||||
|
||||
|
||||
@ -1471,7 +1471,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsIDEDrive[] = {
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsPiix4PM[] = {
|
||||
{ "disable_s3", QEMU_CAPS_PIIX_DISABLE_S3, NULL },
|
||||
{ "disable_s4", QEMU_CAPS_PIIX_DISABLE_S4, NULL },
|
||||
{ "acpi-root-pci-hotplug", QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG, NULL },
|
||||
{ "acpi-root-pci-hotplug", QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG, NULL },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsUSBRedir[] = {
|
||||
|
@ -623,7 +623,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
/* 410 */
|
||||
QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI, /* -device virtio-mem-pci */
|
||||
QEMU_CAPS_MEMORY_BACKEND_RESERVE, /* -object memory-backend-*.reserve= */
|
||||
QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG, /* -M pc PIIX4_PM.acpi-root-pci-hotplug */
|
||||
QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG, /* -M pc PIIX4_PM.acpi-root-pci-hotplug */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
@ -3873,7 +3873,7 @@ qemuValidateDomainDeviceDefControllerPCI(const virDomainControllerDef *cont,
|
||||
if (pciopts->hotplug != VIR_TRISTATE_SWITCH_ABSENT) {
|
||||
switch ((virDomainControllerModelPCI) cont->model) {
|
||||
case VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT:
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG)) {
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("setting the %s property on a '%s' device is not supported by this QEMU binary"),
|
||||
"hotplug", "pci-root");
|
||||
|
@ -231,7 +231,7 @@
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='piix4-acpi-root-hotplug-en'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<version>5002000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100243</microcodeVersion>
|
||||
|
@ -239,7 +239,7 @@
|
||||
<flag name='set-action'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='piix4-acpi-root-hotplug-en'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<version>6000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100242</microcodeVersion>
|
||||
|
@ -242,7 +242,7 @@
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='memory-backend-file.reserve'/>
|
||||
<flag name='piix4-acpi-root-hotplug-en'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<version>6001000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100243</microcodeVersion>
|
||||
|
@ -2572,7 +2572,7 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE, QEMU_CAPS_ICH9_AHCI,
|
||||
QEMU_CAPS_PIIX_DISABLE_S3, QEMU_CAPS_PIIX_DISABLE_S4);
|
||||
DO_TEST("pc-i440fx-acpi-root-hotplug-disable",
|
||||
QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG);
|
||||
QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG);
|
||||
DO_TEST_PARSE_ERROR_NOCAPS("pc-i440fx-acpi-root-hotplug-disable");
|
||||
DO_TEST("q35-usb2",
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
|
@ -425,9 +425,9 @@ mymain(void)
|
||||
DO_TEST_NOCAPS("misc-acpi");
|
||||
DO_TEST("misc-disable-s3", QEMU_CAPS_PIIX_DISABLE_S3);
|
||||
DO_TEST("pc-i440fx-acpi-root-hotplug-disable",
|
||||
QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG);
|
||||
QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG);
|
||||
DO_TEST("pc-i440fx-acpi-root-hotplug-enable",
|
||||
QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG);
|
||||
QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG);
|
||||
DO_TEST("misc-disable-suspends",
|
||||
QEMU_CAPS_PIIX_DISABLE_S3,
|
||||
QEMU_CAPS_PIIX_DISABLE_S4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user