diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-22 16:26:34 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 11:55:28 +0200 |
commit | 7cc1e8ee78f469ecff8aa29465325f1e4c5e1b5f (patch) | |
tree | af21362c4277480ee03015c05ee446b42d27b9c1 /arch/powerpc/kvm | |
parent | KVM: PPC: booke: expose good state on irq reinject (diff) | |
download | linux-7cc1e8ee78f469ecff8aa29465325f1e4c5e1b5f.tar.xz linux-7cc1e8ee78f469ecff8aa29465325f1e4c5e1b5f.zip |
KVM: PPC: booke: Reinject performance monitor interrupts
When we get a performance monitor interrupt, we need to make sure that
the host receives it. So reinject it like we reinject the other host
destined interrupts.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/booke.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 488936bece69..8e8aa4cb5968 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -634,6 +634,10 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, case BOOKE_INTERRUPT_MACHINE_CHECK: /* FIXME */ break; + case BOOKE_INTERRUPT_PERFORMANCE_MONITOR: + kvmppc_fill_pt_regs(®s); + performance_monitor_exception(®s); + break; } } |