Skip to content

Commit

Permalink
KVM: PPC: Book3S: Enable IRQs during exit handling
Browse files Browse the repository at this point in the history
While handling an exit, we should listen for interrupts and make sure to
receive them when they arrive, to keep our latencies low.

Signed-off-by: Alexander Graf <agraf@suse.de>
  • Loading branch information
Alexander Graf committed May 6, 2012
1 parent 11f7d6c commit 3b1d9d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kvm/book3s_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
run->exit_reason = KVM_EXIT_UNKNOWN;
run->ready_for_interrupt_injection = 1;

/* We get here with MSR.EE=0, so enable it to be a nice citizen */
__hard_irq_enable();

trace_kvm_book3s_exit(exit_nr, vcpu);
preempt_enable();
kvm_resched(vcpu);
Expand Down

0 comments on commit 3b1d9d7

Please sign in to comment.