libxkutil: Use virConnectListAllDomains() to fetch domains
libxkutil: Use virConnectListAllDomains() to fetch domains

  This is an optimization over using the multistep approach to get a count,
get some memory, and get the list of domains (active and defined). Followed
other examples to ensure only building the code if the libvirt version is
correct. The API was added in 0.9.13.
  Macro USE_VIR_CONNECT_LIST_ALL_DOMAINS is used to activate it, which
should be added in configure in the future.

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>
Reviewed-by: Wenchao Xia <a82bded1b492a49d76e42d0788520e04e9fbf126@linux.vnet.ibm.com>
Signed-off-by: Wenchao Xia <a82bded1b492a49d76e42d0788520e04e9fbf126@linux.vnet.ibm.com>

libvirt/libvirt-cim,libvirt/libvirt-cim,libvirt/libvirt-cim