x86/vmx: Improvements to vmx_{dis,en}able_intercept_for_msr()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jul 2017 14:14:32 +0000 (14:14 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Jul 2017 10:39:57 +0000 (11:39 +0100)
commit68209ad1d2a749b7257cd90b7dea742b9683f98c
treecb06f5f1fd57d996b55d516b51f550b763c24c61
parent5a992b670bff697c40b513c9e037598ba35ca7d4
x86/vmx: Improvements to vmx_{dis,en}able_intercept_for_msr()

 * Shorten the names to vmx_{clear,set}_msr_intercept()
 * Use an enumeration for MSR_TYPE rather than a plain integer
 * Introduce VMX_MSR_RW, as most callers alter both the read and write
   intercept at the same time.

No functional change.

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/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h