diff options
author | Sean Christopherson | 2019-04-20 07:50:58 +0200 |
---|---|---|
committer | Paolo Bonzini | 2019-06-18 11:46:03 +0200 |
commit | 165072b089e5af32c2693ab900d5fb5d41e3f293 (patch) | |
tree | 235c969908b6d21a80bf4bec4147a45346beb154 /arch/x86/kvm/x86.c | |
parent | KVM: VMX: Store the host kernel's IDT base in a global variable (diff) | |
download | kernel-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/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index dcba699e2d46..9ff3a670d2b3 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -7999,9 +7999,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) vcpu->mode = OUTSIDE_GUEST_MODE; smp_wmb(); - kvm_before_interrupt(vcpu); kvm_x86_ops->handle_external_intr(vcpu); - kvm_after_interrupt(vcpu); ++vcpu->stat.exits; |