]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: PPC: Book3S: Enable IRQs during exit handling
authorAlexander Graf <agraf@suse.de>
Mon, 30 Apr 2012 08:56:12 +0000 (10:56 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 6 May 2012 14:19:11 +0000 (16:19 +0200)
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>
arch/powerpc/kvm/book3s_pr.c

index dba282e5093f1656e91413832b09384390fee295..d169a0aa48870189c070ca9ecb2efc140ce4ca59 100644 (file)
@@ -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);