On 30/03/2019 10:42, Pu Wen wrote: > +static const struct cpu_dev hygon_cpu_dev = { > + .c_vendor = "Hygon", > + .c_ident = { "HygonGenuine" }, > + .c_early_init = early_init_amd, > + .c_init = init_hygon, > +}; > + > +int __init hygon_init_cpu(void) > +{ > + cpu_devs[X86_VENDOR_HYGON] = &hygon_cpu_dev; > + return 0; > +} > diff --git a/xen/include/asm-x86/x86-vendors.h > b/xen/include/asm-x86/x86-vendors.h > index 38a81c3..fa1cbb4 100644 > --- a/xen/include/asm-x86/x86-vendors.h > +++ b/xen/include/asm-x86/x86-vendors.h > @@ -9,6 +9,7 @@ > #define X86_VENDOR_AMD 2 > #define X86_VENDOR_CENTAUR 3 > #define X86_VENDOR_SHANGHAI 4 > -#define X86_VENDOR_NUM 5 > +#define X86_VENDOR_HYGON 5 > +#define X86_VENDOR_NUM 6
This change will need rebasing over http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=e72309ffbe7c4e507649c74749f130cda691131c , which has dropped the .c_ident field for a more efficient lookup mechanism. Hopefully the adjustments are all obvious. If not, I can draft a patch. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel