KVM: PPC: Pass through program interrupts
authorAlexander Graf <agraf@suse.de>
Sun, 10 Jan 2010 02:27:32 +0000 (03:27 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:49 +0000 (12:35 -0300)
commit5f2b105a1d6a137c8cfb2792b79128db965880a8
tree2dbc8b513c8d9c2aea40804f9f31b34442d0be41
parentff1ca3f983c4180018dbf5e02f2af06f86ef6d03
KVM: PPC: Pass through program interrupts

When we get a program interrupt in guest kernel mode, we try to emulate the
instruction.

If that doesn't fail, we report to the user and try again - at the exact same
instruction pointer. So if the guest kernel really does trigger an invalid
instruction, we loop forever.

So let's better go and forward program exceptions to the guest when we don't
know the instruction we're supposed to emulate.

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