]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainGetStatsBlock: Always fetch stats for the full backing chain
authorPeter Krempa <pkrempa@redhat.com>
Tue, 19 Oct 2021 13:12:36 +0000 (15:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 20 Oct 2021 11:43:37 +0000 (13:43 +0200)
Similarly to the fix to 'qemuDomainBlocksStatsGather' we should be
always fetching the full backing chain so that we can avoid any
automatic filter notes which would prevent us from fetching the stats
for the correct nodename.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c

index 34da87e330874f641a048cf84c5501f5b477135e..b46ee01d3196af2e8c96605dd4991fa59bb96924 100644 (file)
@@ -18478,14 +18478,14 @@ qemuDomainGetStatsBlock(virQEMUDriver *driver,
     if (HAVE_JOB(privflags) && virDomainObjIsActive(dom)) {
         qemuDomainObjEnterMonitor(driver, dom);
 
-        rc = qemuMonitorGetAllBlockStatsInfo(priv->mon, &stats, visitBacking);
+        rc = qemuMonitorGetAllBlockStatsInfo(priv->mon, &stats, true);
 
         if (rc >= 0) {
             if (blockdev)
                 rc = qemuMonitorBlockStatsUpdateCapacityBlockdev(priv->mon, stats);
             else
                 ignore_value(qemuMonitorBlockStatsUpdateCapacity(priv->mon, stats,
-                                                                 visitBacking));
+                                                                 true));
         }
 
         if (fetchnodedata)