From nobody Mon Feb 9 09:39:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1634654659; cv=none; d=zohomail.com; s=zohoarc; b=Ae26YL9TUX6w0sQp6yfXasoQKlNLe4mneD07fJ2vW2WbF8QxpQXEmoL2SrAQw3fKgId/RZiGKQZRjxMNWp2XFSkQF6rJg8msW8kYj/RcsytQF5EvQZCvcFnXuz/CKplxNpFos4GGz5XvP33vNTaavai83A3TPui8h3kn7QN61DY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634654659; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WdWOHqe0JojnVLwQIX2tSI85j1ubFOzsbcv0bdjFvdo=; b=kzfgWL7LmleXLJS2Np9BPz4D8c/iFhRS0ghn1cudPy//TGtykazKDTRtHhfiZnzGAX5K0FciRHIMjzaILVXnC3XieBhQaWyfLWsM569evFGFUpCJ2sCzlHfnlrPy411Mwf72zA5SoGB2m9fk8R/dDz0Ap2OXn/D2Xd6tHlNpU4U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1634654659320398.7843499732046; Tue, 19 Oct 2021 07:44:19 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-487-lOaeRhLSMJujJWIU3djfzg-1; Tue, 19 Oct 2021 10:44:15 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 60E2C80F041; Tue, 19 Oct 2021 14:44:10 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DEB219723; Tue, 19 Oct 2021 14:44:10 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0812A181A1D0; Tue, 19 Oct 2021 14:44:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 19JEhJSR031686 for ; Tue, 19 Oct 2021 10:43:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2E18519D9F; Tue, 19 Oct 2021 14:43:19 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8AA4919C79 for ; Tue, 19 Oct 2021 14:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634654658; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=WdWOHqe0JojnVLwQIX2tSI85j1ubFOzsbcv0bdjFvdo=; b=E1mIZ8Pp6lI40QQYDXadDZ78AUoJp7GK5lDnpEiyeHI8mscmdZ8V9IBUWw4oQ85cyK9IPg eah5gbgjTj/UsAsTEB7HhG9QNRpTuUSlvGnm0jNgKOW8ZvbaEs7oF7+VserkR20+8q9zGa i1LVY2DwzSHp3AFZN7PKICw1jyL+anE= X-MC-Unique: lOaeRhLSMJujJWIU3djfzg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/8] qemuDomainGetStatsBlock: Always fetch stats for the full backing chain Date: Tue, 19 Oct 2021 16:43:09 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1634654659778100005 Content-Type: text/plain; charset="utf-8" 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 --- src/qemu/qemu_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 34da87e330..b46ee01d31 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -18478,14 +18478,14 @@ qemuDomainGetStatsBlock(virQEMUDriver *driver, if (HAVE_JOB(privflags) && virDomainObjIsActive(dom)) { qemuDomainObjEnterMonitor(driver, dom); - rc =3D qemuMonitorGetAllBlockStatsInfo(priv->mon, &stats, visitBac= king); + rc =3D qemuMonitorGetAllBlockStatsInfo(priv->mon, &stats, true); if (rc >=3D 0) { if (blockdev) rc =3D qemuMonitorBlockStatsUpdateCapacityBlockdev(priv->m= on, stats); else ignore_value(qemuMonitorBlockStatsUpdateCapacity(priv->mon= , stats, - visitBack= ing)); + true)); } if (fetchnodedata) --=20 2.31.1