From nobody Tue Nov 11 17:26:18 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1564387367; cv=none; d=zoho.com; s=zohoarc; b=ZBLHeI3Z8ptQy1Uh5kigzK4NEgZBmK3gRgrLWPTM+X2gavThca0prv4GBHVSKKQ21PZuQGl/9bfosbSM1SZK9LZnYypw1bsqO1mCN32aIGYToV+wRE0cNpFmmilH5mYOdDaVMRBB9j+uChTTMUTNQJF59JDrMVfa3bptePSnuCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564387367; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=FoQXJ5qQTi3p24A9fozZ2RVCDQjx8oTJ1oBTH1twvYw=; b=n6BUNUTdI3ELfNfNaDcy3AwYQ0IV+UJmXjiNyj9KSu7y0UP0KR0/OSc5JuV6W1WSOYnLsIyLhfLDaQZhjKFcWzv3SSaywY42XG1c0kKewg9T8AgQFWjwAL/bpulHhp0g/F5L6Q4Mqou4yFUB2XARh1QiR6/meLWnGldPyl3GIgA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564387367214212.81456927887575; Mon, 29 Jul 2019 01:02:47 -0700 (PDT) Received: from localhost ([::1]:50324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs0cI-0005ni-6q for importer@patchew.org; Mon, 29 Jul 2019 04:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41942) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs0b8-00048H-IR for qemu-devel@nongnu.org; Mon, 29 Jul 2019 04:01:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs0b7-0006DK-Kw for qemu-devel@nongnu.org; Mon, 29 Jul 2019 04:01:34 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:38301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hs0b7-0006Cg-F2 for qemu-devel@nongnu.org; Mon, 29 Jul 2019 04:01:33 -0400 Received: by mail-pf1-x431.google.com with SMTP id y15so27603735pfn.5 for ; Mon, 29 Jul 2019 01:01:33 -0700 (PDT) Received: from VM_85_204_centos.localdomain ([129.226.55.250]) by smtp.gmail.com with ESMTPSA id l6sm61237035pga.72.2019.07.29.01.01.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 01:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FoQXJ5qQTi3p24A9fozZ2RVCDQjx8oTJ1oBTH1twvYw=; b=IiD1UQQtVt0z2XjhzKu9rvUaLJtu0/G5tr97sts5CJ2rj+Ch0Wcx2N1ET8jOT/OKd6 FBO1OR6yP5aSda+SmgeOOSUvsPWLBkpvLjnWPX5KF9fqzIrf3+2vPwcrxLBz+p9pM4jd Lv07Lb24uZJLRSiwjC5yicJXzqB6pxxD+sMEXDeQLYtCgA1yGjVPuR0JGktFEjTW560L QbOZ0mVb0ROP8/yQOxrMpD1kwNDr6qw29zF/Razpb16zVWBq/OLZeH5DtqkL9KYOyOw0 z6ZwZlGZgQgqM6/vmNewe/swHyFPtl+bWV5HALaoKQ9PepPY/xG0IPQK4oWJV/xeyVw0 g00Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FoQXJ5qQTi3p24A9fozZ2RVCDQjx8oTJ1oBTH1twvYw=; b=BF7v6Sf3qdR99Ca+Z49LpheEkiw+ZF9PhVyzkIHIBhtsAHTC8asA7nQbx4YzIvwW0i oLilN9aFCCMVi1k0lTKhQCOXITupOb0CWphdJ5KlPGH4MBoVSg/uLs17baxppDXPcqeO m3TRSgJguZ0MqjWl/oTIHZ/QjySrS0RME8pwJNOY6FPnLgIzk95A3SvH1ZRK69IyuEWj sX5ThlR4xuShD0HElWRfuIxPYA9vXN0ZWTOAgp47+j1InWrhXLtjP9zK8EPXsNoe3Iej KIbD1E9H+D1qQK8+hN8tWyrSwrCvX0wgjmsTQQpUYswIedieFd4puVrEi10OAZjdv46L qZ6g== X-Gm-Message-State: APjAAAV221jzLiyZJ/GsSNxRIVjPDimeuYGE6QwVVogGuaSnMcds1t1M O/i8B41Rm7SDayE9ILOzwDJeUMI6UE4XZA== X-Google-Smtp-Source: APXvYqx9Q37agfd6Z7hoUXtZCivulxpitndCAFDgdXHis2uICmt/aKJ2hBFXtzMzuAoWIVPkQ3wftQ== X-Received: by 2002:a17:90a:21ac:: with SMTP id q41mr112772605pjc.31.1564387292669; Mon, 29 Jul 2019 01:01:32 -0700 (PDT) From: Ivan Ren X-Google-Original-From: Ivan Ren To: quintela@redhat.com, dgilbert@redhat.com Date: Mon, 29 Jul 2019 16:01:21 +0800 Message-Id: <1564387281-12321-4-git-send-email-ivanren@tencent.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1564387281-12321-1-git-send-email-ivanren@tencent.com> References: <1564387281-12321-1-git-send-email-ivanren@tencent.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::431 Subject: [Qemu-devel] [PATCH v2 3/3] migration: update ram_counters for multifd sync packet X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Multifd sync will send MULTIFD_FLAG_SYNC flag info to destination, add these bytes to ram_counters record. Signed-off-by: Ivan Ren --- migration/ram.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/ram.c b/migration/ram.c index 88ddd2bbe2..20b6eebb7c 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1085,6 +1085,8 @@ static void multifd_send_sync_main(RAMState *rs) p->flags |=3D MULTIFD_FLAG_SYNC; p->pending_job++; qemu_file_update_transfer(rs->f, p->packet_len); + ram_counters.multifd_bytes +=3D p->packet_len; + ram_counters.transferred +=3D p->packet_len; qemu_mutex_unlock(&p->mutex); qemu_sem_post(&p->sem); } --=20 2.17.2 (Apple Git-113)