]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: capablities: detect presence of acpi-root-pci-hotplug for i440fx machines
authorAni Sinha <ani@anisinha.ca>
Fri, 1 Oct 2021 09:29:45 +0000 (14:59 +0530)
committerLaine Stump <laine@redhat.com>
Fri, 1 Oct 2021 18:19:41 +0000 (14:19 -0400)
commitfdec09b00a5e1b6824fbba0df68b56e170a3274b
treee52e84fd2f2c2f0f0a8d3291efeb9d6478790488
parent4ad3c95f4bef5c7c9657de470fb74a4d14c8a331
qemu: capablities: detect presence of acpi-root-pci-hotplug for i440fx machines

The following change in qemu added support for a global boolean flag specific
to i440fx machines that would turn off or on acpi based hotplug for pci root
bus:

3d7e78aa7777f ("Introduce a new flag for i440fx to disable PCI hotplug on the root bus")

The option is passed as "-global PIIX4_PM.acpi-root-pci-hotplug=on" etc in qemu
commandline. It is enabled by default. This patch adds the corresponding qemu
capabilities in libvirt as QEMU_CAPS_PIIX_ACPI_ROOT_PCI_HOTPLUG.

Please note that the test specific qemu capabilities .replies files has already
been updated as a part of regular refreshing them when a new qemu version is
released. Hence, no updates to those files are required.

Signed-off-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Laine Stump <laine@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml
tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml
tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml