aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm/vmx
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-12-06 16:53:30 +0000
committerDongxiao Xu <dongxiao.xu@intel.com>2012-12-06 16:53:30 +0000
commit075635cf5cc061050b0be28139216cb9ee5d2ed4 (patch)
treec986f276391580914312a449f87450fa87351fe3 /xen/include/asm-x86/hvm/vmx
parentc446e4a2cd9b3e9b5e3cda2b860d0cf48e18a2e2 (diff)
downloadxen-075635cf5cc061050b0be28139216cb9ee5d2ed4.tar.gz
xen-075635cf5cc061050b0be28139216cb9ee5d2ed4.tar.bz2
xen-075635cf5cc061050b0be28139216cb9ee5d2ed4.zip
nested vmx: use literal name instead of hard numbers
For those default 1 settings in VMX MSR, use some literal name instead of hard numbers in the code. Besides, fix the default 1 setting for pin based control MSR. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Acked-by: Jan Beulich <jbeulich@suse.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/hvm/vmx')
-rw-r--r--xen/include/asm-x86/hvm/vmx/vvmx.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/vmx/vvmx.h b/xen/include/asm-x86/hvm/vmx/vvmx.h
index 067fbe413e..dce2cd82f0 100644
--- a/xen/include/asm-x86/hvm/vmx/vvmx.h
+++ b/xen/include/asm-x86/hvm/vmx/vvmx.h
@@ -36,6 +36,15 @@ struct nestedvmx {
#define vcpu_2_nvmx(v) (vcpu_nestedhvm(v).u.nvmx)
+/* bit 1, 2, 4 must be 1 */
+#define VMX_PINBASED_CTLS_DEFAULT1 0x16
+/* bit 1, 4-6,8,13-16,26 must be 1 */
+#define VMX_PROCBASED_CTLS_DEFAULT1 0x401e172
+/* bit 0-8, 10,11,13,14,16,17 must be 1 */
+#define VMX_EXIT_CTLS_DEFAULT1 0x36dff
+/* bit 0-8, and 12 must be 1 */
+#define VMX_ENTRY_CTLS_DEFAULT1 0x11ff
+
/*
* Encode of VMX instructions base on Table 24-11 & 24-12 of SDM 3B
*/