mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
x86/Intel: add further support for Ivy Bridge CPU models
And some initial Haswell ones at once. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: "Nakajima, Jun" <jun.nakajima@intel.com>
This commit is contained in:
1 parent
e3e4744617
commit
4efa12d402
3 files changed
+10
-3
No files matched your search
@@ -128,11 +128,15 @@ static void do_get_hw_residencies(void *arg)
|
||||
|
||||
switch ( c->x86_model )
|
||||
{
|
||||
/* Ivy bridge */
|
||||
case 0x3A:
|
||||
/* Sandy bridge */
|
||||
case 0x2A:
|
||||
case 0x2D:
|
||||
/* Ivy bridge */
|
||||
case 0x3A:
|
||||
case 0x3E:
|
||||
/* Haswell */
|
||||
case 0x3c:
|
||||
case 0x45:
|
||||
GET_PC2_RES(hw_res->pc2);
|
||||
GET_CC7_RES(hw_res->cc7);
|
||||
/* fall through */
|
||||
|
||||
@@ -1746,7 +1746,9 @@ static const struct lbr_info *last_branch_msr_get(void)
|
||||
/* Sandy Bridge */
|
||||
case 42: case 45:
|
||||
/* Ivy Bridge */
|
||||
case 58:
|
||||
case 58: case 62:
|
||||
/* Haswell */
|
||||
case 60: case 69:
|
||||
return nh_lbr;
|
||||
break;
|
||||
/* Atom */
|
||||
|
||||
@@ -747,6 +747,7 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
|
||||
case 46:
|
||||
case 47:
|
||||
case 58:
|
||||
case 62:
|
||||
ret = core2_vpmu_initialise(v, vpmu_flags);
|
||||
if ( !ret )
|
||||
vpmu->arch_vpmu_ops = &core2_vpmu_ops;
|
||||
|
||||