Skip to content

Commit 244081f

Browse files
vittyvkbonzini
authored andcommitted
x86/kvm: properly use DEFINE_IDTENTRY_SYSVEC() macro
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>
1 parent 99b82a1 commit 244081f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/x86/kernel/kvm.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,6 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_kvm_asyncpf_interrupt)
270270
{
271271
struct pt_regs *old_regs = set_irq_regs(regs);
272272
u32 token;
273-
irqentry_state_t state;
274-
275-
state = irqentry_enter(regs);
276273

277274
inc_irq_stat(irq_hv_callback_count);
278275

@@ -283,7 +280,6 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_kvm_asyncpf_interrupt)
283280
wrmsrl(MSR_KVM_ASYNC_PF_ACK, 1);
284281
}
285282

286-
irqentry_exit(regs, state);
287283
set_irq_regs(old_regs);
288284
}
289285

0 commit comments

Comments
 (0)