Module Name:    src
Committed By:   cherry
Date:           Thu Jul  8 14:51:14 UTC 2010

Modified Files:
        src/sys/arch/xen/xen: balloon.c

Log Message:
Provide the sysctl(7) interface to the balloon driver only to dom0


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/xen/xen/balloon.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/xen/balloon.c
diff -u src/sys/arch/xen/xen/balloon.c:1.2 src/sys/arch/xen/xen/balloon.c:1.3
--- src/sys/arch/xen/xen/balloon.c:1.2	Thu Jul  8 14:19:53 2010
+++ src/sys/arch/xen/xen/balloon.c	Thu Jul  8 14:51:14 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: balloon.c,v 1.2 2010/07/08 14:19:53 cherry Exp $ */
+/* $NetBSD: balloon.c,v 1.3 2010/07/08 14:51:14 cherry Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.2 2010/07/08 14:19:53 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.3 2010/07/08 14:51:14 cherry Exp $");
 
 #include <sys/inttypes.h>
 #include <sys/param.h>
@@ -755,6 +755,7 @@
 
 }
 
+#if DOM0OPS
 
 /* 
  * sysctl(9) stuff 
@@ -886,3 +887,5 @@
 	    sysctl_kern_xen_balloon, 0, &sysctl_target, 0,
 	    CTL_CREATE, CTL_EOL);
 }
+
+#endif /* DOM0OPS */

Reply via email to