dump: Update correct kdump phys_base field for AArch64
commit68cbecfdd7afbfdf9cb06a87a2a297e8a6add7d7
authorWei Huang <wei@redhat.com>
Fri, 9 Mar 2018 17:03:23 +0000 (9 12:03 -0500)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 19 Mar 2018 18:23:24 +0000 (19 18:23 +0000)
treeda1cccbf7d88c589e93028467efa51430e63a947
parent6461d7e2678fe4a71c257da85136c0e776dfd94c
dump: Update correct kdump phys_base field for AArch64

For guest kernel that supports KASLR, the load address can change every
time when guest VM runs. To find the physical base address correctly,
current QEMU dump searches VMCOREINFO for the string "NUMBER(phys_base)=".
However this string pattern is only available on x86_64. AArch64 uses a
different field, called "NUMBER(PHYS_OFFSET)=". This patch makes sure
QEMU dump uses the correct string on AArch64.

Signed-off-by: Wei Huang <wei@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1520615003-20869-1-git-send-email-wei@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
dump.c