KVM: PPC: booke: Support perfmon interrupts
authorAlexander Graf <agraf@suse.de>
Mon, 20 Feb 2012 21:45:12 +0000 (22:45 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:55:24 +0000 (12:55 +0300)
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>
arch/powerpc/kvm/booke.c

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