Module Name: src
Committed By: maxv
Date: Sun Jan 6 16:19:12 UTC 2019
Modified Files:
src/sys/arch/x86/x86: x86_tlb.c
Log Message:
Flush the host TLB too when dealing with a guest pmap. The pmap is not
active on the host so the pages aren't cached; but the recursive PTE
entries may have been cached by our pmap code.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/x86/x86_tlb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/x86_tlb.c
diff -u src/sys/arch/x86/x86/x86_tlb.c:1.3 src/sys/arch/x86/x86/x86_tlb.c:1.4
--- src/sys/arch/x86/x86/x86_tlb.c:1.3 Wed Nov 7 07:14:51 2018
+++ src/sys/arch/x86/x86/x86_tlb.c Sun Jan 6 16:19:12 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: x86_tlb.c,v 1.3 2018/11/07 07:14:51 maxv Exp $ */
+/* $NetBSD: x86_tlb.c,v 1.4 2019/01/06 16:19:12 maxv Exp $ */
/*-
* Copyright (c) 2008-2012 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.3 2018/11/07 07:14:51 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.4 2019/01/06 16:19:12 maxv Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -229,7 +229,6 @@ pmap_tlb_shootdown(struct pmap *pm, vadd
if (__predict_false(pm->pm_tlb_flush != NULL)) {
(*pm->pm_tlb_flush)(pm);
- return;
}
/*