Re: [Xen-devel] [PATCH] VMX: ensure MSR index enum and array remain in sync

2016-06-23 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Monday, June 20, 2016 7:32 PM > > ... by using dedicated initializers. Also add an ASSERT() to make sure > unintentional addition of holes to the array gets noticed. Ditch > MSR_INDEX_SIZE as redundant with VMX_MSR_COUNT. > > Signed-off-by: J

Re: [Xen-devel] [PATCH] VMX: ensure MSR index enum and array remain in sync

2016-06-20 Thread Andrew Cooper
On 20/06/16 12:32, Jan Beulich wrote: > ... by using dedicated initializers. Also add an ASSERT() to make sure > unintentional addition of holes to the array gets noticed. Ditch > MSR_INDEX_SIZE as redundant with VMX_MSR_COUNT. > > Signed-off-by: Jan Beulich > > --- a/xen/arch/x86/hvm/vmx/vmx.c >

[Xen-devel] [PATCH] VMX: ensure MSR index enum and array remain in sync

2016-06-20 Thread Jan Beulich
... by using dedicated initializers. Also add an ASSERT() to make sure unintentional addition of holes to the array gets noticed. Ditch MSR_INDEX_SIZE as redundant with VMX_MSR_COUNT. Signed-off-by: Jan Beulich --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -321,20 +321,23