
On Wed, Mar 28, 2007 at 03:55:24PM +0100, Daniel P. Berrange wrote:
On Wed, Mar 28, 2007 at 10:45:34AM -0400, Daniel Veillard wrote:
It would be nice though if each time you look whether the domain is defined or not, libvirt could give teh answer directly instead of going though the potentially expensive Info call. This would also require to double check invalidation of the _virDomain cached data at the proper places.
The virDomainGetInfo is a fast-path call - its either a direct hypercall, or a hypercall via the proxy - we never make an expensive XenD call unless they've broken the proxy somehow.
I was thinking about the upcoming remote support, and an RPC is expensive for this kind of informations IMHO. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/