diff options
author | Liu Yu <yu.liu@freescale.com> | 2010-02-02 19:44:35 +0800 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 12:36:10 -0300 |
commit | daf5e27109c8c16c987e955cc6abbbc0af050edd (patch) | |
tree | 70456cce995c63895d50d921e6e0c36a9678de19 /arch/powerpc/include/asm/kvm_host.h | |
parent | 4b7bb9210047fe880bb71e6273c3a4526799dbd7 (diff) | |
download | blackbird-op-linux-daf5e27109c8c16c987e955cc6abbbc0af050edd.tar.gz blackbird-op-linux-daf5e27109c8c16c987e955cc6abbbc0af050edd.zip |
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>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 715aa6baf6f0..5e5bae7e152f 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h @@ -259,6 +259,8 @@ struct kvm_vcpu_arch { #endif ulong fault_dear; ulong fault_esr; + ulong queued_dear; + ulong queued_esr; gpa_t paddr_accessed; u8 io_gpr; /* GPR used as IO source/target */ |