[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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@xxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.