WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Notification on a domU creation and a XenBus watch quest

To: "Ben Guthro" <bguthro@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Notification on a domU creation and a XenBus watch question
From: "ashutosh mehra" <ashutosh.xen@xxxxxxxxx>
Date: Fri, 9 Nov 2007 01:44:21 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 08 Nov 2007 12:15:08 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=3cWkNQQ7zSiyZ05E1JKsHH5Y3qPTrpVLtm2L4hAP8CA=; b=qtBcEEHqmBjie9md871bu+dHN60vlBhGEbIB7+s0/PP+UCCtfN8+JE2YOagMw22zdIVItTWc9dwgCO6fW/0/caIcQGV0b12oNvQYoY4WQkWcwDkXm8Rcg6V+Kne9vf9538m35kFpREho6W4YlANiNUz1Q5GeZe2iYdqRuW/9fqo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=oG8n1Kkf3BBKDEN+jpkl5aIyYO4/LL9mEcpIQ/UC3H8v6cqPO43oV5Iqrfd/Ke7AGBTBpkfLOnMedIc3dYdOx8t3iXTXJ7Yf8OLn7SLsSfTSyf2ZEcuhc9CS0o4hkHlrIRiMsPLR5HD9YXsrBzr1J6dxU/CeK1a2G6xj77CXXVI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47320E96.1030702@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <bb4253730711071109g171bc2d1vb932365514002aee@xxxxxxxxxxxxxx> <47320E96.1030702@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx> 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 list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>