xen/pci: don't use PCI BIOS service for configuration space accesses
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 4 May 2012 13:29:46 +0000 (14:29 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:15:00 +0000 (13:15 +0100)
commitc73681795660c13d4db341de3efdbda0a03c6873
tree47c03f2c88830e921e560a963acfe773139c2df4
parentacb6f21c725ce5007397a27bd0491d857ac4cdf9
xen/pci: don't use PCI BIOS service for configuration space accesses

commit 76a8df7b49168509df02461f83fab117a4a86e08 upstream.

The accessing PCI configuration space with the PCI BIOS32 service does
not work in PV guests.

On systems without MMCONFIG or where the BIOS hasn't marked the
MMCONFIG region as reserved in the e820 map, the BIOS service is
probed (even though direct access is preferred) and this hangs.

Acked-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
[v1: Fixed compile error when CONFIG_PCI is not set]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/xen/enlighten.c