Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Flush the host TLB too when dealing with a ...



details:   https://anonhg.NetBSD.org/src/rev/e5237878911c
branches:  trunk
changeset: 838189:e5237878911c
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jan 06 16:19:12 2019 +0000

description:
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.

diffstat:

 sys/arch/x86/x86/x86_tlb.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r a0e2095cd11c -r e5237878911c sys/arch/x86/x86/x86_tlb.c
--- a/sys/arch/x86/x86/x86_tlb.c        Sun Jan 06 16:13:51 2019 +0000
+++ b/sys/arch/x86/x86/x86_tlb.c        Sun Jan 06 16:19:12 2019 +0000
@@ -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 @@
 
        if (__predict_false(pm->pm_tlb_flush != NULL)) {
                (*pm->pm_tlb_flush)(pm);
-               return;
        }
 
        /*



Home | Main Index | Thread Index | Old Index