]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/acpi: Move acpi_set_pci_info to pcihp
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 6 Sep 2017 13:40:32 +0000 (14:40 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 28 Sep 2017 21:53:11 +0000 (16:53 -0500)
commit8edf4c6adc2a424647fbd6411e0c06713e721626
treebd75519177a64f7ede468413859b52e8f03eab5d
parent2c3a8cc58162328267ecb25d6b610b00d886c887
hw/acpi: Move acpi_set_pci_info to pcihp

HW part of ACPI PCI hotplug in QEMU depends on ACPI_PCIHP_PROP_BSEL
being set on a PCI bus that supports ACPI hotplug. It should work
regardless of the source of ACPI tables (QEMU generator/legacy SeaBIOS/Xen).
So move ACPI_PCIHP_PROP_BSEL initialization into HW ACPI implementation
part from QEMU's ACPI table generator.

To do PCI passthrough with Xen, the property ACPI_PCIHP_PROP_BSEL needs
to be set, but this was done only when ACPI tables are built which is
not needed for a Xen guest. The need for the property starts with commit
"pc: pcihp: avoid adding ACPI_PCIHP_PROP_BSEL twice"
(f0c9d64a68b776374ec4732424a3e27753ce37b6).

Adding find_i440fx into stubs so that mips-softmmu target can be built.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit ab938ae43f8a3a71a3525566edf586081b7a7452)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/acpi/pcihp.c
hw/i386/acpi-build.c
stubs/Makefile.objs
stubs/pci-host-piix.c [new file with mode: 0644]