git: 678bc2281c37 - main - la57: do not set global bit for PML5 entry
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Sep 2024 08:15:11 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=678bc2281c3727e920604545240d9115de3d1bd3
commit 678bc2281c3727e920604545240d9115de3d1bd3
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-14 17:15:51 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-16 08:13:51 +0000
la57: do not set global bit for PML5 entry
The bit is reserved for PLM5, causing #PF on KVA access on real
hardware, unlike QEMU.
Sponsored by: Advanced Micro Devices (AMD)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/amd64/amd64/pmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index b513c0c9c957..eadcb726b6c2 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -2226,7 +2226,7 @@ pmap_bootstrap_la57(void *arg __unused)
* entering all existing kernel mappings into level 5 table.
*/
v_pml5[pmap_pml5e_index(UPT_MAX_ADDRESS)] = KPML4phys | X86_PG_V |
- X86_PG_RW | X86_PG_A | X86_PG_M | pg_g;
+ X86_PG_RW | X86_PG_A | X86_PG_M;
/*
* Add pml5 entry for 1:1 trampoline mapping after LA57 is turned on.