OSDN Git Service

KVM: nVMX: Consolidate nested MTF checks to helper function
authorOliver Upton <oupton@google.com>
Mon, 24 Feb 2020 20:27:44 +0000 (12:27 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:59 +0000 (17:58 +0100)
commit212617dbb6bac2a21dec6ef7d6012d96bb6dbb5d
tree755358476e5a6db500e89175dacf6c92c0308a77
parent041bc42ce2d0efac3b85bbb81dea8c74b81f4ef9
KVM: nVMX: Consolidate nested MTF checks to helper function

commit 5ef8acbdd687 ("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>
arch/x86/kvm/vmx/nested.c