diff options
author | Eddie Dong <eddie.dong@intel.com> | 2007-11-11 05:27:20 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:01 -0500 |
commit | 8a70cc3d0f4877f862ac9cace2e61e4e5116b502 (patch) | |
tree | 3228bd31ca675c9673cc0a68a5529242cd933d24 | |
parent | 9c8cba3761d4741cfd53ecc40604fac01f52128a (diff) |
KVM: VMX: Comment VMX primary/secondary exec ctl definitions
Add comments for secondary/primary Processor-Based VM-execution controls.
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | drivers/kvm/vmx.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/kvm/vmx.h b/drivers/kvm/vmx.h index d757b36c2fbe..6d32bc69285e 100644 --- a/drivers/kvm/vmx.h +++ b/drivers/kvm/vmx.h | |||
@@ -25,6 +25,9 @@ | |||
25 | * | 25 | * |
26 | */ | 26 | */ |
27 | 27 | ||
28 | /* | ||
29 | * Definitions of Primary Processor-Based VM-Execution Controls. | ||
30 | */ | ||
28 | #define CPU_BASED_VIRTUAL_INTR_PENDING 0x00000004 | 31 | #define CPU_BASED_VIRTUAL_INTR_PENDING 0x00000004 |
29 | #define CPU_BASED_USE_TSC_OFFSETING 0x00000008 | 32 | #define CPU_BASED_USE_TSC_OFFSETING 0x00000008 |
30 | #define CPU_BASED_HLT_EXITING 0x00000080 | 33 | #define CPU_BASED_HLT_EXITING 0x00000080 |
@@ -42,6 +45,11 @@ | |||
42 | #define CPU_BASED_MONITOR_EXITING 0x20000000 | 45 | #define CPU_BASED_MONITOR_EXITING 0x20000000 |
43 | #define CPU_BASED_PAUSE_EXITING 0x40000000 | 46 | #define CPU_BASED_PAUSE_EXITING 0x40000000 |
44 | #define CPU_BASED_ACTIVATE_SECONDARY_CONTROLS 0x80000000 | 47 | #define CPU_BASED_ACTIVATE_SECONDARY_CONTROLS 0x80000000 |
48 | /* | ||
49 | * Definitions of Secondary Processor-Based VM-Execution Controls. | ||
50 | */ | ||
51 | #define SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES 0x00000001 | ||
52 | |||
45 | 53 | ||
46 | #define PIN_BASED_EXT_INTR_MASK 0x00000001 | 54 | #define PIN_BASED_EXT_INTR_MASK 0x00000001 |
47 | #define PIN_BASED_NMI_EXITING 0x00000008 | 55 | #define PIN_BASED_NMI_EXITING 0x00000008 |
@@ -54,8 +62,6 @@ | |||
54 | #define VM_ENTRY_SMM 0x00000400 | 62 | #define VM_ENTRY_SMM 0x00000400 |
55 | #define VM_ENTRY_DEACT_DUAL_MONITOR 0x00000800 | 63 | #define VM_ENTRY_DEACT_DUAL_MONITOR 0x00000800 |
56 | 64 | ||
57 | #define SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES 0x00000001 | ||
58 | |||
59 | /* VMCS Encodings */ | 65 | /* VMCS Encodings */ |
60 | enum vmcs_field { | 66 | enum vmcs_field { |
61 | GUEST_ES_SELECTOR = 0x00000800, | 67 | GUEST_ES_SELECTOR = 0x00000800, |