* xenctrl domain name
@ 2008-08-11 19:02 Shaun R.
2008-08-11 19:06 ` Ben Guthro
0 siblings, 1 reply; 6+ messages in thread
From: Shaun R. @ 2008-08-11 19:02 UTC (permalink / raw)
To: xen-devel
Are there any function in the xenctrl lib (xenctrl.h) or some where else
that will provide a list of domains that also returns the domains name.
I've found functions like xc_domain_getinfo and xc_domain_getinfolist that
return a list of domains but they do not give the domain name. If there's
not, is there a function to return the name of a domain from it's id?
~Shaun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xenctrl domain name
2008-08-11 19:02 xenctrl domain name Shaun R.
@ 2008-08-11 19:06 ` Ben Guthro
2008-08-11 19:30 ` Shaun R.
0 siblings, 1 reply; 6+ messages in thread
From: Ben Guthro @ 2008-08-11 19:06 UTC (permalink / raw)
To: Shaun R.; +Cc: xen-devel
Its in xenstore.
You can use xs.h via xs_read
alternaltly from the shell:
xenstore-read /local/domain/0/name
Shaun R. wrote on 08/11/2008 03:02 PM:
> Are there any function in the xenctrl lib (xenctrl.h) or some where
> else that will provide a list of domains that also returns the domains
> name. I've found functions like xc_domain_getinfo and
> xc_domain_getinfolist that return a list of domains but they do not
> give the domain name. If there's not, is there a function to return
> the name of a domain from it's id?
>
> ~Shaun
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xenctrl domain name
2008-08-11 19:06 ` Ben Guthro
@ 2008-08-11 19:30 ` Shaun R.
2008-08-11 19:46 ` Ben Guthro
0 siblings, 1 reply; 6+ messages in thread
From: Shaun R. @ 2008-08-11 19:30 UTC (permalink / raw)
To: xen-devel
Wonder why the name is not provided with the domain info from those
functions. Getting a domain list and then having to loop through xenstore
until i find the name seams like extra work.
~Shaun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: xenctrl domain name
2008-08-11 19:30 ` Shaun R.
@ 2008-08-11 19:46 ` Ben Guthro
2008-08-11 19:57 ` Shaun R.
0 siblings, 1 reply; 6+ messages in thread
From: Ben Guthro @ 2008-08-11 19:46 UTC (permalink / raw)
To: Shaun R.; +Cc: xen-devel
why would you need to loop, if you have the domid from the domain list?
Shaun R. wrote on 08/11/2008 03:30 PM:
> Wonder why the name is not provided with the domain info from those
> functions. Getting a domain list and then having to loop through
> xenstore until i find the name seams like extra work.
>
> ~Shaun
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: xenctrl domain name
2008-08-11 19:46 ` Ben Guthro
@ 2008-08-11 19:57 ` Shaun R.
2008-08-11 20:35 ` Keir Fraser
0 siblings, 1 reply; 6+ messages in thread
From: Shaun R. @ 2008-08-11 19:57 UTC (permalink / raw)
To: xen-devel
My domains are tracked by the domain name, so if i wanted to find how much
cpu the domain named george was using, i would now have to get a list of
domain id's and loop through each id in the store until i found the name
george... Or am i missing somthing?
~Shaun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: Re: xenctrl domain name
2008-08-11 19:57 ` Shaun R.
@ 2008-08-11 20:35 ` Keir Fraser
0 siblings, 0 replies; 6+ messages in thread
From: Keir Fraser @ 2008-08-11 20:35 UTC (permalink / raw)
To: Shaun R., xen-devel
On 11/8/08 20:57, "Shaun R." <mailinglists@unix-scripts.com> wrote:
> My domains are tracked by the domain name, so if i wanted to find how much
> cpu the domain named george was using, i would now have to get a list of
> domain id's and loop through each id in the store until i found the name
> george... Or am i missing somthing?
That's what you have to do unless you can cache name information some other
way. Xen doesn't know about domain names hence it is not possible for the
libxenctrl functions to give you faster access to names via a direct
hypervisor interface.
-- Keir
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-11 20:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-11 19:02 xenctrl domain name Shaun R.
2008-08-11 19:06 ` Ben Guthro
2008-08-11 19:30 ` Shaun R.
2008-08-11 19:46 ` Ben Guthro
2008-08-11 19:57 ` Shaun R.
2008-08-11 20:35 ` Keir Fraser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.