From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: xenstore documentation Date: Tue, 04 Oct 2005 10:55:04 -0500 Message-ID: <4342A5D8.3080505@us.ibm.com> References: <1128429737.30221.12.camel@localhost.localdomain> <1128430090.30221.16.camel@localhost.localdomain> <1128431831.30221.24.camel@localhost.localdomain> <43429A1C.1090006@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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//domain/0") xs_introduce_domain(0, mfn_store, lstore, "/tools//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 > > >