Module Name: src
Committed By: bouyer
Date: Thu Jan 19 22:04:05 UTC 2012
Modified Files:
src/sys/arch/xen/x86: xen_pmap.c
Log Message:
add a missing splvm()/splx() to protect the xpq queue.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/xen/x86/xen_pmap.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/xen_pmap.c
diff -u src/sys/arch/xen/x86/xen_pmap.c:1.13 src/sys/arch/xen/x86/xen_pmap.c:1.14
--- src/sys/arch/xen/x86/xen_pmap.c:1.13 Mon Jan 9 12:58:49 2012
+++ src/sys/arch/xen/x86/xen_pmap.c Thu Jan 19 22:04:05 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_pmap.c,v 1.13 2012/01/09 12:58:49 cherry Exp $ */
+/* $NetBSD: xen_pmap.c,v 1.14 2012/01/19 22:04:05 bouyer Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.13 2012/01/09 12:58:49 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.14 2012/01/19 22:04:05 bouyer Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -619,6 +619,7 @@ xen_kpm_sync(struct pmap *pmap, int inde
if (__predict_false(xpq_cpu != &x86_curcpu)) { /* Too early to xcall */
CPU_INFO_ITERATOR cii;
struct cpu_info *ci;
+ int s = splvm();
for (CPU_INFO_FOREACH(cii, ci)) {
if (ci == NULL) {
continue;
@@ -629,6 +630,7 @@ xen_kpm_sync(struct pmap *pmap, int inde
}
}
pmap_pte_flush();
+ splx(s);
return;
}