Re: [Xen-devel] [PATCH 6/6] x86/hvm: Move hvm_hypervisor_cpuid_leaf() handling into cpuid_hypervisor_leaves()

2016-11-16 Thread Andrew Cooper
On 16/11/16 15:53, Jan Beulich wrote: On 16.11.16 at 13:31, wrote: >> @@ -961,13 +962,38 @@ int cpuid_hypervisor_leaves( uint32_t idx, uint32_t >> sub_idx, >> } >> break; >> >> -case 4: >> -if ( !has_hvm_container_domain(currd) ) >> +case 4: /* HVM hypervi

Re: [Xen-devel] [PATCH 6/6] x86/hvm: Move hvm_hypervisor_cpuid_leaf() handling into cpuid_hypervisor_leaves()

2016-11-16 Thread Jan Beulich
>>> On 16.11.16 at 13:31, wrote: > @@ -961,13 +962,38 @@ int cpuid_hypervisor_leaves( uint32_t idx, uint32_t > sub_idx, > } > break; > > -case 4: > -if ( !has_hvm_container_domain(currd) ) > +case 4: /* HVM hypervisor leaf. */ > +if ( !has_hvm_container

[Xen-devel] [PATCH 6/6] x86/hvm: Move hvm_hypervisor_cpuid_leaf() handling into cpuid_hypervisor_leaves()

2016-11-16 Thread Andrew Cooper
This reduces the net complexity of CPUID handling by having all adjustments in at the same place. Remove the now-unused hvm_funcs.hypervisor_cpuid_leaf() infrastructure. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Jun Nakajima CC: Kevin Tian --- xen/arch/x86/hvm/hvm.c| 22 --