domain id
Hi All
I am a newbie to the xen community and I am facing some crashes due
to my code changes.
A quick question: When i start a new domain with id being set to say "VM100" (the id that is shown in the xm list ouput), whats the id that will be stored in the domain structure? i.e
struct domain *d ;d->id ??
Any help will be appreciated.
Thanks
Jaikumar
Hi Jaikumar,
I'm not sure whether it is the same information used by "xm list" or
not. However, the function "domain_create()" receives a variable "domid_t dom_id" which is assigned to "d->domain_id".
This might be what you want.
Regards,
Eli
Quoted 21 lines · jaikumar Ganesh
Hi All
I am a newbie to the xen community and I am facing some crashes due
to my code changes.A quick question: When i start a new domain with id being set to say "VM100" (the id that is shown in the xm list ouput), whats the id that will be stored in the domain structure? i.e
struct domain *d ;
d->id??Any help will be appreciated.
Thanks
Jaikumar_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Jaikumar,
Since I might be missing some info, I'm also copying the message to the
list. So, someone else can confirm/correct my answer.
In the file:
<xen-source>/tools/xenstat/libxenstat/src/xenstat.c
There is the definition of the following data structure:
struct xenstat_domain {
unsigned int id;
char *name;
....
};
Moreover, in the same file, you're going to find the function belowthat determines the domain name based on the domain id. This information is stored in the XenStore and recovered by using the function xs_read (see xs.h for details).
xenstat_get_domain_name(xenstat_handle *handle, unsigned int domain_id)
I hope this helps,
Eli
Quoted 54 lines · jaikumar Ganesh
Hi Eli
Thanks for that info.But is the name of the domain (not the id) available in any structure?
Quoted 1 line
Say xm list gives the following:
Domain Id .... Domain-0 0 Domain-1 5So any idea where is the name "Domain-1" stored?
Thanks
JaikumarQuoted 37 lines · Elizeu Santos-Neto
Hi Jaikumar,
I'm not sure whether it is the same information used by "xm list" or
not. However, the function "domain_create()" receives a variable "domid_tdom_id" which is assigned to "d->domain_id".This might be what you want.
Regards,
EliQuoted 21 lines · jaikumar Ganesh
Hi All
I am a newbie to the xen community and I am facing some crashes due
to my code changes.A quick question: When i start a new domain with id being set to say "VM100" (the id that is shown in the xm list ouput), whats the id that will be stored in the domain structure? i.e
struct domain *d ;
d->id??Any help will be appreciated.
Thanks
Jaikumar_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel