summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-02-20 22:45:12 +0100
committerAvi Kivity <avi@redhat.com>2012-04-08 12:55:24 +0300
commit95f2e921446dbc2e9a785734049ee349a67434bd (patch)
tree831fcd484b21399566c383a6601e15b130e22095 /arch/powerpc/kvm/booke.c
parentc6b3733bef2ffece49336dba7220fefdae5fa908 (diff)
downloadop-kernel-dev-95f2e921446dbc2e9a785734049ee349a67434bd.zip
op-kernel-dev-95f2e921446dbc2e9a785734049ee349a67434bd.tar.gz
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 7df3f3a..ee39c8a 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;
OpenPOWER on IntegriCloud