Skip to content

Commit

Permalink
x86/kvm: properly use DEFINE_IDTENTRY_SYSVEC() macro
Browse files Browse the repository at this point in the history
DEFINE_IDTENTRY_SYSVEC() already contains irqentry_enter()/
irqentry_exit().

Signed-off-by: Vitaly Kuznetsov <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
vittyvk authored and bonzini committed Sep 12, 2020
1 parent 99b82a1 commit 244081f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/x86/kernel/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
}

Expand Down

0 comments on commit 244081f

Please sign in to comment.