KVM: PPC: Add AGAIN type for emulation return
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:31 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:47 +0000 (12:34 +0300)
commit37f5bca64e206ed97e53f734d7de5b7c5ade3578
treefb5fd1922a9e4c7ae6700a0605a47e7a35f53cfb
parent3587d5348ced089666c51411bd9d771fb0b072cf
KVM: PPC: Add AGAIN type for emulation return

Emulation of an instruction can have different outcomes. It can succeed,
fail, require MMIO, do funky BookE stuff - or it can just realize something's
odd and will be fixed the next time around.

Exactly that is what EMULATE_AGAIN means. Using that flag we can now tell
the caller that nothing happened, but we still want to go back to the
guest and see what happens next time we come around.

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