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-users

Re: [Xen-devel] xenstore -- read UUID

To: "dinesh chandrasekaran" <dinesh_chan8@xxxxxxxxxxx>
Subject: Re: [Xen-devel] xenstore -- read UUID
From: "Derek Murray" <Derek.Murray@xxxxxxxxxxxx>
Date: Wed, 10 Sep 2008 12:49:54 +0100
Cc: xen developers community <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen users community <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 10 Sep 2008 04:50:21 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=BYaYvwCDMBdKoRmHcZWyDZ5D1bvLiDoGHSe38bi/KGg=; b=tDvf9RHxB87jvdId2FXCH8583RjFtcpxbWwmeD8KdBEEtFbyjoXkiABAIJEXd1z9k9 O+LiS64+7fr/KFKT+dol+r5m1MLS/vkRCB1QT5Az57aS7bO+8ztxBgNLOhh1uwiNbAPR vqaX1jS4QnYcFJe/8Ryo23Cxz0kxb0/h0fWMA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=IsL1FFS8ao+biKHGbWrSwkhcNCIZjPjHetXs2d9zjD7E333+M4LgdZAEnJLU6HPsFG d6GNGRQY/+q/kdIoEsT3iEKwk4i1PCvcHzdGBxrkhR1Y7EP74Wc/BcGJzl3qXF0ENx5e 8Q06++oxuCeSFeHDQC+JELGjX5R/CkcRWUSrw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BAY111-W4338D41633B4507912CC87B1570@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BAY111-W4338D41633B4507912CC87B1570@xxxxxxx>
Reply-to: Derek.Murray@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Dinesh,

On Wed, Sep 10, 2008 at 1:24 AM, dinesh chandrasekaran
<dinesh_chan8@xxxxxxxxxxx> wrote:
> they were 2 seperate questions... sorry for the typos...
> How to access xenstore from Dom-0? -- which you said 'YES'...

Yes, this is certainly possible: your code should work (I haven't
tested it) in Dom0 user-space. For another example, see
tools/xenstore/xsls.c, which implements ls functionality for xenstore
using the same interface.

> And How to access xenstore from hypervosor?

There is no code to do this in Xen at the moment.

> If the hypervisor has no knowledge about XenStore, Dom-0 must have the full
> control over the xenstore.

Correct. XenStore is simply implemented as a user-space daemon
(xenstored), running as root in Dom0.

> I need to build a table with some fields one of which should never change
> during a VMs lifetime.
> For example, if I chose the domain_id whose value is transient, If the VM
> reboots, its domain_id changes.
> That is the reason why I opted for the UUID of a domain that persists over
> time even after migration to another machine.
> The only way I could get a domain's UUID is through the xenstore and want to
> take away domain-0 from the picture, which
> according to you is almost impossible.

Instead of Dom0, you could possibly do this in a stubdomain. It is
possible to access XenStore from a MiniOS-based domain.

Regards,

Derek Murray.

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

<Prev in Thread] Current Thread [Next in Thread>