vpmu: Add processors Westmere E7-8837 and SandyBridge i5-2500 to the vpmu list
authorDietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Wed, 31 Aug 2011 14:17:45 +0000 (15:17 +0100)
committerDietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Wed, 31 Aug 2011 14:17:45 +0000 (15:17 +0100)
Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/arch/x86/hvm/vpmu.c

index 369330ea4564ada763ace09950ad73c6a84d0688..bfff882b1aac82c3d97db4e18ce884284d0b4440 100644 (file)
@@ -58,7 +58,8 @@ static void check_pmc_quirk(void)
     is_pmc_quirk = 0;
     if ( family == 6 )
     {
-        if ( cpu_model == 46 || cpu_model == 26 )
+        if ( cpu_model == 47 || cpu_model == 46 || cpu_model == 42 ||
+             cpu_model == 26 )
             is_pmc_quirk = 1;
     }
 }
index 59076fd1adaa2a89c400f8a8285dfdec93de1753..d761fb2c91f5582acbdefaeb4a72f36a3cc7dc41 100644 (file)
@@ -119,7 +119,9 @@ void vpmu_initialise(struct vcpu *v)
             case 23:
             case 26:
             case 29:
+            case 42:
             case 46:
+            case 47:
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;
                 break;
             }