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 Fix a hard hang with Xen MP.



details:   https://anonhg.NetBSD.org/src/rev/8b2a6fe0c7ee
branches:  trunk
changeset: 465718:8b2a6fe0c7ee
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Dec 02 19:49:12 2019 +0000

description:
Fix a hard hang with Xen MP.

diffstat:

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

diffs (36 lines):

diff -r 1c76b7343f0b -r 8b2a6fe0c7ee sys/arch/x86/x86/x86_tlb.c
--- a/sys/arch/x86/x86/x86_tlb.c        Mon Dec 02 19:48:47 2019 +0000
+++ b/sys/arch/x86/x86/x86_tlb.c        Mon Dec 02 19:49:12 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_tlb.c,v 1.10 2019/11/22 20:04:03 ad Exp $  */
+/*     $NetBSD: x86_tlb.c,v 1.11 2019/12/02 19:49:12 ad Exp $  */
 
 /*-
  * Copyright (c) 2008-2019 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.10 2019/11/22 20:04:03 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.11 2019/12/02 19:49:12 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -309,6 +309,8 @@
 
        /* Remote CPUs have been synchronously flushed. */
        pmap_tlb_pendcount = 0;
+       pmap_tlb_packet = NULL;
+       tp->tp_done = 1;
 #endif /* MULTIPROCESSOR */
 }
 
@@ -437,7 +439,7 @@
         */
        pmap_tlb_pendcount = rcpucount;
        pmap_tlb_evcnt.ev_count++;
-       pmap_tlb_processpacket(tp, target);
+       pmap_tlb_processpacket(&ts.ts_tp, target);
 
        /*
         * Clear out the local CPU's buffer for the next user.  Once done,



Home | Main Index | Thread Index | Old Index