KVM: PPC: booke: expose good state on irq reinject
authorAlexander Graf <agraf@suse.de>
Mon, 20 Feb 2012 22:57:26 +0000 (23:57 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:55:26 +0000 (12:55 +0300)
commit4e642ccbd6a3f1410155c7700f54b56b6c7df9a2
tree7c1362f967a0ed2c3563cc945f0498e491cc92cc
parent95f2e921446dbc2e9a785734049ee349a67434bd
KVM: PPC: booke: expose good state on irq reinject

When reinjecting an interrupt into the host interrupt handler after we're
back in host kernel land, we need to tell the kernel where the interrupt
happened. We can't tell it that we were in guest state, because that might
lead to random code walking host addresses. So instead, we tell it that
we came from the interrupt reinject code.

This helps getting reasonable numbers out of perf.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/booke.c