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] xenstore documentation

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] xenstore documentation
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 04 Oct 2005 10:55:04 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Oct 2005 15:52:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30510040833x40d4e51dr55210d975e656a75@xxxxxxxxxxxxxx>
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: <e08041f30510031003p6c4911b8n22dbf10bd1a1997f@xxxxxxxxxxxxxx> <ae5426fb0510032327r4589aaerc4d279825dca0ad8@xxxxxxxxxxxxxx> <e08041f30510040520g53e96456xa7d93168fa8cdf90@xxxxxxxxxxxxxx> <1128429737.30221.12.camel@xxxxxxxxxxxxxxxxxxxxx> <1128430090.30221.16.camel@xxxxxxxxxxxxxxxxxxxxx> <e08041f30510040556i3c5eb9e3o1bbb5a2ba15d610a@xxxxxxxxxxxxxx> <1128431831.30221.24.camel@xxxxxxxxxxxxxxxxxxxxx> <e08041f30510040631j5eca8a81j1d3d67e40847b2f0@xxxxxxxxxxxxxx> <43429A1C.1090006@xxxxxxxxxx> <e08041f30510040833x40d4e51dr55210d975e656a75@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)
Jacob Gorm Hansen wrote:

Excellent, thank you!

One question: What (if anything) do I need to do to introduce dom0 and
xenstore to eachother?
After booting and before doing anything else (but after starting xenstore):

lstore = rstore = 0;
xc_evtchn_bind_interdomain(0, 0, &lstore, &rstore)
mfn_store = xc_init_store(rstore);
xs_mkdir("/tools/<yourtool>/domain/0")
xs_introduce_domain(0, mfn_store, lstore, "/tools/<yourtool>/domain/0")

The store is supposed to remember introductions but I'm not sure if Rusty has gotten to that yet. If things don't work when you restart the store, it means that it isn't remembering them, in which case, you have to reintroduce. You'll have to remember the domain-0 stuff somehow as you cannot call xc_init_store more than once.

Regards,

Anthony Liguori

Thanks again, just what I was looking for.
Jacob



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel