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

[Xen-devel] Problem about DOMID_SELF


  • To: xen-devel@xxxxxxxxxxxxx
  • From: 夏业添 <summerxyt@xxxxxxxxx>
  • Date: Sun, 15 Apr 2012 16:58:00 +0800
  • Delivery-date: Sun, 15 Apr 2012 08:58:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

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!

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

 


Rackspace

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