* Notification on a domU creation and a XenBus watch question
@ 2007-11-07 19:09 ashutosh mehra
2007-11-07 19:14 ` Ben Guthro
2007-12-03 3:11 ` Mark Williamson
0 siblings, 2 replies; 4+ messages in thread
From: ashutosh mehra @ 2007-11-07 19:09 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]
Hi,
I am writing a module for dom0 which needs to be notified when a domain is
created/destroyed. Is that possible? And is it possible to add a watch on
all /local/domain/<id>/path/key without specifying the domain ID? I mean the
watch should be on all /path/key of the currently executing domains. Does
XenBus support this or will I have to individually add a watch on all
/local/domain/<id>/path/keys?
Regards,
Ashutosh
[-- Attachment #1.2: Type: text/html, Size: 466 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Notification on a domU creation and a XenBus watch question
2007-11-07 19:09 Notification on a domU creation and a XenBus watch question ashutosh mehra
@ 2007-11-07 19:14 ` Ben Guthro
2007-11-08 20:14 ` ashutosh mehra
2007-12-03 3:11 ` Mark Williamson
1 sibling, 1 reply; 4+ messages in thread
From: Ben Guthro @ 2007-11-07 19:14 UTC (permalink / raw)
To: ashutosh mehra; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 877 bytes --]
You should be able to put a watch on the special path of
"@introduceDomain" and
"@releaseDomain"
to catch cases of doman construction / descruction.
Hope that helps
Ben
ashutosh mehra wrote:
> Hi,
>
> I am writing a module for dom0 which needs to be notified when a
> domain is created/destroyed. Is that possible? And is it possible to
> add a watch on all /local/domain/<id>/path/key without specifying the
> domain ID? I mean the watch should be on all /path/key of the
> currently executing domains. Does XenBus support this or will I have
> to individually add a watch on all /local/domain/<id>/path/keys?
>
>
> Regards,
> Ashutosh
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
[-- Attachment #1.2: Type: text/html, Size: 1408 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Notification on a domU creation and a XenBus watch question
2007-11-07 19:14 ` Ben Guthro
@ 2007-11-08 20:14 ` ashutosh mehra
0 siblings, 0 replies; 4+ messages in thread
From: ashutosh mehra @ 2007-11-08 20:14 UTC (permalink / raw)
To: Ben Guthro; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1330 bytes --]
Hi,
Thanks, that worked! Where are these documented? :) Now how do I iterate
over the domains? for_each_domain is defined in xen/sched.h, but when I try
to include it I get an error that there's no such file!
Also, can I add a "generic" watch on all /local/domain/*/path/key without
specifying the domain ID? Or will I have to individually add a watch on all
/local/domain/<id>/path/keys?
Thanks,
Ashutosh
On Nov 8, 2007 12:44 AM, Ben Guthro < bguthro@virtualiron.com> wrote:
> You should be able to put a watch on the special path of
>
> "@introduceDomain" and
> "@releaseDomain"
>
> to catch cases of doman construction / descruction.
>
> Hope that helps
>
> Ben
>
> ashutosh mehra wrote:
>
> Hi,
>
> I am writing a module for dom0 which needs to be notified when a domain is
> created/destroyed. Is that possible? And is it possible to add a watch on
> all /local/domain/<id>/path/key without specifying the domain ID? I mean the
> watch should be on all /path/key of the currently executing domains. Does
> XenBus support this or will I have to individually add a watch on all
> /local/domain/<id>/path/keys?
>
>
> Regards,
> Ashutosh
>
> ------------------------------
>
> _______________________________________________
> Xen-devel mailing listXen-devel@lists.xensource.comhttp://lists.xensource.com/xen-devel
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 1978 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Notification on a domU creation and a XenBus watch question
2007-11-07 19:09 Notification on a domU creation and a XenBus watch question ashutosh mehra
2007-11-07 19:14 ` Ben Guthro
@ 2007-12-03 3:11 ` Mark Williamson
1 sibling, 0 replies; 4+ messages in thread
From: Mark Williamson @ 2007-12-03 3:11 UTC (permalink / raw)
To: xen-devel; +Cc: ashutosh mehra
> I am writing a module for dom0 which needs to be notified when a domain is
> created/destroyed. Is that possible?
Do you mean a kernel module?
But yes, if you create the appropriate watches using the XenBus API I think
you should be able to get notifications. Or in userspace you can use C or
Python to register Xenbus watches.
> And is it possible to add a watch on
> all /local/domain/<id>/path/key without specifying the domain ID? I mean
> the watch should be on all /path/key of the currently executing domains.
> Does XenBus support this or will I have to individually add a watch on all
> /local/domain/<id>/path/keys?
As far as I know you'd need to register a watch on each path separately at the
moment...
In the future, I was thinking it might be nice to have a "/local/services/"
directory which everyone could watch and which domain could post
notifications in. e.g. if everyone is interested in the "foo" service, they
could watch /local/services/foo. If domain 5 wants to advertise this service
they'd post into "/local/services/foo/5/" to tell everyone about it. I've
never got round to implementing it but I'm curious whether this would suit
the application you have in mind?
Cheers,
Mark
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-03 3:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 19:09 Notification on a domU creation and a XenBus watch question ashutosh mehra
2007-11-07 19:14 ` Ben Guthro
2007-11-08 20:14 ` ashutosh mehra
2007-12-03 3:11 ` Mark Williamson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.