I need to get from kernel space in dom0 the UUID of user domain X. How can I do that? Thanks, - Liran _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 7/9/06 11:48, "Liran Schour" <LIRANS@il.ibm.com> wrote:> I need to get from kernel space in dom0 the UUID of user domain X. How can > I do that?Read it from xenstore, or build one of your source files with -D__XEN_TOOLS__ and use the getdomaininfo domctl hypercall. I think option (1) is better. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liran Schour
2006-Sep-11 08:09 UTC
Re: [Xen-devel] Acquire uuid of user domain X from Dom0
Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote on 07/09/2006 16:57:44:> > > > On 7/9/06 11:48, "Liran Schour" <LIRANS@il.ibm.com> wrote: > > > I need to get from kernel space in dom0 the UUID of user domain X. Howcan> > I do that? > > Read it from xenstore, or build one of your source files with > -D__XEN_TOOLS__ and use the getdomaininfo domctl hypercall. I thinkoption> (1) is better. >How can I read it from xenstore as I can see from examples in the code xenstore API inside the kernel, like xenbus_read, assumes that we are already inside the path /local/domain/X ( X = 0 ) and I need information about domain Y. Any ideas? - Liran _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 11/9/06 6:01 pm, "Jacob Gorm Hansen" <jacobg@diku.dk> wrote:>> How can I read it from xenstore as I can see from examples in the code >> xenstore API inside the kernel, like xenbus_read, assumes that we are >> already inside the path /local/domain/X ( X = 0 ) and I need information >> about domain Y. Any ideas? > > I am be wrong here, but I don''t think you are supposed to use the UUID > inside the kernel, as this is a Xend-only construct.It is available, with the caveat that its semantics across things like save/restore is not really well-defined (what happens if a VM forks, for example). -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jacob Gorm Hansen
2006-Sep-11 17:01 UTC
Re: [Xen-devel] Acquire uuid of user domain X from Dom0
On 9/11/06, Liran Schour <LIRANS@il.ibm.com> wrote:> How can I read it from xenstore as I can see from examples in the code > xenstore API inside the kernel, like xenbus_read, assumes that we are > already inside the path /local/domain/X ( X = 0 ) and I need information > about domain Y. Any ideas?hi, I am be wrong here, but I don''t think you are supposed to use the UUID inside the kernel, as this is a Xend-only construct. Jacob _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liran Schour
2006-Sep-13 06:57 UTC
Re: [Xen-devel] Acquire uuid of user domain X from Dom0
jacobgorm@gmail.com wrote on 11/09/2006 20:01:26:> On 9/11/06, Liran Schour <LIRANS@il.ibm.com> wrote: > > > How can I read it from xenstore as I can see from examples in the code > > xenstore API inside the kernel, like xenbus_read, assumes that we are > > already inside the path /local/domain/X ( X = 0 ) and I needinformation> > about domain Y. Any ideas? > > hi, > I am be wrong here, but I don''t think you are supposed to use the UUID > inside the kernel, as this is a Xend-only construct.I am working on a security project in which I need some unique identifier for each domain. UUID sounds like a reasonable choice. The only problem is how do I technically get it from dom0? - Liran _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel