Description of problem: The use of virConnectListDomains + virConnectListDefinedDomains + virDomainLookupByID/UUID takes O(n) time, and is subject to a race condition. It should be possible to list all domains in a single API call, returning virDomainPtr objects immediately. Likewise for storage pools, volumes, networks, interfaces, node devices. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Latest upstream posting https://www.redhat.com/archives/libvir-list/2012-August/msg01185.html
This was done in a series of patches starting with commit 747f64eeaf9022a6d1155697f2344862653c5c95 Author: Peter Krempa <pkrempa> Date: Fri May 18 17:22:02 2012 +0200 lib: Add public api to enable atomic listing of guest