pkgsrc/sysutils/xentools12/patches/patch-ab
cl 05e1952f64 add xentools12 package:
The Xen virtual machine monitor allows running several virtual machines
on a single physical machine.  The xentools12 package contains the
tools to create, destroy and control the virtual machines.

The xentools12 package contains the tools for Xen v1.2.
2004-05-08 18:24:00 +00:00

16 lines
465 B
Text

$NetBSD: patch-ab,v 1.1 2004/05/08 18:24:00 cl Exp $
--- balloon/balloon.c.orig 2004-04-18 04:29:13.000000000 +0200
+++ balloon/balloon.c
@@ -31,7 +31,11 @@ typedef struct user_balloon_op {
static int open_balloon_proc()
{
+#if defined(__linux__)
return open("/proc/xeno/balloon", O_RDWR);
+#elif defined(__NetBSD__)
+ return open("/kern/xen/balloon", O_RDWR);
+#endif
}
/* inflate balloon function signals to kernel it should relinquish memory */