[Crash-utility] [PATCH 4/5] x86_64.c: Add the VMEMMAP support for 5 level page table
Dou Liyang
douly.fnst at cn.fujitsu.com
Thu Jan 11 07:31:25 UTC 2018
Append the "VMEMMAP" flag to machdep's flags too.
Signed-off-by: Dou Liyang <douly.fnst at cn.fujitsu.com>
---
x86_64.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/x86_64.c b/x86_64.c
index 0f2e24a..8914830 100644
--- a/x86_64.c
+++ b/x86_64.c
@@ -294,6 +294,8 @@ x86_64_init(int when)
machdep->machspec->modules_end = MODULES_END_5LEVEL;
machdep->machspec->vmemmap_vaddr = VMEMMAP_VADDR_5LEVEL;
machdep->machspec->vmemmap_end = VMEMMAP_END_5LEVEL;
+ if (symbol_exists("vmemmap_populate"))
+ machdep->flags |= VMEMMAP;
machdep->machspec->physical_mask_shift = __PHYSICAL_MASK_SHIFT_5LEVEL;
machdep->machspec->pgdir_shift = PGDIR_SHIFT_5LEVEL;
machdep->machspec->ptrs_per_pgd = PTRS_PER_PGD_5LEVEL;
--
2.14.3
More information about the Crash-utility
mailing list