All of lore.kernel.org
 help / color / mirror / Atom feed
* @introduceDomain with xenbus?
@ 2005-10-06 13:34 NAHieu
  2005-10-06 15:11 ` Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: NAHieu @ 2005-10-06 13:34 UTC (permalink / raw)
  To: xen-devel

Hi,

I am writing a kernel module in dom0 to watch for @introduceDomain.
The callback procedure is prototyped as (registerd with
register_xenbus_watch()) :

static void new_domain(struct xenbus_watch *watch, const char *node)

In this callback, what we can get is node=="@introduceDomain"  when
the watch fired. Is that all we have? If I want to know which domain
(include domain-name and domid) caused this event, where to look for?

Many Thanks.
Hieu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: @introduceDomain with xenbus?
  2005-10-06 13:34 @introduceDomain with xenbus? NAHieu
@ 2005-10-06 15:11 ` Anthony Liguori
  2005-10-06 16:01   ` NAHieu
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2005-10-06 15:11 UTC (permalink / raw)
  To: NAHieu; +Cc: xen-devel

NAHieu wrote:

>Hi,
>
>I am writing a kernel module in dom0 to watch for @introduceDomain.
>The callback procedure is prototyped as (registerd with
>register_xenbus_watch()) :
>
>static void new_domain(struct xenbus_watch *watch, const char *node)
>
>In this callback, what we can get is node=="@introduceDomain"  when
>the watch fired. Is that all we have? If I want to know which domain
>(include domain-name and domid) caused this event, where to look for?
>  
>
I have a patch to extend the watches to include arbitrary data 
specifically so we can get the domain id for an 
@{introduce,release}Domain watch.

Just waiting for some feedback on it...

Regards,

Anthony Liguori

>Many Thanks.
>Hieu
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@lists.xensource.com
>http://lists.xensource.com/xen-devel
>
>  
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: @introduceDomain with xenbus?
  2005-10-06 15:11 ` Anthony Liguori
@ 2005-10-06 16:01   ` NAHieu
  0 siblings, 0 replies; 3+ messages in thread
From: NAHieu @ 2005-10-06 16:01 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: xen-devel

On 10/7/05, Anthony Liguori <aliguori@us.ibm.com> wrote:
> NAHieu wrote:
>
> >Hi,
> >
> >I am writing a kernel module in dom0 to watch for @introduceDomain.
> >The callback procedure is prototyped as (registerd with
> >register_xenbus_watch()) :
> >
> >static void new_domain(struct xenbus_watch *watch, const char *node)
> >
> >In this callback, what we can get is node=="@introduceDomain"  when
> >the watch fired. Is that all we have? If I want to know which domain
> >(include domain-name and domid) caused this event, where to look for?
> >
> >
> I have a patch to extend the watches to include arbitrary data
> specifically so we can get the domain id for an
> @{introduce,release}Domain watch.
>

Great. Otherwise I must enum for the domains myself.

Thanks.
Hieu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-06 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-06 13:34 @introduceDomain with xenbus? NAHieu
2005-10-06 15:11 ` Anthony Liguori
2005-10-06 16:01   ` NAHieu

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.