Skip to contentSkip to conversation

x86/Intel: add support for Haswell CPU models

PATCH In review Jan Beulich 2 participants 2 messages Aug 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/Intel: add support for Haswell CPU models

... according to their most recent public documentation.

xen/arch/x86/acpi/cpu_idle.c +3 -1
@@ -135,8 +135,10 @@ static void do_get_hw_residencies(void *
     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 */
xen/arch/x86/hvm/vmx/vmx.c +1 -1
@@ -1813,7 +1813,7 @@ static const struct lbr_info *last_branc
         /* Ivy Bridge */
         case 58: case 62:
         /* Haswell */
-        case 60: case 69:
+        case 60: case 63: case 69: case 70:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +6 -1
@@ -909,7 +909,12 @@ int vmx_vpmu_initialise(struct vcpu *v, 
 
         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;

x86/Intel: add support for Haswell CPU models

... according to their most recent public documentation.

xen/arch/x86/acpi/cpu_idle.c +3 -1
@@ -135,8 +135,10 @@ static void do_get_hw_residencies(void *
     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 */
xen/arch/x86/hvm/vmx/vmx.c +1 -1
@@ -1813,7 +1813,7 @@ static const struct lbr_info *last_branc
         /* Ivy Bridge */
         case 58: case 62:
         /* Haswell */
-        case 60: case 69:
+        case 60: case 63: case 69: case 70:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +6 -1
@@ -909,7 +909,12 @@ int vmx_vpmu_initialise(struct vcpu *v, 
 
         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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel