summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorSean Christopherson2019-04-20 07:50:58 +0200
committerPaolo Bonzini2019-06-18 11:46:03 +0200
commit165072b089e5af32c2693ab900d5fb5d41e3f293 (patch)
tree235c969908b6d21a80bf4bec4147a45346beb154 /arch/x86/kvm/svm.c
parentKVM: VMX: Store the host kernel's IDT base in a global variable (diff)
downloadkernel-qcow2-linux-165072b089e5af32c2693ab900d5fb5d41e3f293.tar.gz
kernel-qcow2-linux-165072b089e5af32c2693ab900d5fb5d41e3f293.tar.xz
kernel-qcow2-linux-165072b089e5af32c2693ab900d5fb5d41e3f293.zip
KVM: x86: Move kvm_{before,after}_interrupt() calls to vendor code
VMX can conditionally call kvm_{before,after}_interrupt() since KVM always uses "ack interrupt on exit" and therefore explicitly handles interrupts as opposed to blindly enabling irqs. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 302cb409d452..acc09e9fc173 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -6174,6 +6174,7 @@ out:
static void svm_handle_external_intr(struct kvm_vcpu *vcpu)
{
+ kvm_before_interrupt(vcpu);
local_irq_enable();
/*
* We must have an instruction with interrupts enabled, so
@@ -6181,6 +6182,7 @@ static void svm_handle_external_intr(struct kvm_vcpu *vcpu)
*/
asm("nop");
local_irq_disable();
+ kvm_after_interrupt(vcpu);
}
static void svm_sched_in(struct kvm_vcpu *vcpu, int cpu)