[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH] vpmu: Add processors Westmere E7-8837 and SandyBridge i5-2500 to the vpmu list
- To: xen-devel@xxxxxxxxxxxxxxxxxxx
- From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
- Date: Mon, 29 Aug 2011 14:39:15 +0200
- Cc: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
- Delivery-date: Mon, 29 Aug 2011 05:40:04 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=dietmar.hahn@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1314621557; x=1346157557; h=from:to:subject:date:cc:mime-version: content-transfer-encoding:message-id; bh=E8o41rnXOkikDntTxnI3TrFvAeHehWq/peoATW9y6fw=; b=Oe+mpdQpVg0g5zNOhja+KMiqKT0KTNwBBNjgUqtQUwRboESKlsZEgOIg Fm/BRUqYo+X7m70jcH8/oerSe6ng7xN0zSGxMi6pywtmkAP3OHcEhwBmn wSuIiy42BcwHIeBo1a3LhzkeJsd93yZ26b4voOPM18+wxRXuR0K3XyI8O 7YT6l3MAN3PFv/SiZWCLYQsFj2861eLhftq5FQCtL/WAPoSvD9ZBJhnPK FpXK5a1dgHVGgh0Wj3wQpcr+LLuow;
- Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id; b=ipbYpY7iGjMyy3WP8MZv/UcDtAb86YxsU/mjD4/mbfnb7gOdgTiTl+KM jqv33BLeJ3ItPm5qfEylBFS9mvD387vpbWHIIuU5KshCDvw/fcDyi3AVu QAqW7tvWNkTkFF56d4O1+O9L44YeC0ugYA0nhS1bcwZ2MAnINtYFhx9zd JVdkMa+MfVc14cN/vV+1rkXrkphX3DcTMLD+gGM8Zs+glp+nMCNShR+wb bwAx3+1l0Tx7xnr/wh+ePdmwko2iE;
- List-id: Xen developer discussion <xen-devel.lists.xensource.com>
Hi,
the following patch adds the mentioned processors to the list of vpmu able
procs.
Maybe some other processors could get added (i3..., i7...), but I have no
machines to check this - Haitao?
I think this patch would be a candidate for backports to 4.0.3 and 4.1.2.
Should I send a patch too?
Thanks.
Dietmar.
Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Add processors Westmere E7-8837 and SandyBridge i5-2500 to the vpmu list.
diff -r 227130622561 -r 8ae871cf435a xen/arch/x86/hvm/vmx/vpmu_core2.c
--- a/xen/arch/x86/hvm/vmx/vpmu_core2.c Thu Aug 25 12:03:14 2011 +0100
+++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c Mon Aug 29 14:13:44 2011 +0200
@@ -58,7 +58,8 @@
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;
}
}
diff -r 227130622561 -r 8ae871cf435a xen/arch/x86/hvm/vpmu.c
--- a/xen/arch/x86/hvm/vpmu.c Thu Aug 25 12:03:14 2011 +0100
+++ b/xen/arch/x86/hvm/vpmu.c Mon Aug 29 14:13:44 2011 +0200
@@ -119,7 +119,9 @@
case 23:
case 26:
case 29:
+ case 42:
case 46:
+ case 47:
vpmu->arch_vpmu_ops = &core2_vpmu_ops;
break;
}
--
Company details: http://ts.fujitsu.com/imprint.html
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel