KVM: PPC: Tell guest about pending interrupts
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:51 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:46 +0000 (10:50 +0200)
commit90bba358873dc96a6746f0df453a0a8ca3d6b86e
tree28fed8ca78b7f88f631ead5d1f4ea7d2c8ba1378
parentfad93fe1d452960eb838109222cc949eb77f2859
KVM: PPC: Tell guest about pending interrupts

When the guest turns on interrupts again, it needs to know if we have an
interrupt pending for it. Because if so, it should rather get out of guest
context and get the interrupt.

So we introduce a new field in the shared page that we use to tell the guest
that there's a pending interrupt lying around.

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