aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2012-05-04 09:29:46 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-05-25 12:24:42 -0400
commit577a605e098b98036060cfb59715ac858c80fa56 (patch)
tree0a35b9bd9143dc7e8d46c5fcf7706f721c927828
parent7bcb7a821a85b21f87fea2a430f44458ca091a03 (diff)
xen/pci: don't use PCI BIOS service for configuration space accesses
BugLink: http://bugs.launchpad.net/bugs/1002880 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> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-rw-r--r--arch/x86/xen/enlighten.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index ce01f6d6350..bca6a39aaf2 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -62,6 +62,7 @@
62#include <asm/reboot.h> 62#include <asm/reboot.h>
63#include <asm/stackprotector.h> 63#include <asm/stackprotector.h>
64#include <asm/hypervisor.h> 64#include <asm/hypervisor.h>
65#include <asm/pci_x86.h>
65 66
66#include "xen-ops.h" 67#include "xen-ops.h"
67#include "mmu.h" 68#include "mmu.h"
@@ -1281,8 +1282,10 @@ asmlinkage void __init xen_start_kernel(void)
1281 /* Make sure ACS will be enabled */ 1282 /* Make sure ACS will be enabled */
1282 pci_request_acs(); 1283 pci_request_acs();
1283 } 1284 }
1284 1285#ifdef CONFIG_PCI
1285 1286 /* PCI BIOS service won't work from a PV guest. */
1287 pci_probe &= ~PCI_PROBE_BIOS;
1288#endif
1286 xen_raw_console_write("about to get started...\n"); 1289 xen_raw_console_write("about to get started...\n");
1287 1290
1288 xen_setup_runstate_info(0); 1291 xen_setup_runstate_info(0);