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] Easy user-space usage of xenstore

To: Rian Hunter <rian@xxxxxxx>
Subject: Re: [Xen-devel] Easy user-space usage of xenstore
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxx>
Date: Fri, 30 Jun 2006 14:29:01 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 30 Jun 2006 05:30:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1151613115.5833.10.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
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: <1151613115.5833.10.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11+cvs20060403
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/<DomID>.  (<DomID>
> refers to the domain id number assigned to a newly created vm)
> 2. Process in unprivileged domain reads from /local/domain/<DomID>
> 
> Of course you can see my problem: The unprivileged domain has no idea
> which /local/domain/<DomID> is his! My first question: Is there a way
> for an unprivileged domain to find out his <DomID> in user-space?

you can access /local/domain/<self>/.. 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

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