* Acquire uuid of user domain X from Dom0
@ 2006-09-07 10:48 Liran Schour
2006-09-07 13:57 ` Keir Fraser
0 siblings, 1 reply; 6+ messages in thread
From: Liran Schour @ 2006-09-07 10:48 UTC (permalink / raw)
To: xen-devel; +Cc: Muli Ben-Yehuda
I need to get from kernel space in dom0 the UUID of user domain X. How can
I do that?
Thanks,
- Liran
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Acquire uuid of user domain X from Dom0
2006-09-07 10:48 Acquire uuid of user domain X from Dom0 Liran Schour
@ 2006-09-07 13:57 ` Keir Fraser
2006-09-11 8:09 ` Liran Schour
0 siblings, 1 reply; 6+ messages in thread
From: Keir Fraser @ 2006-09-07 13:57 UTC (permalink / raw)
To: Liran Schour, xen-devel; +Cc: Muli Ben-Yehuda
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Acquire uuid of user domain X from Dom0
2006-09-07 13:57 ` Keir Fraser
@ 2006-09-11 8:09 ` Liran Schour
2006-09-11 17:01 ` Jacob Gorm Hansen
0 siblings, 1 reply; 6+ messages in thread
From: Liran Schour @ 2006-09-11 8:09 UTC (permalink / raw)
To: Keir Fraser, xen-devel
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. 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.
>
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Acquire uuid of user domain X from Dom0
2006-09-11 17:01 ` Jacob Gorm Hansen
@ 2006-09-11 17:00 ` Keir Fraser
2006-09-13 6:57 ` Liran Schour
1 sibling, 0 replies; 6+ messages in thread
From: Keir Fraser @ 2006-09-11 17:00 UTC (permalink / raw)
To: Jacob Gorm Hansen, Liran Schour; +Cc: 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Acquire uuid of user domain X from Dom0
2006-09-11 8:09 ` Liran Schour
@ 2006-09-11 17:01 ` Jacob Gorm Hansen
2006-09-11 17:00 ` Keir Fraser
2006-09-13 6:57 ` Liran Schour
0 siblings, 2 replies; 6+ messages in thread
From: Jacob Gorm Hansen @ 2006-09-11 17:01 UTC (permalink / raw)
To: Liran Schour; +Cc: xen-devel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Acquire uuid of user domain X from Dom0
2006-09-11 17:01 ` Jacob Gorm Hansen
2006-09-11 17:00 ` Keir Fraser
@ 2006-09-13 6:57 ` Liran Schour
1 sibling, 0 replies; 6+ messages in thread
From: Liran Schour @ 2006-09-13 6:57 UTC (permalink / raw)
To: Jacob Gorm Hansen; +Cc: xen-devel, jacobgorm
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 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.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-09-13 6:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-07 10:48 Acquire uuid of user domain X from Dom0 Liran Schour
2006-09-07 13:57 ` Keir Fraser
2006-09-11 8:09 ` Liran Schour
2006-09-11 17:01 ` Jacob Gorm Hansen
2006-09-11 17:00 ` Keir Fraser
2006-09-13 6:57 ` Liran Schour
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.