qemu-e2k/target/ppc
Greg Kurz bce009645b target/ppc: always set PPC_MEM_TLBIE in pre 2.8 migration hack
The pseries-2.7 and older machine types require CPUPPCState::insns_flags
to be strictly equal between source and destination. This checking is
abusive and breaks migration of KVM guests when the host CPU models
are different, even if they are compatible enough to allow the guest
to run transparently. This buggy behaviour was fixed for pseries-2.8
and we added some hacks to allow backward migration of older machine
types. These hacks assume that the CPU belongs to the POWER8 family,
which was true for most KVM based setup we cared about at the time.
But now POWER9 systems are coming, and backward migration of pre 2.8
guests running in POWER8 architected mode from a POWER9 host to a
POWER8 host is broken:

qemu-system-ppc64: error while loading state for instance 0x0 of device
 'cpu'
qemu-system-ppc64: load of migration failed: Invalid argument

This happens because POWER9 doesn't set PPC_MEM_TLBIE in insns_flags,
while POWER8 does. Let's force PPC_MEM_TLBIE in the migration hack to
fix the issue. This is an acceptable hack because these old machine
types only support CPU models that do set PPC_MEM_TLBIE.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2018-05-04 15:00:37 +10:00
..
translate target/ppc: convert to DisasContextBase 2018-02-16 12:14:39 +11:00
arch_dump.c
compat.c target/ppc: Clarify compat mode max_threads value 2018-01-17 09:35:24 +11:00
cpu-models.c
cpu-models.h
cpu-qom.h target/ppc: Get rid of POWERPC_MMU_VER() macros 2018-04-27 18:05:22 +10:00
cpu.c
cpu.h spapr: Move PAPR mode cpu setup fully to spapr code 2018-05-04 15:00:37 +10:00
dfp_helper.c
excp_helper.c target/ppc: add support for hypervisor doorbells on book3s CPUs 2018-01-20 17:15:05 +11:00
fpu_helper.c target/*/cpu.h: remove softfloat.h 2018-02-21 10:20:24 +00:00
gdbstub.c ppc: Fix size of ppc64 xer register 2018-04-27 18:05:22 +10:00
helper_regs.h target/ppc: Fix system lockups caused by interrupt_request state corruption 2017-12-05 12:28:42 +11:00
helper.h target/ppc: add basic support for PTCR on POWER9 2018-05-04 09:56:27 +10:00
int_helper.c target/*/cpu.h: remove softfloat.h 2018-02-21 10:20:24 +00:00
internal.h
kvm_ppc.h spapr: Remove support for explicitly allocated RMAs 2018-05-04 11:15:18 +10:00
kvm-stub.c openpic: move KVM-specific declarations into separate openpic_kvm.h file 2018-03-06 13:16:29 +11:00
kvm.c spapr: Move PAPR mode cpu setup fully to spapr code 2018-05-04 15:00:37 +10:00
machine.c target/ppc: always set PPC_MEM_TLBIE in pre 2.8 migration hack 2018-05-04 15:00:37 +10:00
Makefile.objs
mem_helper.c
mfrom_table_gen.c
mfrom_table.c
misc_helper.c target/ppc: add basic support for PTCR on POWER9 2018-05-04 09:56:27 +10:00
mmu_helper.c target/ppc: add basic support for PTCR on POWER9 2018-05-04 09:56:27 +10:00
mmu-book3s-v3.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mmu-book3s-v3.h target/ppc: add basic support for PTCR on POWER9 2018-05-04 09:56:27 +10:00
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c target/ppc: Add ppc_store_lpcr() helper 2018-05-04 11:15:19 +10:00
mmu-hash64.h target/ppc: Add ppc_store_lpcr() helper 2018-05-04 11:15:19 +10:00
mmu-radix64.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
mmu-radix64.h
monitor.c
timebase_helper.c
trace-events
translate_init.c spapr: Move PAPR mode cpu setup fully to spapr code 2018-05-04 15:00:37 +10:00
translate.c target/ppc: add basic support for PTCR on POWER9 2018-05-04 09:56:27 +10:00
user_only_helper.c accel/tcg: add size paremeter in tlb_fill() 2018-01-25 16:02:24 +01:00