qemu-e2k/target-ppc
Laurent Vivier 760d88d1d0 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>
2016-08-10 13:05:05 +10:00
..
arch_dump.c ppc64: fix compressed dump with pseries kernel 2016-08-10 13:05:05 +10: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 ppc: Fix 64K pages support in full emulation 2016-07-01 09:57:01 +10:00
cpu.h target-*: Clean up cpu.h header guards 2016-07-12 16:19:16 +02:00
dfp_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
excp_helper.c ppc: Initial HDEC support 2016-07-01 09:57:01 +10:00
fpu_helper.c ppc: Fix xsrdpi, xvrdpi and xvrspi rounding 2016-07-05 10:43:02 +10:00
gdbstub.c qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
helper_regs.h ppc: Fix support for odd MSR combinations 2016-07-18 10:40:27 +10:00
helper.h ppc: Initial HDEC support 2016-07-01 09:57:01 +10:00
int_helper.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
kvm_ppc.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
kvm-stub.c qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
kvm.c ppc: Huge page detection mechanism fixes - Episode III 2016-07-25 10:19:30 +10:00
machine.c ppc: Use split I/D mmu modes to avoid flushes on interrupts 2016-05-30 13:20:04 +10:00
Makefile.objs kvm_ppc: remove kvmppc_timer_hack 2015-09-20 22:48:38 +02:00
mem_helper.c ppc: Fix fault PC reporting for lve*/stve* VMX instructions 2016-07-29 12:02:31 +10:00
mfrom_table_gen.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
mfrom_table.c
misc_helper.c ppc: Improve emulation of THRM registers 2016-06-22 11:12:17 +10:00
mmu_helper.c Fix confusing argument names in some common functions 2016-07-12 13:06:08 +01:00
mmu-hash32.c cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
mmu-hash32.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
mmu-hash64.c target-ppc: fix left shift overflow in hpte_page_shift 2016-07-18 10:45:44 +10:00
mmu-hash64.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
monitor.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
STATUS target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
timebase_helper.c ppc: Initial HDEC support 2016-07-01 09:57:01 +10:00
trace-events trace: split out trace events for target-ppc/ directory 2016-06-20 17:22:17 +01:00
translate_init.c target-ppc: add PPC_MFTB flag to e500mc and e5500 2016-07-25 11:18:49 +10:00
translate.c target-ppc: gen_pause for instructions: yield, mdoio, mdoom, miso 2016-07-01 13:41:47 +10:00
user_only_helper.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00