]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Combine extension interrupt handlers
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:34 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:56 +0000 (12:34 +0300)
commit5dca60d4e4ab4c388ee085a877f595cd75ee4c95
tree479571debbf03831a804a6e8cbc3ba4c986af1df
parent1bdb335a82a3d6af9747dcc5471e3fd8b29f57a9
KVM: PPC: Combine extension interrupt handlers

When we for example get an Altivec interrupt, but our guest doesn't support
altivec, we need to inject a program interrupt, not an altivec interrupt.

The same goes for paired singles. When an altivec interrupt arrives, we're
pretty sure we need to emulate the instruction because it's a paired single
operation.

So let's make all the ext handlers aware that they need to jump to the
program interrupt handler when an extension interrupt arrives that
was not supposed to arrive for the guest CPU.

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