Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86_64: calculate page_offset in case of re-filtering/sadump/virsh dump
we do not call get_elf_info() in case of refiltering and sadump. Therefore, we will not have any pt_load in that case, and so we get: get_page_offset_x86_64: Can't get any pt_load to calculate page offset. However, we will have vmcoreinfo and vmlinux information in case of re-filtering. So, we are able to find kaslr offset and we can get page_offset_base address. Thus we can read the page offset as well. If kaslr is not enabled and also we do not have valid PT_LOAD to calculate page offset then use old method to find fixed page offset. In case of virsh dump virtual addresses in PT_LOAD are 0. Ignore such addresses for the page_offset calculation. Suggested-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> Signed-off-by: Pratyush Anand <panand@redhat.com>
- Loading branch information