xen/pci: don't use PCI BIOS service for configuration space accesses
commitda4725b85c269b43f4716726790aef43776449da
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 4 May 2012 13:29:46 +0000 (4 14:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 16:39:57 +0000 (21 09:39 -0700)
tree0f2c0e0f2f65d1cdf2d519771fcb7e8d69cd1321
parentff1e8115c26a02f2d3d5f61433ea24790c3c009a
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/enlighten.c