]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70309c3be51f584cce0c0da538c06dda7c7efa8b
tree28fed8ca78b7f88f631ead5d1f4ea7d2c8ba1378
parent0270d88c42f53a92d87e3b2d844d0e81c142afb9
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