Skip to contentSkip to conversation

current_domain_id() from domU

DISCUSSION Carlos-Rene Perez 2 participants 2 messages Jul 27, 2007 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

Question: Is there a way to get the current domain id from a domU in kernel-space?

Background: I know there is current_domain_id() on the hypervisor, I know most code uses DOMID_SELF when passing a domid to hypercalls, but this acts like a flag and doesn't really give it the domid, unless u reach the hypervisor, which can then call current_domain_id()... etc...

Signature · 2 lines
Thanks,
C. René

A message that is not in the archive (sent off-list or not yet received): [email protected] m

#2 lore raw
Quoted 10 lines · Carlos-Rene Perez

Hi,

Question: Is there a way to get the current domain id from a domU in kernel-space?

Background: I know there is current_domain_id() on the hypervisor, I know most code uses DOMID_SELF when passing a domid to hypercalls, but this acts like a flag and doesn't really give it the domid, unless u reach the hypervisor, which can then call current_domain_id()... etc...

And you think this is useful for what purpose?

What are you planning to do when/if the domain is saved+restored or migrated (it's getting a new ID when it's restored after either save or migrate)?

--
Mats

Quoted 8 lines

--
Thanks,
C. René

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel