On Thu, Aug 28, 2008 at 10:58:34AM -0400, Cole Robinson wrote: > Last month you had brought up the idea of a unified api call to > lookup all domains, with a flag option to filter the lookup by > domain state: > > https://www.redhat.com/archives/libvir-list/2008-July/msg00215.html It's worth making clear that the key issue isn't the filtering, but the fact that the virConnectListDomains & virDomainLookupByID calls would be combined. This is a big saving in the remote case too because it turns 1+N round-trips into 1 round-trip. Virt-manager and virt-top both make these 1+N calls frequently (as in, once a second, and once every 3 seconds respectively). Also, if we use the __virDrvSupportsFeature call then we can actually emulate it in src/libvirt.c for drivers / libvirtd instances which don't understand the new call. This means that applications can use the new call immediately, with confidence that it will work for all cases. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com/ Fedora now supports 64 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list