mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Revert "qemu: capabilities: Remove QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE"
This reverts commit618e8665db
. This is the first in a series of 10 commits that revert (in reverse order) the changes to add the <acpi-hotplug-bridge state='on|off'/> switch to libvirt domain XML, which unfortunately needs to be removed due to QEMU developers discovering a flaw with the design of the QEMU commandline switch used to implement the libvirt switch that will likely result in a new and different method of selecting hotplug modes. Because the libvirt switch has not been in any official releases of libvirt, we are still able to remove it completely, rather than deprecating it. The original commits began with commit58ba0f6a3d
. The other original commit IDs are documented in each revert commit. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Ani Sinha <ani@anisinha.ca>
This commit is contained in:
parent
460eda9b05
commit
d65eb5dd8d
@ -644,10 +644,11 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"virtio-mem-pci", /* QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI */
|
||||
"memory-backend-file.reserve", /* QEMU_CAPS_MEMORY_BACKEND_RESERVE */
|
||||
"piix4.acpi-root-pci-hotplug", /* QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG */
|
||||
"piix4.acpi-hotplug-bridge", /* QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE */
|
||||
"ich9.acpi-hotplug-bridge", /* QEMU_CAPS_ICH9_ACPI_HOTPLUG_BRIDGE */
|
||||
"netdev.json", /* QEMU_CAPS_NETDEV_JSON */
|
||||
|
||||
/* 415 */
|
||||
"netdev.json", /* QEMU_CAPS_NETDEV_JSON */
|
||||
"chardev.json", /* QEMU_CAPS_CHARDEV_JSON */
|
||||
"device.json", /* QEMU_CAPS_DEVICE_JSON */
|
||||
"query-dirty-rate", /* QEMU_CAPS_QUERY_DIRTY_RATE */
|
||||
@ -1470,6 +1471,7 @@ 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_PIIX4_ACPI_ROOT_PCI_HOTPLUG, NULL },
|
||||
{ "acpi-pci-hotplug-with-bridge-support", QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE, NULL },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsUSBRedir[] = {
|
||||
|
@ -624,10 +624,11 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI, /* -device virtio-mem-pci */
|
||||
QEMU_CAPS_MEMORY_BACKEND_RESERVE, /* -object memory-backend-*.reserve= */
|
||||
QEMU_CAPS_PIIX4_ACPI_ROOT_PCI_HOTPLUG, /* -M pc PIIX4_PM.acpi-root-pci-hotplug */
|
||||
QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE, /* -M pc PIIX4_PM.acpi-pci-hotplug-with-bridge-support */
|
||||
QEMU_CAPS_ICH9_ACPI_HOTPLUG_BRIDGE, /* -M q35 ICH9-LPC.acpi-pci-hotplug-with-bridge-support */
|
||||
QEMU_CAPS_NETDEV_JSON, /* -netdev accepts JSON */
|
||||
|
||||
/* 415 */
|
||||
QEMU_CAPS_NETDEV_JSON, /* -netdev accepts JSON */
|
||||
QEMU_CAPS_CHARDEV_JSON, /* -chardev accepts JSON */
|
||||
QEMU_CAPS_DEVICE_JSON, /* -device accepts JSON */
|
||||
QEMU_CAPS_QUERY_DIRTY_RATE, /* accepts query-dirty-rate */
|
||||
|
@ -6461,7 +6461,8 @@ qemuBuildPMCommandLine(virCommand *cmd,
|
||||
if (acpihp_br != VIR_TRISTATE_SWITCH_ABSENT) {
|
||||
const char *pm_object = NULL;
|
||||
|
||||
if (!qemuDomainIsQ35(def))
|
||||
if (!qemuDomainIsQ35(def) &&
|
||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE))
|
||||
pm_object = "PIIX4_PM";
|
||||
|
||||
if (qemuDomainIsQ35(def) &&
|
||||
|
@ -196,8 +196,8 @@ qemuValidateDomainDefPCIFeature(const virDomainDef *def,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (qemuDomainIsQ35(def) &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_ICH9_ACPI_HOTPLUG_BRIDGE)) {
|
||||
if ((qemuDomainIsQ35(def) && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_ICH9_ACPI_HOTPLUG_BRIDGE)) ||
|
||||
(!qemuDomainIsQ35(def) && !virQEMUCapsGet(qemuCaps, QEMU_CAPS_PIIX4_ACPI_HOTPLUG_BRIDGE))) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("acpi-bridge-hotplug is not available with this QEMU binary"));
|
||||
return -1;
|
||||
|
@ -167,6 +167,7 @@
|
||||
<flag name='am53c974'/>
|
||||
<flag name='cpu-max'/>
|
||||
<flag name='input-linux'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>2011000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100288</microcodeVersion>
|
||||
|
@ -179,6 +179,7 @@
|
||||
<flag name='cpu-max'/>
|
||||
<flag name='input-linux'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>2011090</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100289</microcodeVersion>
|
||||
|
@ -185,6 +185,7 @@
|
||||
<flag name='cpu-max'/>
|
||||
<flag name='input-linux'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>3000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100239</microcodeVersion>
|
||||
|
@ -189,6 +189,7 @@
|
||||
<flag name='input-linux'/>
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>3000092</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100240</microcodeVersion>
|
||||
|
@ -197,6 +197,7 @@
|
||||
<flag name='input-linux'/>
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>4000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100240</microcodeVersion>
|
||||
|
@ -204,6 +204,7 @@
|
||||
<flag name='input-linux'/>
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>4001000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100241</microcodeVersion>
|
||||
|
@ -215,6 +215,7 @@
|
||||
<flag name='input-linux'/>
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>4002000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100242</microcodeVersion>
|
||||
|
@ -222,6 +222,7 @@
|
||||
<flag name='input-linux'/>
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>5000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100241</microcodeVersion>
|
||||
|
@ -225,6 +225,7 @@
|
||||
<flag name='query-display-options'/>
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<version>5001000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100242</microcodeVersion>
|
||||
|
@ -227,6 +227,7 @@
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<flag name='query-dirty-rate'/>
|
||||
<version>5002000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
|
@ -235,6 +235,7 @@
|
||||
<flag name='virtio-blk.queue-size'/>
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<flag name='query-dirty-rate'/>
|
||||
<version>6000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
|
@ -238,6 +238,7 @@
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='memory-backend-file.reserve'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<flag name='ich9.acpi-hotplug-bridge'/>
|
||||
<flag name='query-dirty-rate'/>
|
||||
<flag name='rbd-encryption'/>
|
||||
|
@ -238,6 +238,7 @@
|
||||
<flag name='virtio-mem-pci'/>
|
||||
<flag name='memory-backend-file.reserve'/>
|
||||
<flag name='piix4.acpi-root-pci-hotplug'/>
|
||||
<flag name='piix4.acpi-hotplug-bridge'/>
|
||||
<flag name='ich9.acpi-hotplug-bridge'/>
|
||||
<flag name='device.json'/>
|
||||
<flag name='query-dirty-rate'/>
|
||||
|
Loading…
Reference in New Issue
Block a user