Skip to content

Commit 7a601e2

Browse files
vittyvkbonzini
authored andcommitted
KVM: nVMX: eVMCS: Filter out VM_EXIT_SAVE_VMX_PREEMPTION_TIMER
Enlightened VMCS v1 doesn't have VMX_PREEMPTION_TIMER_VALUE field, PIN_BASED_VMX_PREEMPTION_TIMER is also filtered out already so it makes sense to filter out VM_EXIT_SAVE_VMX_PREEMPTION_TIMER too. Note, none of the currently existing Windows/Hyper-V versions are known to enable 'save VMX-preemption timer value' when eVMCS is in use, the change is aimed at making the filtering future proof. Signed-off-by: Vitaly Kuznetsov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f80ae0e commit 7a601e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/x86/kvm/vmx/evmcs.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ DECLARE_STATIC_KEY_FALSE(enable_evmcs);
5959
SECONDARY_EXEC_SHADOW_VMCS | \
6060
SECONDARY_EXEC_TSC_SCALING | \
6161
SECONDARY_EXEC_PAUSE_LOOP_EXITING)
62-
#define EVMCS1_UNSUPPORTED_VMEXIT_CTRL (VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL)
62+
#define EVMCS1_UNSUPPORTED_VMEXIT_CTRL \
63+
(VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL | \
64+
VM_EXIT_SAVE_VMX_PREEMPTION_TIMER)
6365
#define EVMCS1_UNSUPPORTED_VMENTRY_CTRL (VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL)
6466
#define EVMCS1_UNSUPPORTED_VMFUNC (VMX_VMFUNC_EPTP_SWITCHING)
6567

0 commit comments

Comments
 (0)