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

Re: [Xen-devel] How could Xen know a certain GuestOS have already shutdown?


  • To: Bruce Granger <vivagin@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Fri, 21 Sep 2012 09:06:01 +0100
  • Delivery-date: Fri, 21 Sep 2012 08:06:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac2Xz/BYEJaj608tuk2hNL5N4kXntQ==
  • Thread-topic: [Xen-devel] How could Xen know a certain GuestOS have already shutdown?

When the guest shuts down, Xen sends VIRQ_DOM0_EXC to dom0. This is picked up by xenstored which fires the @releaseDomain watch. Anyone in dom0 can register on that watch. Or see libxl__domaindeathcheck_* functions in libxl/libxl_event.c for another method to pick up on domain shutdowns.

 -- Keir


On 21/09/2012 04:23, "Bruce Granger" <vivagin@xxxxxxxx> wrote:

Hi everyone! This is probably a familiar problem, but I haven't found anything in the archives or from google yet. I also talked with my parterners but we haven't got a sure conclusion. Recently I’m caring about a question about shutdown operation:  When we shutdown a GuestOS by giving the command in its terminal, how can hypervisor get to know that this GuestOS is about to shutdown and How can hypervisor know that GuestOS has already done the work of shutdown?   In other word, is there any signal or something else that GuestOS deliver to hypervisor to notice that it will shutdown or it has accomplished its shutdown work?  Does anyone know the detailed process? Thanks for your help!

View this message in context: How could Xen know a certain GuestOS have already shutdown? <http://xen.1045712.n5.nabble.com/How-could-Xen-know-a-certain-GuestOS-have-already-shutdown-tp5711421.html> Sent from the Xen - Dev mailing list archive <http://xen.1045712.n5.nabble.com/Xen-Dev-f2473738.html>  at Nabble.com.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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