From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: Easy user-space usage of xenstore Date: Fri, 30 Jun 2006 14:29:01 +0200 Message-ID: <20060630122901.GA13070@snarc.org> References: <1151613115.5833.10.camel@cooked.boston.ximian.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1151613115.5833.10.camel@cooked.boston.ximian.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rian Hunter Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, Jun 29, 2006 at 04:31:55PM -0400, Rian Hunter wrote: > Basically my approach was this: > > 1. Process in domain-0 writes a key to /local/domain/. ( > refers to the domain id number assigned to a newly created vm) > 2. Process in unprivileged domain reads from /local/domain/ > > Of course you can see my problem: The unprivileged domain has no idea > which /local/domain/ is his! My first question: Is there a way > for an unprivileged domain to find out his in user-space? you can access /local/domain//.. by just using relative path instead of absolute path. ex: if you want to read /local/domain/5/something/x from domain 5 you can just do : value = xs_read("something/x"); Cheers, -- Vincent Hanquez