Skip to contentSkip to conversation

@introduceDomain with xenbus?

DISCUSSION NAHieu 2 participants 3 messages Oct 6, 2005

lore
Share & tools
lore

NAHieu

author
#0 lore raw

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

#1 lore raw
Quoted 6 lines · NAHieu

Hi,

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

Quoted 7 lines

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

Quoted 10 lines

Many Thanks.
Hieu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#2 lore raw
Quoted 10 lines · Anthony Liguori
Quoted 8 lines · NAHieu

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)

Quoted 9 lines
Quoted 5 lines

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