aboutsummaryrefslogtreecommitdiff
path: root/stubs/pci-host-piix.c
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2017-09-06 14:40:32 +0100
committerMichael S. Tsirkin <mst@redhat.com>2017-09-08 16:15:17 +0300
commitab938ae43f8a3a71a3525566edf586081b7a7452 (patch)
tree725129523828bdd3a896288da204c8e612e8f4bc /stubs/pci-host-piix.c
parentf5855994fee2f8815dc86b8453e4a63e290aea05 (diff)
downloadqemu-ab938ae43f8a3a71a3525566edf586081b7a7452.zip
qemu-ab938ae43f8a3a71a3525566edf586081b7a7452.tar.gz
qemu-ab938ae43f8a3a71a3525566edf586081b7a7452.tar.bz2
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>
Diffstat (limited to 'stubs/pci-host-piix.c')
-rw-r--r--stubs/pci-host-piix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stubs/pci-host-piix.c b/stubs/pci-host-piix.c
new file mode 100644
index 0000000..6ed81b1
--- /dev/null
+++ b/stubs/pci-host-piix.c
@@ -0,0 +1,6 @@
+#include "qemu/osdep.h"
+#include "hw/i386/pc.h"
+PCIBus *find_i440fx(void)
+{
+ return NULL;
+}