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)
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>

No differences found