[PATCH v2 4/6] x86_64.c: Add the VMEMMAP support for 5 level page table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Append the "VMEMMAP" flag to machdep's flags too.

Signed-off-by: Dou Liyang <douly.fnst@xxxxxxxxxxxxxx>
---
 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



--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility



[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux