Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] How to validate this patch
@ 2018-05-11  6:00 Yanjiang Jin
  2018-05-11  6:00 ` [PATCH] arm64: update PHYS_OFFSET to conform to kernel Yanjiang Jin
  0 siblings, 1 reply; 14+ messages in thread
From: Yanjiang Jin @ 2018-05-11  6:00 UTC (permalink / raw)
  To: kexec; +Cc: yanjiang.jin, jinyanjiang, horms

I have a arm64 system, I can find the virtural memory layout during booting:

Virtual kernel memory layout:
.............................
    memory  : 0xffff800000200000 - 0xffff801800000000   ( 98302 MB)

Then I can read the elf_info in vmcore:

readelf -l vmcore

Program Headers:
Type Offset             VirtAddr           PhysAddr            FileSize
...............................................................................

LOAD 0x0000000076d40000 0xffff80017fe00000 0x0000000180000000 0x0000001680000000

The end of vmcore's VirtAddr is

(0xffff80017fe00000 + 0x0000001680000000) = 0xFFFF8017FFE00000

The end of vmlinux's VirtAddr is

0xffff801800000000

They have 0x20000 offset.

If we use vmcore-dmesg to read the log_buf from vmcore, we would get
the below error:

vmcore-dmesg vmcore

"No program header covering vaddr 0xffff8017ffe90000 found kexec bug?"

Since on my system, log_buf is in 0xffff8017ffe90000, it exceeds the end
of vmcore VirtAddr.

With my patch, vmcore-dmesg can read all dmesg info happily.

Yanjiang Jin (1):
  arm64: update PHYS_OFFSET to conform to kernel

 kexec/arch/arm64/kexec-arm64.c | 100 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 100 insertions(+)

--
1.8.3.1




This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.



_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-05-31  1:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-11  6:00 [PATCH] How to validate this patch Yanjiang Jin
2018-05-11  6:00 ` [PATCH] arm64: update PHYS_OFFSET to conform to kernel Yanjiang Jin
2018-05-24  7:28   ` Baoquan He
2018-05-25  9:45   ` Bhupesh Sharma
2018-05-28  3:01     ` Jin, Yanjiang
2018-05-29 15:03   ` Pratyush Anand
2018-05-30  3:03     ` Jin, Yanjiang
2018-05-30  4:16       ` Pratyush Anand
2018-05-30  4:49         ` Jin, Yanjiang
2018-05-30  7:39         ` Jin, Yanjiang
2018-05-30  8:39           ` Bhupesh Sharma
2018-05-30 10:20             ` Jin, Yanjiang
2018-05-30 15:56               ` Bhupesh Sharma
2018-05-31  1:50                 ` [此邮件可能存在风险] " Jin, Yanjiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox