xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: 夏业添 <summerxyt@gmail.com>
To: xen-devel@lists.xen.org
Subject: Problem about DOMID_SELF
Date: Sun, 15 Apr 2012 16:58:00 +0800	[thread overview]
Message-ID: <CAMjnu2e4DL_MKHPEJcSWwBUkCTSQ9kha5D-TzkPu4PWUb4nu6Q@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 750 bytes --]

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?

This is the result of my xm list:
[xyt@localhost xen_onoff]$ sudo xm list
Name                                        ID   Mem VCPUs      State
Time(s)
Domain-0                                   0    1974     2     r-----
30180.0
reciever                                             512
1               0.0
sender                                       2      512     1     -b----
76.1

But if I use  printk(KERN_EMERG"this dom:%d\n",DOMID_SELF) on Dom0, the
result is 32752 instead of 0.

Could someone tell me why this happens? Thanks!

[-- Attachment #1.2: Type: text/html, Size: 866 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

             reply	other threads:[~2012-04-15  8:58 UTC|newest]

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

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=CAMjnu2e4DL_MKHPEJcSWwBUkCTSQ9kha5D-TzkPu4PWUb4nu6Q@mail.gmail.com \
    --to=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).