Re: [Xen-devel] [PATCH v9 02/13] xen: Add support for VMware cpuid leaves

2015-02-17 Thread Andrew Cooper
On 17/02/15 15:57, Jan Beulich wrote: On 17.02.15 at 11:02, wrote: >> On 16/02/15 23:05, Don Slutz wrote: >>> --- a/xen/include/asm-x86/hvm/hvm.h >>> +++ b/xen/include/asm-x86/hvm/hvm.h >>> @@ -356,6 +356,13 @@ static inline unsigned long >>> hvm_get_shadow_gs_base(struct vcpu *v) >>> #defi

Re: [Xen-devel] [PATCH v9 02/13] xen: Add support for VMware cpuid leaves

2015-02-17 Thread Jan Beulich
>>> On 17.02.15 at 11:02, wrote: > On 16/02/15 23:05, Don Slutz wrote: >> --- a/xen/include/asm-x86/hvm/hvm.h >> +++ b/xen/include/asm-x86/hvm/hvm.h >> @@ -356,6 +356,13 @@ static inline unsigned long >> hvm_get_shadow_gs_base(struct vcpu *v) >> #define has_viridian_time_ref_count(d) \ >> (

Re: [Xen-devel] [PATCH v9 02/13] xen: Add support for VMware cpuid leaves

2015-02-17 Thread Andrew Cooper
On 16/02/15 23:05, Don Slutz wrote: > This is done by adding HVM_PARAM_VMWARE_HW. It is set to the VMware > virtual hardware version. > > Currently 0, 3-4, 6-11 are good values. However the > code only checks for == 0 or != 0 or >= 7. > > If non-zero then > Return VMware's cpuid leaves. If >= 7

[Xen-devel] [PATCH v9 02/13] xen: Add support for VMware cpuid leaves

2015-02-16 Thread Don Slutz
This is done by adding HVM_PARAM_VMWARE_HW. It is set to the VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0 or != 0 or >= 7. If non-zero then Return VMware's cpuid leaves. If >= 7 return data, else return 0. The support of hyp