virt: Fetch block info stats from libvirt only if needed
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Thu, 28 Feb 2019 14:14:01 +0000 (14:14 +0000)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Thu, 7 Mar 2019 15:50:37 +0000 (15:50 +0000)
commitce2eb567629eb21d650d5c27fefe607837c061fd
treef327ae6d0958218bfafd277386ec985ea532d137
parent04d9e221d31f38d80acfff48c611b1fee5f830f4
virt: Fetch block info stats from libvirt only if needed

Domain block info statistics will be retrieved from libvirt
only if one of extra stats is enabled:
- ex_stats_disk_allocation
- ex_stats_disk_capacity
- ex_stats_disk_physical

Change-Id: I0367c6ec7aafbf9558aaa100a12d40605ab9ba72
Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
src/virt.c