diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-09-06 14:02:09 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-09-06 14:02:09 +0200 |
commit | 3e84eb6381260bb50080fa2ad2d7770eb863aff1 (patch) | |
tree | 14b571a28ca4d6429afca9afdc884045cd2c0ac7 | |
parent | 30f53a4cc56d45a86ef025a0fd8e90e4c5cefe1c (diff) | |
download | xen-3e84eb6381260bb50080fa2ad2d7770eb863aff1.tar.gz xen-3e84eb6381260bb50080fa2ad2d7770eb863aff1.tar.bz2 xen-3e84eb6381260bb50080fa2ad2d7770eb863aff1.zip |
x86/Intel: add support for Haswell CPU models
... according to their most recent public documentation.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
master commit: 3e787021fb2420851c7bdc3911ea53c728ba5ac0
master date: 2013-08-27 11:15:15 +0200
-rw-r--r-- | xen/arch/x86/acpi/cpu_idle.c | 4 | ||||
-rw-r--r-- | xen/arch/x86/hvm/vmx/vmx.c | 2 | ||||
-rw-r--r-- | xen/arch/x86/hvm/vmx/vpmu_core2.c | 7 |
3 files changed, 10 insertions, 3 deletions
diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c index dfc38f3701..870fab832a 100644 --- 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 *arg) 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 */ diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index fa9e79ecb5..a99f65b6f8 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -1801,7 +1801,7 @@ static const struct lbr_info *last_branch_msr_get(void) /* Ivy Bridge */ case 58: case 62: /* Haswell */ - case 60: case 69: + case 60: case 63: case 69: case 70: return nh_lbr; break; /* Atom */ diff --git a/xen/arch/x86/hvm/vmx/vpmu_core2.c b/xen/arch/x86/hvm/vmx/vpmu_core2.c index 15b2036c8d..3a0d2ee774 100644 --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c @@ -878,7 +878,12 @@ int vmx_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) 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; |