File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 60
60
*/
61
61
#define SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES 0x00000001
62
62
#define SECONDARY_EXEC_ENABLE_EPT 0x00000002
63
+ #define SECONDARY_EXEC_DESC 0x00000004
63
64
#define SECONDARY_EXEC_RDTSCP 0x00000008
64
65
#define SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE 0x00000010
65
66
#define SECONDARY_EXEC_ENABLE_VPID 0x00000020
Original file line number Diff line number Diff line change 65
65
#define EXIT_REASON_TPR_BELOW_THRESHOLD 43
66
66
#define EXIT_REASON_APIC_ACCESS 44
67
67
#define EXIT_REASON_EOI_INDUCED 45
68
+ #define EXIT_REASON_GDTR_IDTR 46
69
+ #define EXIT_REASON_LDTR_TR 47
68
70
#define EXIT_REASON_EPT_VIOLATION 48
69
71
#define EXIT_REASON_EPT_MISCONFIG 49
70
72
#define EXIT_REASON_INVEPT 50
113
115
{ EXIT_REASON_MCE_DURING_VMENTRY, "MCE_DURING_VMENTRY" }, \
114
116
{ EXIT_REASON_TPR_BELOW_THRESHOLD, "TPR_BELOW_THRESHOLD" }, \
115
117
{ EXIT_REASON_APIC_ACCESS, "APIC_ACCESS" }, \
118
+ { EXIT_REASON_GDTR_IDTR, "GDTR_IDTR" }, \
119
+ { EXIT_REASON_LDTR_TR, "LDTR_TR" }, \
116
120
{ EXIT_REASON_EPT_VIOLATION, "EPT_VIOLATION" }, \
117
121
{ EXIT_REASON_EPT_MISCONFIG, "EPT_MISCONFIG" }, \
118
122
{ EXIT_REASON_INVEPT, "INVEPT" }, \
Original file line number Diff line number Diff line change @@ -2796,6 +2796,7 @@ static void nested_vmx_setup_ctls_msrs(struct vcpu_vmx *vmx)
2796
2796
vmx -> nested .nested_vmx_secondary_ctls_high &=
2797
2797
SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
2798
2798
SECONDARY_EXEC_RDTSCP |
2799
+ SECONDARY_EXEC_DESC |
2799
2800
SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
2800
2801
SECONDARY_EXEC_ENABLE_VPID |
2801
2802
SECONDARY_EXEC_APIC_REGISTER_VIRT |
@@ -7961,6 +7962,8 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu)
7961
7962
return nested_cpu_has (vmcs12 , CPU_BASED_MOV_DR_EXITING );
7962
7963
case EXIT_REASON_IO_INSTRUCTION :
7963
7964
return nested_vmx_exit_handled_io (vcpu , vmcs12 );
7965
+ case EXIT_REASON_GDTR_IDTR : case EXIT_REASON_LDTR_TR :
7966
+ return nested_cpu_has2 (vmcs12 , SECONDARY_EXEC_DESC );
7964
7967
case EXIT_REASON_MSR_READ :
7965
7968
case EXIT_REASON_MSR_WRITE :
7966
7969
return nested_vmx_exit_handled_msr (vcpu , vmcs12 , exit_reason );
You can’t perform that action at this time.
0 commit comments