aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-02-20 16:45:12 -0500
committerAvi Kivity <avi@redhat.com>2012-04-08 05:55:24 -0400
commit95f2e921446dbc2e9a785734049ee349a67434bd (patch)
tree831fcd484b21399566c383a6601e15b130e22095 /arch/powerpc/kvm/booke.c
parentc6b3733bef2ffece49336dba7220fefdae5fa908 (diff)
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 <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r--arch/powerpc/kvm/booke.c4
1 files changed, 4 insertions, 0 deletions
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,
679 r = RESUME_GUEST; 679 r = RESUME_GUEST;
680 break; 680 break;
681 681
682 case BOOKE_INTERRUPT_PERFORMANCE_MONITOR:
683 r = RESUME_GUEST;
684 break;
685
682 case BOOKE_INTERRUPT_HV_PRIV: 686 case BOOKE_INTERRUPT_HV_PRIV:
683 r = emulation_exit(run, vcpu); 687 r = emulation_exit(run, vcpu);
684 break; 688 break;