Skip to contentSkip to conversation

KVM: PPC: Book3S: Enable IRQs during exit handling

PATCH New Alexander Graf 1 participant 1 message Apr 30, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: PPC: Book3S: Enable IRQs during exit handling

While handling an exit, we should listen for interrupts and make sure to receive them when they arrive, to keep our latencies low.

---
 arch/powerpc/kvm/book3s_pr.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/powerpc/kvm/book3s_pr.c +3 -0
index a172926..63850cf 100644
@@ -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);
Signature · 1 line
1.6.0.2