From: Mats Petersson Subject: Re: current_domain_id() from domU Date: Fri, 27 Jul 2007 20:21:39 +0100 Message-ID: <46aa45e1.1e35440a.15d7.1ba9@mx.google.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: References: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: carlos@perez.net, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 20:15 27/07/2007, Carlos-Rene Perez wrote: >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 >-- >Thanks, >C. René > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel