Skip to content

Commit f80ae0e

Browse files
vittyvkbonzini
authored andcommitted
KVM: nVMX: Also filter MSR_IA32_VMX_TRUE_PINBASED_CTLS when eVMCS
Similar to MSR_IA32_VMX_EXIT_CTLS/MSR_IA32_VMX_TRUE_EXIT_CTLS, MSR_IA32_VMX_ENTRY_CTLS/MSR_IA32_VMX_TRUE_ENTRY_CTLS pair, MSR_IA32_VMX_TRUE_PINBASED_CTLS needs to be filtered the same way MSR_IA32_VMX_PINBASED_CTLS is currently filtered as guests may solely rely on 'true' MSR data. Note, none of the currently existing Windows/Hyper-V versions are known to stumble upon the unfiltered MSR_IA32_VMX_TRUE_PINBASED_CTLS, 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 b19c99b commit f80ae0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/vmx/evmcs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ void nested_evmcs_filter_control_msr(u32 msr_index, u64 *pdata)
362362
case MSR_IA32_VMX_PROCBASED_CTLS2:
363363
ctl_high &= ~EVMCS1_UNSUPPORTED_2NDEXEC;
364364
break;
365+
case MSR_IA32_VMX_TRUE_PINBASED_CTLS:
365366
case MSR_IA32_VMX_PINBASED_CTLS:
366367
ctl_high &= ~EVMCS1_UNSUPPORTED_PINCTRL;
367368
break;

0 commit comments

Comments
 (0)