[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenoprofile: Disable IBS on x86_32



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1281105769 -3600
# Node ID 63c8222ea2c9840942f29ba35bde9c578679091b
# Parent  a904221a56c2787b79c303812135fa7fc9e146d5
xenoprofile: Disable IBS on x86_32

Extended PCI configuration space is not accessible on 32 bit
systems. This patch disables IBS feature on 32 bit to avoid
IBSCTL(0x1cc) accesses.

Signed-off-by: Wei Wang <wei.wang2@xxxxxxx>
---
 xen/arch/x86/oprofile/op_model_athlon.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r a904221a56c2 -r 63c8222ea2c9 xen/arch/x86/oprofile/op_model_athlon.c
--- a/xen/arch/x86/oprofile/op_model_athlon.c   Fri Aug 06 15:41:59 2010 +0100
+++ b/xen/arch/x86/oprofile/op_model_athlon.c   Fri Aug 06 15:42:49 2010 +0100
@@ -475,6 +475,9 @@ static int init_ibs_nmi(void)
 
 static u32 get_ibs_caps(void)
 {
+#ifdef CONFIG_X86_32
+       return 0;
+#else
        unsigned int max_level;
 
        if (!boot_cpu_has(X86_FEATURE_IBS))
@@ -491,6 +494,7 @@ static u32 get_ibs_caps(void)
                return IBS_CAPS_AVAIL;
 
        return ibs_caps;
+#endif
 }
 
 u32 ibs_init(void)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.