From patchwork Mon Jun 4 09:55:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 10446197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E2F960284 for ; Mon, 4 Jun 2018 09:59:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 404E728BDB for ; Mon, 4 Jun 2018 09:59:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34FB428BE8; Mon, 4 Jun 2018 09:59:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E880728BDB for ; Mon, 4 Jun 2018 09:59:45 +0000 (UTC) Received: from localhost ([::1]:38624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPmHB-0002FW-3j for patchwork-qemu-devel@patchwork.kernel.org; Mon, 04 Jun 2018 05:59:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPmDj-0007QV-Nv for qemu-devel@nongnu.org; Mon, 04 Jun 2018 05:56:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPmDi-00016V-Tz for qemu-devel@nongnu.org; Mon, 04 Jun 2018 05:56:11 -0400 Received: from mail-pl0-x230.google.com ([2607:f8b0:400e:c01::230]:35514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPmDi-000169-O8 for qemu-devel@nongnu.org; Mon, 04 Jun 2018 05:56:10 -0400 Received: by mail-pl0-x230.google.com with SMTP id i5-v6so19391737plt.2 for ; Mon, 04 Jun 2018 02:56:10 -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=ZIcgHqiGrOqdEEk6CF+98IpQq3ozsW53SvYXg5tRTjM=; b=rGbAJ9XmGSnkhx2feL9BVP26Qwyl+KuorGsqXstEnH3zrxGJubXNKW8VS93MJyZlWw XR/jg1xLy6tjTvFS8jk36L27TYYFfOcm/GfVuwsmoLPpeFFh1/os3hfVUpfjzO8l2HS8 B+kp+xxDysvFqB/u/T5+Beg6EracF2zRst4137pFxCTNiehAixEPlMzwtsKUcUe2TmZ/ 3WfIm2OSRmQC5SG898Y3cI9K/EOVcD9v1Ph9bbOIXY0kK8V9JYhl/XXqxUZFrhsuFdUF dAubhH9XxIKPCZH0D8qlCHGP+kcb0LUBsPqthoZgNnpSQt59l0tkC/H0inMTVcwdSWv0 eUVQ== 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=ZIcgHqiGrOqdEEk6CF+98IpQq3ozsW53SvYXg5tRTjM=; b=A4Vko6V3Zh3TKO40Va9NAR5xoxq58d5nfBWk8Glh83OLhlhTh1d8KdR5WFBqM/CXQ5 qlsDH0sFWYB9nBDLF+17ZmACPWDmH9F4XYSX7omE2eiApoTEpll8UVN2dlPSPbPzYSyX J812TL+6EvijB/bbT7rz1+JHserLDLc5yIi5jnZiqmKSbCV/yqmUUaFIdib3Hnd/QXa9 KBDjbTHPAYoW9dWuZfJ5Aoh76fE+Ww7qOF0TjQDqPYoTtUFxUK029iSUQIcBJCam+Ogm /rmBilxvn86nbNEvNG5eQjUZ5K2O0HJsOVRmHQgFYXvbNKuV4pk2k5Y4Qts4Q/TWCBaA ljPQ== X-Gm-Message-State: ALKqPwfdfoY15QcaMT/KtwqbsRICb9WrIYEP4LauwUxafQaigK/08kv+ xKcOEtt4usu8lETRxDFSaWw= X-Google-Smtp-Source: ADUXVKJs/tJY4/GJ6bDgw9vgrnb6zuAY6vuUZNQYR+cDD4m2dQ5lsUosiIZQ6a/riyKF/feMLlnfOg== X-Received: by 2002:a17:902:3a5:: with SMTP id d34-v6mr21612324pld.103.1528106169880; Mon, 04 Jun 2018 02:56:09 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.35]) by smtp.gmail.com with ESMTPSA id h130-v6sm124502105pfc.98.2018.06.04.02.56.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 02:56:09 -0700 (PDT) From: guangrong.xiao@gmail.com X-Google-Original-From: xiaoguangrong@tencent.com To: pbonzini@redhat.com, mst@redhat.com, mtosatti@redhat.com Date: Mon, 4 Jun 2018 17:55:10 +0800 Message-Id: <20180604095520.8563-3-xiaoguangrong@tencent.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180604095520.8563-1-xiaoguangrong@tencent.com> References: <20180604095520.8563-1-xiaoguangrong@tencent.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::230 Subject: [Qemu-devel] [PATCH 02/12] migration: fix counting normal page for compression X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, Xiao Guangrong , qemu-devel@nongnu.org, peterx@redhat.com, dgilbert@redhat.com, wei.w.wang@intel.com, jiang.biao2@zte.com.cn Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Xiao Guangrong The compressed page is not normal page Signed-off-by: Xiao Guangrong --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 0caf32ab0a..dbf24d8c87 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1432,7 +1432,6 @@ static int compress_page_with_multi_thread(RAMState *rs, RAMBlock *block, qemu_cond_signal(&comp_param[idx].cond); qemu_mutex_unlock(&comp_param[idx].mutex); pages = 1; - ram_counters.normal++; ram_counters.transferred += bytes_xmit; break; }