git: 5766c494ad69 - stable/13 - amd64 efirt: do not flush cache for runtime pages

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 10 Oct 2021 09:24:18 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=5766c494ad69cf814d33cfbb915ca1cd3892aa11

commit 5766c494ad69cf814d33cfbb915ca1cd3892aa11
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-05 14:14:11 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-10 09:21:18 +0000

    amd64 efirt: do not flush cache for runtime pages
    
    (cherry picked from commit ce21d4bff1bc7e562471eeab6fb012b35029bf50)
---
 sys/amd64/amd64/efirt_machdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/amd64/amd64/efirt_machdep.c b/sys/amd64/amd64/efirt_machdep.c
index 9f0fb00aa2ef..d819ff4f38bb 100644
--- a/sys/amd64/amd64/efirt_machdep.c
+++ b/sys/amd64/amd64/efirt_machdep.c
@@ -254,7 +254,7 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
 				vm_page_init_page(m, va, -1);
 				m->order = VM_NFREEORDER + 1; /* invalid */
 				m->pool = VM_NFREEPOOL + 1; /* invalid */
-				pmap_page_set_memattr(m, mode);
+				pmap_page_set_memattr_noflush(m, mode);
 			}
 		}
 		VM_OBJECT_WUNLOCK(obj_1t1_pt);