Date: Fri, 7 May 2021 00:43:39 GMT 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: af861a369e4e - stable/13 - amd64: invalidate TLB between page table update and access Message-ID: <202105070043.1470hdsK052671@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=af861a369e4ec7ea02d0f6611efd84d10b4b103e commit af861a369e4ec7ea02d0f6611efd84d10b4b103e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-04-16 18:28:08 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-05-07 00:35:54 +0000 amd64: invalidate TLB between page table update and access (cherry picked from commit 21fc6a2a10cf6fbd294decbb0001473693ec1618) --- sys/amd64/amd64/pmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 1fb81384f11e..01644b9661af 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2102,6 +2102,7 @@ pmap_bootstrap_la57(void *arg __unused) *(u_long *)(v_code + 2 + (la57_trampoline_gdt_desc - la57_trampoline)) = la57_trampoline_gdt - la57_trampoline + VM_PAGE_TO_PHYS(m_code); la57_tramp = (void (*)(uint64_t))VM_PAGE_TO_PHYS(m_code); + invlpg((vm_offset_t)la57_tramp); la57_tramp(KPML5phys); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105070043.1470hdsK052671>