hi, is it possible for a domain != 0 to ask for its own destruction? Jacob ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
M.A. Williamson
2004-Jan-07 20:09 UTC
Re: [Xen-devel] Domain asking for its own destruction
Indeed it is - XenoLinux does this when it shuts down. The domain in question does a SCHED_OP_exit scheduler operation using a hypercall and Xen destroys the domain. For an example of this being done in XenoLinux see HYPERVISOR_exit() in source/include/asm-xeno/hypervisor.h - this function is called by machine_restart(), machine_halt() and machine_poweroff() in source/arch/xeno/kernel/process.c, when the virtual machine is shut down. On the Xen side of things, the hypercall is demuxed (in source/xen/arch/i386/entry.S), resulting in a call to do_sched_op() (in source/xen/common/schedule.c), which in turn calls kill_domain(), which results in various functions being called which do the business of killing the current domain. HTH. Mark On Jan 7 2004, Jacob Gorm Hansen wrote:> hi, > > is it possible for a domain != 0 to ask for its own destruction? > > Jacob > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel >------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> hi, > > is it possible for a domain != 0 to ask for its own destruction? > > JacobNot yet. We''ll soon have shared comms rings between each guest and domain-0, which can then be used to "proxy" such requests to the existing DOM0 control interface. -- Keir ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > hi, > > > > is it possible for a domain != 0 to ask for its own destruction? > > > > Jacob > > Not yet. We''ll soon have shared comms rings between each guest and > domain-0, which can then be used to "proxy" such requests to the > existing DOM0 control interface.Whoops. Actually a domain can request destruction -- that''s what the HYPERVISOR_exit() hypercall is for! It''s the preferred way to terminate a domain because it allows the guest OS to clean up first. -- Keir ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel