From: NAHieu Subject: Re: @introduceDomain with xenbus? Date: Fri, 7 Oct 2005 01:01:30 +0900 Message-ID: <5d7aca950510060901t3fd2ca07g3d943b86e86e1ee6@mail.gmail.com> References: <5d7aca950510060634x3a71bed9mc75799201a0ad554@mail.gmail.com> <43453EA9.70808@us.ibm.com> Reply-To: NAHieu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <43453EA9.70808@us.ibm.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Liguori Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 10/7/05, Anthony Liguori 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=3D=3D"@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