Message ID | 20250104111109.2726-1-banmengtao@zju.edu.cn (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | x86/cpu: Support Hygon architecture CPU during NMI initialization. | expand |
diff --git a/xen/arch/x86/oprofile/nmi_int.c b/xen/arch/x86/oprofile/nmi_int.c index fa3071d977..ef7c7b8f69 100644 --- a/xen/arch/x86/oprofile/nmi_int.c +++ b/xen/arch/x86/oprofile/nmi_int.c @@ -398,6 +398,7 @@ static int __init cf_check nmi_init(void) switch (vendor) { case X86_VENDOR_AMD: + case X86_VENDOR_HYGON: /* Needs to be at least an Athlon (or hammer in 32bit mode) */ switch (family) { @@ -435,6 +436,11 @@ static int __init cf_check nmi_init(void) model = &op_athlon_spec; cpu_type = "x86-64/family16h"; break; + case 0x18: + model = &op_athlon_spec; + cpu_type = "x86-64/family18h"; + break; + } break;