* How could Xen know a certain GuestOS have already shutdown?
@ 2012-09-21 3:23 Bruce Granger
2012-09-21 8:06 ` Keir Fraser
2012-09-24 13:12 ` Bruce Granger
0 siblings, 2 replies; 5+ messages in thread
From: Bruce Granger @ 2012-09-21 3:23 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 919 bytes --]
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: 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 at Nabble.com.
[-- Attachment #1.2: Type: text/html, Size: 1120 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How could Xen know a certain GuestOS have already shutdown?
2012-09-21 3:23 Bruce Granger
@ 2012-09-21 8:06 ` Keir Fraser
2012-09-24 13:12 ` Bruce Granger
1 sibling, 0 replies; 5+ messages in thread
From: Keir Fraser @ 2012-09-21 8:06 UTC (permalink / raw)
To: Bruce Granger, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1579 bytes --]
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@yeah.net> 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-al
> ready-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@lists.xen.org
> http://lists.xen.org/xen-devel
[-- Attachment #1.2: Type: text/html, Size: 2471 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How could Xen know a certain GuestOS have already shutdown?
2012-09-21 3:23 Bruce Granger
2012-09-21 8:06 ` Keir Fraser
@ 2012-09-24 13:12 ` Bruce Granger
1 sibling, 0 replies; 5+ messages in thread
From: Bruce Granger @ 2012-09-24 13:12 UTC (permalink / raw)
To: xen-devel
It's my honor to receive your answer! Thanks very much!
I have learned much more under your guidance,but I still have a little
question!
I've traced the VIRQ_DOM_EXC which send from Xen to Dom0 and picked up by
xenstored which fires the @releaseDomain watch when a GuestOS start to
shutdown.
Here, I still have two questions.
First, I haven't found anything useful in the archives about 'releaseDomain
watch'.What is the called '@releaseDomain' ? what's the use of it?
Second,I think that VIRQ_DOM_EXC is the signal used for communicate between
hypervisor and Dom0. I talked that with my parterner, we think that when
shutdown occurs, GuestOS will first get in touch with hypervisor ,then cause
the communication between Xen and Dom0 by VIRQ_DOM_EXC,is that right? What
we also want to know is when shutdown operation occurs in GuestOS, how
GuestOS communicate with the hypervisor first? Is there any signal or
somehow event delivery?
Could you tell me more about that?
Thanks a lot!
--
View this message in context: http://xen.1045712.n5.nabble.com/Xen-devel-How-could-Xen-know-a-certain-GuestOS-have-already-shutdown-tp5711421p5711476.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How could Xen know a certain GuestOS have already shutdown?
@ 2012-09-24 17:09 Bruce Granger
2012-09-25 8:22 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Granger @ 2012-09-24 17:09 UTC (permalink / raw)
To: xen-devel
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?
I've traced the VIRQ_DOM_EXC which send from Xen to Dom0 and picked up by
xenstored which fires the @releaseDomain watch when a GuestOS start to
shutdown.
Here, I still have two questions.
First, I haven't found anything useful in the archives about 'releaseDomain
watch'.What is the called '@releaseDomain' ? what's the use of it?
Second,I think that VIRQ_DOM_EXC is the signal used for communicate between
hypervisor and Dom0. I talked that with my parterner, we think that when
shutdown occurs, GuestOS will first get in touch with hypervisor ,then cause
the communication between Xen and Dom0 by VIRQ_DOM_EXC,is that right? What
we also want to know is when shutdown operation occurs in GuestOS, how
GuestOS communicate with the hypervisor first? Is there any signal or
somehow event delivery?
Could anyone tell me more about that?
It's my honor to get all your support! Thanks very much!
--
View this message in context: http://xen.1045712.n5.nabble.com/Re-Xen-devel-How-could-Xen-know-a-certain-GuestOS-have-already-shutdown-tp5711480.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How could Xen know a certain GuestOS have already shutdown?
2012-09-24 17:09 How could Xen know a certain GuestOS have already shutdown? Bruce Granger
@ 2012-09-25 8:22 ` Ian Campbell
0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2012-09-25 8:22 UTC (permalink / raw)
To: Bruce Granger; +Cc: xen-devel@lists.xensource.com
On Mon, 2012-09-24 at 18:09 +0100, Bruce Granger 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?
>
> I've traced the VIRQ_DOM_EXC which send from Xen to Dom0 and picked up by
> xenstored which fires the @releaseDomain watch when a GuestOS start to
> shutdown.
>
> Here, I still have two questions.
> First, I haven't found anything useful in the archives about 'releaseDomain
> watch'.What is the called '@releaseDomain' ? what's the use of it?
Have you grepped in the actual code?
> Second,I think that VIRQ_DOM_EXC is the signal used for communicate between
> hypervisor and Dom0. I talked that with my parterner, we think that when
> shutdown occurs, GuestOS will first get in touch with hypervisor ,then cause
> the communication between Xen and Dom0 by VIRQ_DOM_EXC,is that right? What
> we also want to know is when shutdown operation occurs in GuestOS, how
> GuestOS communicate with the hypervisor first? Is there any signal or
> somehow event delivery?
I covered this in my reply to you on Friday See Message-ID:
<1348214879.26501.68.camel@zakaz.uk.xensource.com>
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-25 8:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 17:09 How could Xen know a certain GuestOS have already shutdown? Bruce Granger
2012-09-25 8:22 ` Ian Campbell
-- strict thread matches above, loose matches on Subject: below --
2012-09-21 3:23 Bruce Granger
2012-09-21 8:06 ` Keir Fraser
2012-09-24 13:12 ` Bruce Granger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).