KVM: ppc/booke: Set ESR and DEAR when inject interrupt to guest
authorLiu Yu <yu.liu@freescale.com>
Tue, 2 Feb 2010 11:44:35 +0000 (19:44 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:10 +0000 (12:36 -0300)
commitdaf5e27109c8c16c987e955cc6abbbc0af050edd
tree70456cce995c63895d50d921e6e0c36a9678de19
parent4b7bb9210047fe880bb71e6273c3a4526799dbd7
KVM: ppc/booke: Set ESR and DEAR when inject interrupt to guest

Old method prematurely sets ESR and DEAR.
Move this part after we decide to inject interrupt,
which is more like hardware behave.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Acked-by: Hollis Blanchard <hollis@penguinppc.org>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/emulate.c