Skip to content
Commit c64d1845 authored by Bruce Rogers's avatar Bruce Rogers Committed by Michael Roth
Browse files

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: default avatarBruce Rogers <brogers@suse.com>
Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 153eba47)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent c1059a3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment