mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 01:26:57 +07:00
KVM: nVMX: Consolidate nested MTF checks to helper function
commit 5ef8acbdd6
("KVM: nVMX: Emulate MTF when performing
instruction emulation") introduced a helper to check the MTF
VM-execution control in vmcs12. Change pre-existing check in
nested_vmx_exit_reflected() to instead use the helper.
Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
041bc42ce2
commit
212617dbb6
@ -5626,7 +5626,7 @@ bool nested_vmx_exit_reflected(struct kvm_vcpu *vcpu, u32 exit_reason)
|
||||
case EXIT_REASON_MWAIT_INSTRUCTION:
|
||||
return nested_cpu_has(vmcs12, CPU_BASED_MWAIT_EXITING);
|
||||
case EXIT_REASON_MONITOR_TRAP_FLAG:
|
||||
return nested_cpu_has(vmcs12, CPU_BASED_MONITOR_TRAP_FLAG);
|
||||
return nested_cpu_has_mtf(vmcs12);
|
||||
case EXIT_REASON_MONITOR_INSTRUCTION:
|
||||
return nested_cpu_has(vmcs12, CPU_BASED_MONITOR_EXITING);
|
||||
case EXIT_REASON_PAUSE_INSTRUCTION:
|
||||
|
Loading…
Reference in New Issue
Block a user