From: Suravee Suthikulpanit Date: Tue, 12 Feb 2013 10:18:54 +0000 (+0100) Subject: x86: Add Xenoprofile support for AMD Family16h X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7302 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=300ef0cb4fde0e4e753f2ad3f2f48c2bbee187df;p=xen.git x86: Add Xenoprofile support for AMD Family16h Add Xenoprofile support for AMD Family16h. The corresponded OProfile patch has already been submitted to OProfile mailing list. (http://marc.info/?l=oprofile-list&m=136036136017302&w=2 ). Signed-off-by: Suravee Suthikulpanit Committed-by: Jan Beulich --- diff --git a/xen/arch/x86/hvm/svm/vpmu.c b/xen/arch/x86/hvm/svm/vpmu.c index 96eee8c27a..bf186fea3d 100644 --- a/xen/arch/x86/hvm/svm/vpmu.c +++ b/xen/arch/x86/hvm/svm/vpmu.c @@ -314,6 +314,7 @@ static int amd_vpmu_initialise(struct vcpu *v) case 0x10: case 0x12: case 0x14: + case 0x16: default: num_counters = F10H_NUM_COUNTERS; counters = AMD_F10H_COUNTERS; @@ -375,6 +376,7 @@ int svm_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags) case 0x12: case 0x14: case 0x15: + case 0x16: ret = amd_vpmu_initialise(v); if ( !ret ) vpmu->arch_vpmu_ops = &amd_vpmu_ops; diff --git a/xen/arch/x86/oprofile/nmi_int.c b/xen/arch/x86/oprofile/nmi_int.c index 0710db2708..c824b84eaf 100644 --- a/xen/arch/x86/oprofile/nmi_int.c +++ b/xen/arch/x86/oprofile/nmi_int.c @@ -415,6 +415,10 @@ static int __init nmi_init(void) model = &op_amd_fam15h_spec; cpu_type = "x86-64/family15h"; break; + case 0x16: + model = &op_athlon_spec; + cpu_type = "x86-64/family16h"; + break; } break;