From nobody Sat Apr 27 01:19:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1574694138; cv=none; d=zohomail.com; s=zohoarc; b=llgUZ4IIRoZ6+eICzUtnk7TT9dgyb36gVc1YGL0aqTAOiX36Oj7l4LQrLV2ikf9ALwUlvSmYkoHvzb3XmJzzNSQRaWiXcSz55JDsy427dddvpesf8yA0D4c/6uByP4dMemkqRgNCgimuulXnScrMCpv+vcPWZ8vCYYpn884uds0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574694138; 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=z5syu9mDN+KAY2VRaTtFQnbfN8wexaho54bYrO12Zog=; b=XAxq9rmKNZv7lpgA/n7Cu+o5vh1xDcrfQXnZwVjPCbTRLxEzpDM+Dv+YA8UCXa7GPQQWDRONBl/Ud9wn9chTYBP9ogJaCa0CKTKwfWb2Q3vpe1EOm3j8XWuyraq7x3tKfaz4My7DrwEamnpIWc0q/uDzc2Az9eskjd7A4xAMTjs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1574694138569264.7575221768659; Mon, 25 Nov 2019 07:02:18 -0800 (PST) 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-419-Da-jMG4OP0uBjCyYnWw2Xw-1; Mon, 25 Nov 2019 10:02:15 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 608DC805A05; Mon, 25 Nov 2019 15:02:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2EDB2600C6; Mon, 25 Nov 2019 15:02:09 +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 CB44A4BB78; Mon, 25 Nov 2019 15:02:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xAPF1lrR022017 for ; Mon, 25 Nov 2019 10:01:47 -0500 Received: by smtp.corp.redhat.com (Postfix) id 84E3A5D6AE; Mon, 25 Nov 2019 15:01:47 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C5A35D6A0 for ; Mon, 25 Nov 2019 15:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574694137; 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=z5syu9mDN+KAY2VRaTtFQnbfN8wexaho54bYrO12Zog=; b=esmuK1bLisweDzrWd00Lfc5y///PFG4pjAQVQf3+fR1Vj7NaRSYXm3SFanVZ+oi4808G9f znqDMuFpLZsBdi793goUgbT+x3YBSAefex4k5ywkX8hlN66YU55pDXY2dyL1Ci69vXZegE eER63d5XcJ82YCdhmipVrCC8F18tLqs= From: Peter Krempa To: libvir-list@redhat.com Date: Mon, 25 Nov 2019 16:01:31 +0100 Message-Id: <4a588f921f730589868900c5eaea21a4fe9455e6.1574693959.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 4/9] qemu: Implement VIR_DOMAIN_JOB_STATS_COMPLETED_KEEP 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.79 on 10.5.11.11 X-MC-Unique: Da-jMG4OP0uBjCyYnWw2Xw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- src/qemu/qemu_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 669c12d6ca..5d6a82bc13 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -13958,7 +13958,8 @@ qemuDomainGetJobStats(virDomainPtr dom, bool completed =3D !!(flags & VIR_DOMAIN_JOB_STATS_COMPLETED); int ret =3D -1; - virCheckFlags(VIR_DOMAIN_JOB_STATS_COMPLETED, -1); + virCheckFlags(VIR_DOMAIN_JOB_STATS_COMPLETED | + VIR_DOMAIN_JOB_STATS_COMPLETED_KEEP, -1); if (!(vm =3D qemuDomainObjFromDomain(dom))) goto cleanup; @@ -13980,7 +13981,7 @@ qemuDomainGetJobStats(virDomainPtr dom, ret =3D qemuDomainJobInfoToParams(&jobInfo, type, params, nparams); - if (completed && ret =3D=3D 0) + if (completed && ret =3D=3D 0 && !(flags & VIR_DOMAIN_JOB_STATS_COMPLE= TED_KEEP)) VIR_FREE(priv->job.completed); cleanup: --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list