WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Domain asking for its own destruction

To: Jacob Gorm Hansen <jacob@xxxxxxxx>
Subject: Re: [Xen-devel] Domain asking for its own destruction
From: "M.A. Williamson" <maw48@xxxxxxxxx>
Date: 07 Jan 2004 20:09:01 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 11 Jan 2004 17:55:21 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Reply-to: maw48@xxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
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

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