KVM: x86: Formalize blocking of nested pending exceptions
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:16:02 +0000 (23:16 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:08 +0000 (12:03 -0400)
commit72c14e00bdc445e96045c28d04bba45cbe69cf95
treea0a866ce68b2da420ec9b9fe14a8b8b4ec5aaf27
parentd4963e319f1f7851a098df6610a27f9f4cf6d42a
KVM: x86: Formalize blocking of nested pending exceptions

Capture nested_run_pending as block_pending_exceptions so that the logic
of why exceptions are blocked only needs to be documented once instead of
at every place that employs the logic.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220830231614.3580124-16-seanjc@google.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/vmx/nested.c