Module Name: src
Committed By: cherry
Date: Mon Jun 27 10:23:21 UTC 2011
Modified Files:
src/sys/arch/xen/x86 [cherry-xenmp]: x86_xpmap.c
Log Message:
Add xpq locking around xpq-QUEUE_TLB_FLUSH()
To generate a diff of this commit:
cvs rdiff -u -r1.26.2.2 -r1.26.2.3 src/sys/arch/xen/x86/x86_xpmap.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/xen/x86/x86_xpmap.c
diff -u src/sys/arch/xen/x86/x86_xpmap.c:1.26.2.2 src/sys/arch/xen/x86/x86_xpmap.c:1.26.2.3
--- src/sys/arch/xen/x86/x86_xpmap.c:1.26.2.2 Thu Jun 23 14:19:50 2011
+++ src/sys/arch/xen/x86/x86_xpmap.c Mon Jun 27 10:23:21 2011
@@ -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 <[email protected]>
@@ -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));
}