diff options
author | Sean Christopherson <seanjc@google.com> | 2022-09-21 00:31:51 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-26 12:37:18 -0400 |
commit | 2ea89c7f7f7b192e32d1842dafc2e972cd14329b (patch) | |
tree | 150f762fbe7309344f486d3c68c09aa0e9a4f3de /arch/x86/kvm/lapic.h | |
parent | 5b4ac1a1b713736f906fb0378a5bde612fdad538 (diff) | |
download | linux-rpi-2ea89c7f7f7b192e32d1842dafc2e972cd14329b.tar.gz linux-rpi-2ea89c7f7f7b192e32d1842dafc2e972cd14329b.tar.bz2 linux-rpi-2ea89c7f7f7b192e32d1842dafc2e972cd14329b.zip |
KVM: nVMX: Make an event request when pending an MTF nested VM-Exit
Set KVM_REQ_EVENT when MTF becomes pending to ensure that KVM will run
through inject_pending_event() and thus vmx_check_nested_events() prior
to re-entering the guest.
MTF currently works by virtue of KVM's hack that calls
kvm_check_nested_events() from kvm_vcpu_running(), but that hack will
be removed in the near future. Until that call is removed, the patch
introduces no real functional change.
Fixes: 5ef8acbdd687 ("KVM: nVMX: Emulate MTF when performing instruction emulation")
Cc: stable@vger.kernel.org
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220921003201.1441511-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.h')
0 files changed, 0 insertions, 0 deletions