[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Self Domid


  • To: "Kumar, Venkat" <Venkat.Kumar@xxxxxxx>
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 10 Oct 2008 10:13:37 +0200
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 10 Oct 2008 01:14:06 -0700
  • Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: References:In-Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-Disposition:Message-Id; b=HKR1q+DDMwnLT6ueRAV5MtDHQQop4cJascI27hj9kfscroNYP/ccUDH0 p5IQTaW1aAjCrLGQOujtUlwFR/mT0Vi8efG1EWSj3nahb2RiFrTyDIt1U 6S+UKuj/ouUb76p;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Am Freitag, 10. Oktober 2008 schrieb Kumar, Venkat:
> How to get a "Self Domid" from a running domain?
>
> I thought DOMID_SELF macro would do it but from the sources looks like
> DOMID_SELF is a fixed value and actually doesn't get you the domid. Is
> there any other Macro or API to get the self domid (from the kernel)? Thx,
> Venkat

You can read the domid from the xenstore.
There is an interface both from user land and kernel part in dom0.
From within the domU you need to connect to the xenbus interface.

Dietmar.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.