From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: How could Xen know a certain GuestOS have already shutdown? Date: Fri, 21 Sep 2012 09:06:01 +0100 Message-ID: References: <1348197814609-5711421.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7816328326419399765==" Return-path: In-Reply-To: <1348197814609-5711421.post@n5.nabble.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Bruce Granger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============7816328326419399765== Content-type: multipart/alternative; boundary="B_3431063163_71240419" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3431063163_71240419 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable 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" wrote: > Hi everyone! This is probably a familiar problem, but I haven't found any= thing > in the archives or from google yet. I also talked with my parterners but = we > haven't got a sure conclusion. Recently I=B9m 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 wo= rk of > shutdown? In other word, is there any signal or something else that Gue= stOS > deliver to hypervisor to notice that it will shutdown or it has accomplis= hed > its shutdown work? Does anyone know the detailed process? Thanks for you= r > help!=20 >=20 > View this message in context: How could Xen know a certain GuestOS have > already shutdown? > ready-shutdown-tp5711421.html> Sent from the Xen - Dev mailing list archi= ve > at Nabble.com. >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel --B_3431063163_71240419 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] How could Xen know a certain GuestOS have already sh= utdown? 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 re= gister on that watch. Or see libxl__domaindeathcheck_* functions in libxl/li= bxl_event.c for another method to pick up on domain shutdowns.

 -- Keir


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

<= SPAN STYLE=3D'font-size:11pt'>Hi everyone! This is probably a familiar problem= , but I haven't found anything in the archives or from google yet. I also ta= lked with my parterners but we haven't got a sure conclusion. Recently IR= 17;m caring about a question about shutdown operation:  When we shutdow= n 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 tha= t 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-ce= rtain-GuestOS-have-already-shutdown-tp5711421.html> Sent from the Xen= - Dev mailing list archive <http://xen.1045712.n5.nabble.com/Xen-Dev-f2473738.html<= /a>>  at Nabble.com.

___________= ____________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel=
--B_3431063163_71240419-- --===============7816328326419399765== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============7816328326419399765==--