KVM: SVM: introduce nested_run_pending
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Apr 2020 17:22:27 +0000 (13:22 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:14:21 +0000 (12:14 -0400)
commitf74f94140fa50f768e61d626de4c146502b9102d
treefe70a9a81d8cd3c9ef6f23658d311f05de66b1d4
parent4aef2ec9022b217f74d0f4c9b84081f07cc223d9
KVM: SVM: introduce nested_run_pending

We want to inject vmexits immediately from svm_check_nested_events,
so that the interrupt/NMI window requests happen in inject_pending_event
right after it returns.

This however has the same issue as in vmx_check_nested_events, so
introduce a nested_run_pending flag with the exact same purpose
of delaying vmexit injection after the vmentry.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h