This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] Re: [RFC PATCH 26/35] Add Xen subarch reboot support

On 22 Mar 2006, at 10:39, Arjan van de Ven wrote:

The intent is to allow remote management tools to trigger a clean
shutdown of the virtual machine. That requires us to notify to
userspace, and this function does that by exec'ing one of the standard
userspace programs. Given the trigger is received by the kernel in the
first instance I don't know a better way of doing this. And if this is
the best way, I don't think there is generic code in the kernel which
does the same thing.

well this isn't really different from the normal ctrl-alt-delete right?
I would strongly suggest to follow the normal ctrl-alt-del path.. that
follows the normal convention sysadmins are used to.
It's not "/sbin/poweroff" fwiw... at least not hardcoded. Following the
normal ctrl-alt-del codepath gets all the policy out of this kind of
thing as well..

Hmm... that will work okay for reboot, where SIGINT to init is probably a better strategy than what we do now. But we'd still need something special for halt/shutdown. We followed the same principle for this as sparc64/kernel/power.c.

 -- Keir

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>