On 2017/3/17 22:25, Dave Anderson wrote:
----- Original Message -----
> However, that is why I am interested in your live system initialization
> of kimage_voffset -- for live system access using /dev/mem, /proc/kcore,
> or an older version of the /dev/crash driver that did not have the ioctl()
> to read kimage_voffset. But, in order to do that, arm64_calc_kimage_voffset()
> needs to be able to handle all /proc/iomem cases to correctly calculate
> PHYS_OFFSET.
Or better stated, your arm64_calc_kimage_voffset() needs to be able to handle all
/proc/iomem cases to correctly calculate kimage_voffset. Because on the 4.8
kernel, it does not work.
Dave
--
Crash-utility mailing list
Crash-utility(a)redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility Dave,
Sorry for my misunderstanding of PHYS_OFFSET, actually kimage_voffset
is the offset between kernel virtual address and physical address. So,
to calculate it need find out which physical address is mapping to
VA_START, not PHYS_OFFSET.
Please check patch v5, it should be OK for live system.
Thanks,
Yueyi