]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Use kvm_queue_exception_e() to queue #DF
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:16:03 +0000 (23:16 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:08 +0000 (12:03 -0400)
commit0add2cbfe73ac6235f59de4bf253cd4b1e42fb5e
tree0f259d90f2968b3b88002f7a19325e9d8fba2f91
parent6df9ee9c32990eda59a3043333c4b99418115f4d
KVM: x86: Use kvm_queue_exception_e() to queue #DF

Queue #DF by recursing on kvm_multiple_exception() by way of
kvm_queue_exception_e() instead of open coding the behavior.  This will
allow KVM to Just Work when a future commit moves exception interception
checks (for L2 => L1) into kvm_multiple_exception().

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-17-seanjc@google.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c