when shutting down a xen domain, patch by John Levon
Daniel
+Thu Sep 4 11:05:59 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+ * src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
+ when shutting down a xen domain, patch by John Levon
+
Thu Sep 4 10:13:43 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: switch flags to unsigned by James Morris
}
if (domain->id < 0)
return(-1);
- return xend_op(domain->conn, domain->name, "op", "shutdown", "reason", "halt", NULL);
+ return xend_op(domain->conn, domain->name, "op", "shutdown", "reason", "poweroff", NULL);
}
/**
* this is very hackish, the domU kernel probes for a special
* node in the xenstore and launch the shutdown command if found.
*/
- return(virDomainDoStoreWrite(domain, "control/shutdown", "halt"));
+ return(virDomainDoStoreWrite(domain, "control/shutdown", "poweroff"));
}
/**