qemu-patch-raspberry4/target-ppc
Laurent Vivier 1f1b96a1df ppc64: fix compressed dump with pseries kernel
If we don't provide the page size in target-ppc:cpu_get_dump_info(),
the default one (TARGET_PAGE_SIZE, 4KB) is used to create
the compressed dump. It works fine with Macintosh, but not with
pseries as the kernel default page size is 64KB.

Without this patch, if we generate a compressed dump in the QEMU monitor:

    (qemu) dump-guest-memory -z qemu.dump

This dump cannot be read by crash:

    # crash vmlinux qemu.dump
    ...
    WARNING: cannot translate vmemmap kernel virtual addresses:
             commands requiring page structure contents will fail
    ...

Page_size is used to determine the dumpfile's block size. The
block size needs to be at least the page size, but a multiple of page
size works fine too. For PPC64, linux supports either 4KB or 64KB software
page size. So we define the page_size to 64KB.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(cherry picked from commit 760d88d1d0)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2016-08-15 08:55:58 -05:00
..
Makefile.objs kvm_ppc: remove kvmppc_timer_hack 2015-09-20 22:48:38 +02:00
STATUS target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
arch_dump.c ppc64: fix compressed dump with pseries kernel 2016-08-15 08:55:58 -05:00
cpu-models.c target-ppc: Add PVR for POWER8NVL processor 2016-03-16 09:55:05 +11:00
cpu-models.h target-ppc: Add PVR for POWER8NVL processor 2016-03-16 09:55:05 +11:00
cpu-qom.h dump: qemunotes aren't commonly needed 2016-01-15 14:40:24 +00:00
cpu.h ppc: Fix the range check in the LSWI instruction 2016-04-18 15:14:38 +10:00
dfp_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
excp_helper.c ppc: Rework POWER7 & POWER8 exception model 2016-04-05 10:38:24 +10:00
fpu_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
gdbstub.c target-ppc: rename and export maybe_bswap_register() 2016-01-30 23:37:37 +11:00
helper.h target-ppc: Split 44x tlbiva from ppc_tlb_invalidate_one() 2016-01-30 23:49:26 +11:00
helper_regs.h PPC: Only enter MSR_POW when no interrupts pending 2014-04-08 11:20:05 +02:00
int_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
kvm-stub.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
kvm.c * Log filtering from Alex and Peter 2016-03-24 21:42:40 +00:00
kvm_ppc.h target-ppc: Add helpers for updating a CPU's SDR1 and external HPT 2016-03-16 09:55:06 +11:00
machine.c ppc: Fix migration of the XER register 2016-04-18 15:14:38 +10:00
mem_helper.c ppc: Fix the bad exception NIP value and the range check in LSWX 2016-04-18 15:14:38 +10:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
mfrom_table_gen.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
misc_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
mmu-hash32.c log: do not unnecessarily include qom/cpu.h 2016-02-03 09:19:10 +00:00
mmu-hash32.h target-ppc: Convert mmu-hash{32,64}.[ch] from CPUPPCState to PowerPCCPU 2016-01-30 23:37:38 +11:00
mmu-hash64.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
mmu-hash64.h target-ppc: Eliminate kvmppc_kern_htab global 2016-03-16 09:55:06 +11:00
mmu_helper.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
monitor.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
timebase_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
translate.c ppc: Fix the range check in the LSWI instruction 2016-04-18 15:14:38 +10:00
translate_init.c ppc: Rework POWER7 & POWER8 exception model 2016-04-05 10:38:24 +10:00
user_only_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00