s390/zcore: copy vector registers into the image data
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 15 Oct 2015 09:14:19 +0000 (11:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Nov 2015 08:24:11 +0000 (09:24 +0100)
commitbbfed511c262db4d046a35f0389d98645124814f
tree86ae49acd04af16d2d44337cce954aefd35712c8
parent4c5b03b60762bbe6b129b648e845f7faa5933f61
s390/zcore: copy vector registers into the image data

The /sys/kernel/debug/zcore/mem interface delivers the memory of the
old system with the CPU registers stored to the assigned locations in
each prefix page.

For the vector registers the prefix page of each CPU has an address of
a 1024 byte save area at 0x11b0. But the /sys/kernel/debug/zcore/mem
interface fails copy the vector registers saved at boot of the zfcpdump
kernel into the dump image.

Copy the saved vector registers of a CPU to the outout buffer if the
memory area that is read via /sys/kernel/debug/zcore/mem intersects
with the vector register save area of this CPU.

Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/lowcore.h
drivers/s390/char/zcore.c