svn commit: r237322 - head/sys/dev/xen/balloon
Fabien Thomas
fabient at FreeBSD.org
Wed Jun 20 15:45:51 UTC 2012
Author: fabient
Date: Wed Jun 20 15:45:50 2012
New Revision: 237322
URL: http://svn.freebsd.org/changeset/base/237322
Log:
Allow booting XENHVM kernel without Xen hypervisor.
MFC after: 3 days
Modified:
head/sys/dev/xen/balloon/balloon.c
Modified: head/sys/dev/xen/balloon/balloon.c
==============================================================================
--- head/sys/dev/xen/balloon/balloon.c Wed Jun 20 15:12:31 2012 (r237321)
+++ head/sys/dev/xen/balloon/balloon.c Wed Jun 20 15:45:50 2012 (r237322)
@@ -436,6 +436,9 @@ balloon_init_watcher(void *arg)
{
int err;
+ if (!is_running_on_xen())
+ return;
+
err = xs_register_watch(&target_watch);
if (err)
printf("Failed to set balloon watcher\n");
More information about the svn-src-all
mailing list