svn commit: r237553 - stable/8/sys/dev/xen/balloon

Fabien Thomas fabient at FreeBSD.org
Mon Jun 25 07:29:14 UTC 2012


Author: fabient
Date: Mon Jun 25 07:29:14 2012
New Revision: 237553
URL: http://svn.freebsd.org/changeset/base/237553

Log:
  MFC r237322:
  Allow booting XENHVM kernel without Xen hypervisor.

Modified:
  stable/8/sys/dev/xen/balloon/balloon.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/dev/xen/balloon/balloon.c
==============================================================================
--- stable/8/sys/dev/xen/balloon/balloon.c	Mon Jun 25 07:27:31 2012	(r237552)
+++ stable/8/sys/dev/xen/balloon/balloon.c	Mon Jun 25 07:29:14 2012	(r237553)
@@ -437,6 +437,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-stable-8 mailing list