xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: 夏业添 <summerxyt@gmail.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Problem about DOMID_SELF
Date: Mon, 16 Apr 2012 08:39:18 +0100	[thread overview]
Message-ID: <1334561958.4445.5.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <CAMjnu2e4DL_MKHPEJcSWwBUkCTSQ9kha5D-TzkPu4PWUb4nu6Q@mail.gmail.com>

On Sun, 2012-04-15 at 09:58 +0100, 夏业添 wrote:
> Hi everyone,
> 
> I'm new on this field. The comment of source code says that
> "DOMID_SELF is used in certain contexts to refer to oneself." Is this
> id the micro returns the same as the id which i can get by xm list?

DOMID_SELF is a magic number used as a placeholder to mean "this
domain", it is interpreted this way by various routines in the
hypervsor, it is not literally the domid of the current domain.

I suggest you grep the Xen source for the definition and use of
DOMID_SELF, all should become clear.

In general domains are not (and do not need to be) aware of their own
domain id.

Ian.



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2012-04-16  7:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-15  8:58 Problem about DOMID_SELF 夏业添
2012-04-16  7:39 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1334561958.4445.5.camel@dagon.hellion.org.uk \
    --to=ian.campbell@citrix.com \
    --cc=summerxyt@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).