linux/arch/powerpc/kvm
Paul Mackerras 2bf27601c7 KVM: PPC: Book3S HV: Fix instruction emulation
Commit 4a157d61b4 ("KVM: PPC: Book3S HV: Fix endianness of
instruction obtained from HEIR register") had the side effect that
we no longer reset vcpu->arch.last_inst to -1 on guest exit in
the cases where the instruction is not fetched from the guest.
This means that if instruction emulation turns out to be required
in those cases, the host will emulate the wrong instruction, since
vcpu->arch.last_inst will contain the last instruction that was
emulated.

This fixes it by making sure that vcpu->arch.last_inst is reset
to -1 in those cases.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
2015-03-20 11:42:33 +01:00
..
book3s_32_mmu_host.c
book3s_32_mmu.c arch: powerpc: kvm: book3s_32_mmu.c: Remove unused function 2014-12-17 13:12:25 +01:00
book3s_32_sr.S
book3s_64_mmu_host.c
book3s_64_mmu_hv.c KVM: PPC: Book3S HV: Remove code for PPC970 processors 2014-12-17 13:44:03 +01:00
book3s_64_mmu.c
book3s_64_slb.S
book3s_64_vio_hv.c
book3s_64_vio.c
book3s_emulate.c
book3s_exports.c
book3s_hv_builtin.c 3.19 changes for KVM: 2014-12-18 16:05:28 -08:00
book3s_hv_interrupts.S powerpc/kvm: Create proper names for the kvm_host_state PMU fields 2014-12-29 15:45:55 +11:00
book3s_hv_ras.c KVM: PPC: Book3S HV: Remove code for PPC970 processors 2014-12-17 13:44:03 +01:00
book3s_hv_rm_mmu.c mm: convert p[te|md]_numa users to p[te|md]_protnone_numa 2015-02-12 18:54:08 -08:00
book3s_hv_rm_xics.c ppc/kvm: Replace ACCESS_ONCE with READ_ONCE 2015-01-19 14:14:07 +01:00
book3s_hv_rmhandlers.S KVM: PPC: Book3S HV: Fix instruction emulation 2015-03-20 11:42:33 +01:00
book3s_hv.c KVM: PPC: Book3S HV: Endian fix for accessing VPA yield count 2015-03-20 11:42:08 +01:00
book3s_interrupts.S
book3s_mmu_hpte.c
book3s_paired_singles.c arch: powerpc: kvm: book3s_paired_singles.c: Remove unused function 2014-12-17 13:13:29 +01:00
book3s_pr_papr.c
book3s_pr.c arch: powerpc: kvm: book3s_pr.c: Remove unused function 2014-12-17 13:13:16 +01:00
book3s_rmhandlers.S
book3s_rtas.c
book3s_segment.S
book3s_xics.c ppc/kvm: Replace ACCESS_ONCE with READ_ONCE 2015-01-19 14:14:07 +01:00
book3s_xics.h KVM: PPC: Book3S HV: Fix inaccuracies in ICP emulation for H_IPI 2014-12-15 13:27:24 +01:00
book3s.c kvm: add halt_poll_ns module parameter 2015-02-06 13:08:37 +01:00
book3s.h
booke_emulate.c
booke_interrupts.S
booke.c kvm: add halt_poll_ns module parameter 2015-02-06 13:08:37 +01:00
booke.h
bookehv_interrupts.S
e500_emulate.c
e500_mmu_host.c
e500_mmu_host.h
e500_mmu.c
e500.c 3.19 changes for KVM: 2014-12-18 16:05:28 -08:00
e500.h
e500mc.c
emulate_loadstore.c
emulate.c
fpu.S
irq.h
Kconfig rcu: Make SRCU optional by using CONFIG_SRCU 2015-01-06 11:04:29 -08:00
Makefile
mpic.c
powerpc.c KVM: remove unneeded return value of vcpu_postcreate 2015-01-23 13:24:52 +01:00
timing.c
timing.h
trace_book3s.h KVM: PPC: Book3S HV: Tracepoints for KVM HV guest interactions 2014-12-17 13:29:27 +01:00
trace_booke.h
trace_hv.h KVM: PPC: Book3S HV: Tracepoints for KVM HV guest interactions 2014-12-17 13:29:27 +01:00
trace_pr.h KVM: PPC: Book3S HV: Tracepoints for KVM HV guest interactions 2014-12-17 13:29:27 +01:00
trace.h