From: "Jan Beulich" Subject: [PATCH] x86/Intel: add support for Haswell CPU models Date: Thu, 22 Aug 2013 12:32:27 +0100 Message-ID: <521612EB02000078000EDA3A@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part023148DB.1__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VCT7w-0001BE-JZ for xen-devel@lists.xenproject.org; Thu, 22 Aug 2013 11:32:32 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Keir Fraser , Eddie Dong , Jun Nakajima List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part023148DB.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ... according to their most recent public documentation. Signed-off-by: Jan Beulich --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -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 */ --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -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 */ --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c @@ -909,7 +909,12 @@ int vmx_vpmu_initialise(struct vcpu *v,=20 =20 case 0x3a: /* IvyBridge */ case 0x3e: /* IvyBridge EP */ - case 0x3c: /* Haswell */ + + /* Haswell: */ + case 0x3c: + case 0x3f: + case 0x45: + case 0x46: ret =3D core2_vpmu_initialise(v, vpmu_flags); if ( !ret ) vpmu->arch_vpmu_ops =3D &core2_vpmu_ops; --=__Part023148DB.1__= Content-Type: text/plain; name="x86-Intel-models.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-Intel-models.patch" x86/Intel: add support for Haswell CPU models=0A=0A... according to their = most recent public documentation.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/acpi/cpu_idle.c=0A+++ = b/xen/arch/x86/acpi/cpu_idle.c=0A@@ -135,8 +135,10 @@ static void = do_get_hw_residencies(void *=0A case 0x3A:=0A case 0x3E:=0A /* = Haswell */=0A- case 0x3c:=0A+ case 0x3C:=0A+ case 0x3F:=0A = case 0x45:=0A+ case 0x46:=0A GET_PC2_RES(hw_res->pc2);=0A = GET_CC7_RES(hw_res->cc7);=0A /* fall through */=0A--- a/xen/arch/= x86/hvm/vmx/vmx.c=0A+++ b/xen/arch/x86/hvm/vmx/vmx.c=0A@@ -1813,7 +1813,7 = @@ static const struct lbr_info *last_branc=0A /* Ivy Bridge */=0A = case 58: case 62:=0A /* Haswell */=0A- case 60: = case 69:=0A+ case 60: case 63: case 69: case 70:=0A = return nh_lbr;=0A break;=0A /* Atom */=0A--- a/xen/arch= /x86/hvm/vmx/vpmu_core2.c=0A+++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c=0A@@ = -909,7 +909,12 @@ int vmx_vpmu_initialise(struct vcpu *v, =0A =0A = case 0x3a: /* IvyBridge */=0A case 0x3e: /* IvyBridge EP */=0A- = case 0x3c: /* Haswell */=0A+=0A+ /* Haswell: */=0A+ case = 0x3c:=0A+ case 0x3f:=0A+ case 0x45:=0A+ case 0x46:=0A = ret =3D core2_vpmu_initialise(v, vpmu_flags);=0A = if ( !ret )=0A vpmu->arch_vpmu_ops =3D &core2_vpmu_ops;=0A --=__Part023148DB.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part023148DB.1__=--