From: Alexander Graf Date: Mon, 20 Feb 2012 21:45:12 +0000 (+0100) Subject: KVM: PPC: booke: Support perfmon interrupts X-Git-Tag: next-20120430~23^2~30 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=95f2e921446dbc2e9a785734049ee349a67434bd;p=karo-tx-linux.git KVM: PPC: booke: Support perfmon interrupts When during guest context we get a performance monitor interrupt, we currently bail out and oops. Let's route it to its correct handler instead. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 7df3f3ae71d9..ee39c8a80c63 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -679,6 +679,10 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, r = RESUME_GUEST; break; + case BOOKE_INTERRUPT_PERFORMANCE_MONITOR: + r = RESUME_GUEST; + break; + case BOOKE_INTERRUPT_HV_PRIV: r = emulation_exit(run, vcpu); break;