From: "Derek Murray" Subject: Re: xenstore -- read UUID Date: Wed, 10 Sep 2008 12:49:54 +0100 Message-ID: <617dbaa80809100449l7fe8513br633d3fd77d5a6f0f@mail.gmail.com> References: Reply-To: Derek.Murray@cl.cam.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: dinesh chandrasekaran Cc: xen developers community , xen users community List-Id: xen-devel@lists.xenproject.org Hi Dinesh, On Wed, Sep 10, 2008 at 1:24 AM, dinesh chandrasekaran 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.