]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit282fc311bc26696a1b301dd7db289ef32114c79e
treefe70a9a81d8cd3c9ef6f23658d311f05de66b1d4
parent1515c3e6231cc4d60ccf10184daa4ff17cdbae56
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