x86/vmx: Introduce and use struct vmx_msr_bitmap
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jul 2017 14:44:05 +0000 (14:44 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Jul 2017 10:39:57 +0000 (11:39 +0100)
commit62999081ca27f1a6e3020f0b566fe5b660b19a60
treeee8b775913ca8224140b7a959ba3bd7d3a13790b
parent82942526572c708a81830ef018a373aed9db2730
x86/vmx: Introduce and use struct vmx_msr_bitmap

This avoids opencoding the bitmap bases in accessor functions.  Introduce a
build_assertions() function to check the structure layout against the manual
definiton.  In addition, drop some stale comments and ASSERT() that callers
pass an in-range MSR.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/include/asm-x86/hvm/vmx/vmcs.h