x86/Intel: add support for Haswell CPU models
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Aug 2013 09:15:15 +0000 (11:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Aug 2013 09:15:15 +0000 (11:15 +0200)
... according to their most recent public documentation.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vpmu_core2.c

index dfc38f37010627238a8b7d63dd649b268d157e1f..870fab832adf2d4fcf55018c8c2c7784c9284ca6 100644 (file)
@@ -135,8 +135,10 @@ static void do_get_hw_residencies(void *arg)
     case 0x3A:
     case 0x3E:
     /* Haswell */
-    case 0x3c:
+    case 0x3C:
+    case 0x3F:
     case 0x45:
+    case 0x46:
         GET_PC2_RES(hw_res->pc2);
         GET_CC7_RES(hw_res->cc7);
         /* fall through */
index 011a8179d90cad0524fd6c1c6b1487af093acfcd..782f8de52462cd6c6c262bb7970395b0fca7b208 100644 (file)
@@ -1815,7 +1815,7 @@ static const struct lbr_info *last_branch_msr_get(void)
         /* Ivy Bridge */
         case 58: case 62:
         /* Haswell */
-        case 60: case 69:
+        case 60: case 63: case 69: case 70:
             return nh_lbr;
             break;
         /* Atom */
index 41a326bc11f48db0dfa9b4d6ad037f61f53a6720..8c556c7768b8dff79d97a2c93c3724ae221e8749 100644 (file)
@@ -909,7 +909,12 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
 
         case 0x3a: /* IvyBridge */
         case 0x3e: /* IvyBridge EP */
-        case 0x3c: /* Haswell */
+
+        /* Haswell: */
+        case 0x3c:
+        case 0x3f:
+        case 0x45:
+        case 0x46:
             ret = core2_vpmu_initialise(v, vpmu_flags);
             if ( !ret )
                 vpmu->arch_vpmu_ops = &core2_vpmu_ops;