This patch is based on Andreas Färber's qom-cpu branch. Due to new cpu_paging_enabled and get_memory_mapping cpu hooks this patch is now smaller.
v2->v3: - fix endian issues - tested on little-endian host Ekaterina Tumanova (1): s390: Implement dump-guest-memory support for target s390x include/elf.h | 6 ++ target-s390x/Makefile.objs | 2 +- target-s390x/arch_dump.c | 224 +++++++++++++++++++++++++++++++++++++++++++++ target-s390x/cpu-qom.h | 9 ++ target-s390x/cpu.c | 4 + 5 files changed, 244 insertions(+), 1 deletion(-) create mode 100644 target-s390x/arch_dump.c -- 1.8.1.6