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)
commit81601495c5f9839b76eef4edb920b2f101f2fc77
tree0f259d90f2968b3b88002f7a19325e9d8fba2f91
parent72c14e00bdc445e96045c28d04bba45cbe69cf95
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