diff options
author | Abel Gordon <abelg@il.ibm.com> | 2013-04-18 07:34:55 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-04-22 03:51:09 -0400 |
commit | 89662e566c73230dab9f1d99dbe2f6d9c8c189a8 (patch) | |
tree | f3a9fac467792d9ce01e74d32b0744afc0da3ef1 | |
parent | d10ab869ae5f76231a729fbf575370bf76e4bcb8 (diff) |
KVM: nVMX: Shadow-vmcs control fields/bits
Add definitions for all the vmcs control fields/bits
required to enable vmcs-shadowing
Signed-off-by: Abel Gordon <abelg@il.ibm.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
-rw-r--r-- | arch/x86/include/asm/vmx.h | 3 | ||||
-rw-r--r-- | arch/x86/include/uapi/asm/msr-index.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h index 6f07f1999138..f3e01a2cbaa1 100644 --- a/arch/x86/include/asm/vmx.h +++ b/arch/x86/include/asm/vmx.h | |||
@@ -65,6 +65,7 @@ | |||
65 | #define SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY 0x00000200 | 65 | #define SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY 0x00000200 |
66 | #define SECONDARY_EXEC_PAUSE_LOOP_EXITING 0x00000400 | 66 | #define SECONDARY_EXEC_PAUSE_LOOP_EXITING 0x00000400 |
67 | #define SECONDARY_EXEC_ENABLE_INVPCID 0x00001000 | 67 | #define SECONDARY_EXEC_ENABLE_INVPCID 0x00001000 |
68 | #define SECONDARY_EXEC_SHADOW_VMCS 0x00004000 | ||
68 | 69 | ||
69 | 70 | ||
70 | #define PIN_BASED_EXT_INTR_MASK 0x00000001 | 71 | #define PIN_BASED_EXT_INTR_MASK 0x00000001 |
@@ -150,6 +151,8 @@ enum vmcs_field { | |||
150 | EOI_EXIT_BITMAP2_HIGH = 0x00002021, | 151 | EOI_EXIT_BITMAP2_HIGH = 0x00002021, |
151 | EOI_EXIT_BITMAP3 = 0x00002022, | 152 | EOI_EXIT_BITMAP3 = 0x00002022, |
152 | EOI_EXIT_BITMAP3_HIGH = 0x00002023, | 153 | EOI_EXIT_BITMAP3_HIGH = 0x00002023, |
154 | VMREAD_BITMAP = 0x00002026, | ||
155 | VMWRITE_BITMAP = 0x00002028, | ||
153 | GUEST_PHYSICAL_ADDRESS = 0x00002400, | 156 | GUEST_PHYSICAL_ADDRESS = 0x00002400, |
154 | GUEST_PHYSICAL_ADDRESS_HIGH = 0x00002401, | 157 | GUEST_PHYSICAL_ADDRESS_HIGH = 0x00002401, |
155 | VMCS_LINK_POINTER = 0x00002800, | 158 | VMCS_LINK_POINTER = 0x00002800, |
diff --git a/arch/x86/include/uapi/asm/msr-index.h b/arch/x86/include/uapi/asm/msr-index.h index 892ce40a7470..dc469e3e708c 100644 --- a/arch/x86/include/uapi/asm/msr-index.h +++ b/arch/x86/include/uapi/asm/msr-index.h | |||
@@ -522,6 +522,8 @@ | |||
522 | #define VMX_BASIC_MEM_TYPE_WB 6LLU | 522 | #define VMX_BASIC_MEM_TYPE_WB 6LLU |
523 | #define VMX_BASIC_INOUT 0x0040000000000000LLU | 523 | #define VMX_BASIC_INOUT 0x0040000000000000LLU |
524 | 524 | ||
525 | /* MSR_IA32_VMX_MISC bits */ | ||
526 | #define MSR_IA32_VMX_MISC_VMWRITE_SHADOW_RO_FIELDS (1ULL << 29) | ||
525 | /* AMD-V MSRs */ | 527 | /* AMD-V MSRs */ |
526 | 528 | ||
527 | #define MSR_VM_CR 0xc0010114 | 529 | #define MSR_VM_CR 0xc0010114 |