]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
plat/kvm/x86: Use `ur_pte` for the first page table
authorSergiu Moga <sergiu@unikraft.io>
Sat, 14 Oct 2023 09:15:02 +0000 (12:15 +0300)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
After commit f57ca0bbc402 ("plat/kvm/x86: Make zero page inaccessible"),
UEFI builds would fail to run due to the first page table becoming
unrelocatable.

Therefore, fix this by using the `ur_pte` variant of the `pte` macro.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1135

plat/kvm/x86/pagetable64.S

index 80d6f81253860d12835674c49579988e1f93cb3a..47983acc6e0109c49f192ca75cb9d9adb4685456 100644 (file)
@@ -143,7 +143,7 @@ x86_bpt_pt0_0_0: /* 4K pages */
 
 .align 0x1000
 x86_bpt_pd0_0: /* 2M pages */
-       pte x86_bpt_pt0_0_0, PTE_RW
+       ur_pte x86_bpt_pt0_0_0, PTE_RW
        pte_fill 0x0000000000200000, 0x1ff, PD_LVL, PTE_RW
 
 x86_bpt_pd0_1: /* 2M pages */