x86: MMU: Fix PAE page directory permissions
Do not set XD at page directory level - some leaf PTE may have it
cleared.
Fixes: d1703691c847 ("x86: MMU: Generation of PAE tables")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
diff --git a/scripts/gen_mmu.py b/scripts/gen_mmu.py
index 6fb2701..3bc9316 100755
--- a/scripts/gen_mmu.py
+++ b/scripts/gen_mmu.py
@@ -543,7 +543,7 @@
a = PAGE_ENTRY_ACCESSED
ps = 0 << 7 # set to make sure that the phy page is 4KB
page_table = self.address_of_page_table(pdpte, value.pde_index) << 12
- xd = check_bits(perms, [62, 63]) << 63
+ xd = 0
return (present |
read_write |
user_mode |