Source-Changes-HG archive

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

[src/cherry-xenmp]: src/sys/arch/xen/x86 Add xpq locking around xpq_queue_tlb...



details:   https://anonhg.NetBSD.org/src/rev/b07b38795f49
branches:  cherry-xenmp
changeset: 765616:b07b38795f49
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Jun 27 10:23:21 2011 +0000

description:
Add xpq locking around xpq_queue_tlb_flush()

diffstat:

 sys/arch/xen/x86/x86_xpmap.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r cfc5cc3a6ed8 -r b07b38795f49 sys/arch/xen/x86/x86_xpmap.c
--- a/sys/arch/xen/x86/x86_xpmap.c      Mon Jun 27 10:21:52 2011 +0000
+++ b/sys/arch/xen/x86/x86_xpmap.c      Mon Jun 27 10:23:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_xpmap.c,v 1.26.2.2 2011/06/23 14:19:50 cherry Exp $        */
+/*     $NetBSD: x86_xpmap.c,v 1.26.2.3 2011/06/27 10:23:21 cherry Exp $        */
 
 /*
  * Copyright (c) 2006 Mathieu Ropert <mro%adviseo.fr@localhost>
@@ -69,7 +69,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.26.2.2 2011/06/23 14:19:50 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.26.2.3 2011/06/27 10:23:21 cherry Exp $");
 
 #include "opt_xen.h"
 #include "opt_ddb.h"
@@ -658,7 +658,9 @@
            (UPAGES + 1) * NBPG);
 
        /* Finally, flush TLB. */
+       xpq_queue_lock();
        xpq_queue_tlb_flush();
+       xpq_queue_unlock();
 
        return (init_tables + ((count + l2_4_count) * PAGE_SIZE));
 }



Home | Main Index | Thread Index | Old Index