Skip to contentSkip to conversation

x86: add Ivy Bridge model numbers to model specific MSR handling

PATCH In review Jan Beulich 3 participants 3 messages Feb 6, 2012 – Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: add Ivy Bridge model numbers to model specific MSR handling

This is model 0x3a (decimal 58) as per the most recent SDM.

In vPMU code, also add a forgotten earlier model.

xen/arch/x86/acpi/cpu_idle.c +2 -0
@@ -106,6 +106,8 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
+    /* Ivy bridge */
+    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
xen/arch/x86/hvm/vmx/vmx.c +2 -0
@@ -1751,6 +1751,8 @@ static const struct lbr_info *last_branc
         case 37: case 44: case 47:
         /* Sandy Bridge */
         case 42: case 45:
+        /* Ivy Bridge */
+        case 58:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -0
@@ -623,8 +623,10 @@ int vmx_vpmu_initialise(struct vcpu *v)
         case 26:
         case 29:
         case 42:
+        case 45:
         case 46:
         case 47:
+        case 58:
             vpmu->arch_vpmu_ops = &core2_vpmu_ops;
             return 0;
         }

x86: add Ivy Bridge model numbers to model specific MSR handling

This is model 0x3a (decimal 58) as per the most recent SDM.

In vPMU code, also add a forgotten earlier model.

xen/arch/x86/acpi/cpu_idle.c +2 -0
@@ -106,6 +106,8 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
+    /* Ivy bridge */
+    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
xen/arch/x86/hvm/vmx/vmx.c +2 -0
@@ -1751,6 +1751,8 @@ static const struct lbr_info *last_branc
         case 37: case 44: case 47:
         /* Sandy Bridge */
         case 42: case 45:
+        /* Ivy Bridge */
+        case 58:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -0
@@ -623,8 +623,10 @@ int vmx_vpmu_initialise(struct vcpu *v)
         case 26:
         case 29:
         case 42:
+        case 45:
         case 46:
         case 47:
+        case 58:
             vpmu->arch_vpmu_ops = &core2_vpmu_ops;
             return 0;
         }

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

#1 lore raw
Quoted 5 lines · Jan Beulich

This is model 0x3a (decimal 58) as per the most recent SDM.

In vPMU code, also add a forgotten earlier model.

Fine by me with an appropriate Ack from Intel.

K.

Quoted 42 lines
xen/arch/x86/acpi/cpu_idle.c +2 -0
@@ -106,6 +106,8 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
+    /* Ivy bridge */
+    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
xen/arch/x86/hvm/vmx/vmx.c +2 -0
@@ -1751,6 +1751,8 @@ static const struct lbr_info *last_branc
         case 37: case 44: case 47:
         /* Sandy Bridge */
         case 42: case 45:
+        /* Ivy Bridge */
+        case 58:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -0
@@ -623,8 +623,10 @@ int vmx_vpmu_initialise(struct vcpu *v)
         case 26:
         case 29:
         case 42:
+        case 45:
         case 46:
         case 47:
+        case 58:
             vpmu->arch_vpmu_ops = &core2_vpmu_ops;
             return 0;
         }

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

#2 lore raw

Also Fine to Intel, Thanks!

Xiantao

Quoted 70 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Keir Fraser
Sent: Monday, February 06, 2012 4:36 PM
To: Jan Beulich; [email protected]
Cc: Dugger, Donald D; Nakajima, Jun
Subject: Re: [Xen-devel] [PATCH] x86: add Ivy Bridge model numbers to model specific MSR handling

Quoted 5 lines · Jan Beulich

This is model 0x3a (decimal 58) as per the most recent SDM.

In vPMU code, also add a forgotten earlier model.

Fine by me with an appropriate Ack from Intel.

K.

Quoted 38 lines
xen/arch/x86/acpi/cpu_idle.c +2 -0
@@ -106,6 +106,8 @@ static void do_get_hw_residencies(void *
 
     switch ( c->x86_model )
     {
+    /* Ivy bridge */
+    case 0x3A:
     /* Sandy bridge */
     case 0x2A:
     case 0x2D:
xen/arch/x86/hvm/vmx/vmx.c +2 -0
@@ -1751,6 +1751,8 @@ static const struct lbr_info *last_branc
         case 37: case 44: case 47:
         /* Sandy Bridge */
         case 42: case 45:
+        /* Ivy Bridge */
+        case 58:
             return nh_lbr;
             break;
         /* Atom */
xen/arch/x86/hvm/vmx/vpmu_core2.c +2 -0
@@ -623,8 +623,10 @@ int vmx_vpmu_initialise(struct vcpu *v)
         case 26:
         case 29:
         case 42:
+        case 45:
         case 46:
         case 47:
+        case 58:
             vpmu->arch_vpmu_ops = &core2_vpmu_ops;
             return 0;
         }
Quoted 4 lines

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

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