Re: [Xen-devel] [PATCH v2] x86/cpu: Add supports for zhaoxin x86 platform

2018-04-30 Thread Jan Beulich
>>> On 25.04.18 at 11:51, wrote: > --- a/xen/arch/x86/cpu/intel_cacheinfo.c > +++ b/xen/arch/x86/cpu/intel_cacheinfo.c > @@ -103,7 +103,7 @@ int cpuid4_cache_lookup(int index, struct cpuid4_info > *this_leaf) > return 0; > } > > -static int find_num_cache_leaves(void) > +int find_num_cac

[Xen-devel] [PATCH v2] x86/cpu: Add supports for zhaoxin x86 platform

2018-04-25 Thread Davidwang
From: DavidWang Zhaoxin is a x86 IC designer. Its SOC products support both CPU virtualization and I/O virtualization, which are compatible with Intel VMX and VT-d respectively. Zhaoxin has 'Shanghai' CPU vendor ID. Signed-off-by: DavidWang --- xen/arch/x86/cpu/Makefile | 1 + xen/ar