Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2026 20:53:23 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 842e271b7b8b - stable/15 - amd64 efirt: register all runtime regions as fictitious
Message-ID:  <6a5e8ac3.1e394.9793c1c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=842e271b7b8bf8a3bb039db57dce2107600ab883

commit 842e271b7b8bf8a3bb039db57dce2107600ab883
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-07-16 06:49:21 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-20 20:24:27 +0000

    amd64 efirt: register all runtime regions as fictitious
    
    PR:     296348
    
    (cherry picked from commit a2f50c4b32d1c126cf2309dab61d27d6329908f8)
---
 sys/amd64/amd64/efirt_machdep.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/amd64/amd64/efirt_machdep.c b/sys/amd64/amd64/efirt_machdep.c
index 203b2b264587..c7a207e81151 100644
--- a/sys/amd64/amd64/efirt_machdep.c
+++ b/sys/amd64/amd64/efirt_machdep.c
@@ -54,6 +54,7 @@
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pager.h>
+#include <vm/vm_phys.h>
 #include <vm/vm_radix.h>
 
 /* The EFI regions we're allowed to map. */
@@ -253,6 +254,8 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
 				    "attributes unsupported\n", i);
 			mode = VM_MEMATTR_UNCACHEABLE;
 		}
+		(void)vm_phys_fictitious_reg_range(p->md_phys, p->md_phys +
+		    p->md_pages * EFI_PAGE_SIZE, mode);
 		bits = pmap_cache_bits(kernel_pmap, mode, false) | X86_PG_RW |
 		    X86_PG_V;
 		VM_OBJECT_WLOCK(obj_1t1_pt);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a5e8ac3.1e394.9793c1c>