]> git.proxmox.com Git - mirror_qemu.git/commit
ACPI: don't call acpi_pcihp_device_plug_cb on xen
authorBruce Rogers <brogers@suse.com>
Thu, 27 Apr 2017 19:59:08 +0000 (13:59 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 31 Jul 2017 21:55:12 +0000 (16:55 -0500)
commitc64d184584a0d0fdfd0c9669cf9d603491663b9c
tree11883863e012974c14086509a9916895673c5a16
parentc1059a3a3cb80bc087ad7e33fced4f8a7a9c0150
ACPI: don't call acpi_pcihp_device_plug_cb on xen

Commit f0c9d64a exposed the issue that with a xenfv machine using
pci passthrough, acpi pci hotplug code was being executed by mistake.
Guard calls to acpi_pcihp_device_plug_cb (and corresponding
acpi_pcihp_device_unplug_cb) with a check for xen_enabled(). Without
this check I am seeing an error that the bus doesn't have the
acpi-pcihp-bsel property set.

Signed-off-by: Bruce Rogers <brogers@suse.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 153eba4726dfa1bdfc31d1fe973b2a61b9035492)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/acpi/piix4.c