]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/kvm: properly use DEFINE_IDTENTRY_SYSVEC() macro
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 8 Sep 2020 13:53:49 +0000 (15:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Sep 2020 06:22:07 +0000 (02:22 -0400)
DEFINE_IDTENTRY_SYSVEC() already contains irqentry_enter()/
irqentry_exit().

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200908135350.355053-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c

index 9e7dd3a96873e67fe87e0e7afaf703f335086d93..02d15485ff1d0212ee0ece9434375b17163f5cd0 100644 (file)
@@ -270,9 +270,6 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_kvm_asyncpf_interrupt)
 {
        struct pt_regs *old_regs = set_irq_regs(regs);
        u32 token;
-       irqentry_state_t state;
-
-       state = irqentry_enter(regs);
 
        inc_irq_stat(irq_hv_callback_count);
 
@@ -283,7 +280,6 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_kvm_asyncpf_interrupt)
                wrmsrl(MSR_KVM_ASYNC_PF_ACK, 1);
        }
 
-       irqentry_exit(regs, state);
        set_irq_regs(old_regs);
 }