From patchwork Tue Aug 21 08:10:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 10571193 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BFC8920 for ; Tue, 21 Aug 2018 08:12:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40A0729E0A for ; Tue, 21 Aug 2018 08:12:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34DCC29E02; Tue, 21 Aug 2018 08:12:38 +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=ham 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 E423F29E0A for ; Tue, 21 Aug 2018 08:12:37 +0000 (UTC) Received: from localhost ([::1]:51467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fs1mH-00053S-3m for patchwork-qemu-devel@patchwork.kernel.org; Tue, 21 Aug 2018 04:12:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fs1kg-0003sA-Ed for qemu-devel@nongnu.org; Tue, 21 Aug 2018 04:10:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fs1kd-0004WI-IM for qemu-devel@nongnu.org; Tue, 21 Aug 2018 04:10:58 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:39857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fs1kd-0004Rg-0G for qemu-devel@nongnu.org; Tue, 21 Aug 2018 04:10:55 -0400 Received: by mail-pg1-x530.google.com with SMTP id a11-v6so8100029pgw.6 for ; Tue, 21 Aug 2018 01:10:50 -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=3zt+Khuobr5RUdqrSMIsTzX+YCNaFtVf0EUqgmfZh9Y=; b=dMa6eyGEtG+k5ACj8ksXh7YpjZ37uvkyXgvmf2uDI0/6EgTFDz37l9rvsF6hRzeA8V TkeICGDMhtQe6651ChwOqVz1zGdsa6NtyevoHvXqDJFtwGwx6WUSYSiYzUQGR+ayyuaD T3zaFlDu01yPSuAeJ4dWGlzODmCFWaaytX66La81Fxk1lr8CjVW/ZMYDetOWbMaspoZq UAJV/xzYgcz+Ea9FVYWmi09VD+QKwWmY0EyuFIC0lVlI0bqZGcCkE8k9fs61EHxQDPuR 1kIusnpWaHzQn4NEDITWoPB/JrZ7xea+gAhAyp133iiX5aXqeG7B4iWcfJTKHndxoQfd AHlA== 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=3zt+Khuobr5RUdqrSMIsTzX+YCNaFtVf0EUqgmfZh9Y=; b=S7TD5AleU4e30l8ypZWo7lYPJP6ZaNYS7ac0kqGMaf6x1wPoD+Tq05xKNVZJEFH+On A3sghJMpjQOBrYzJBHOrFhEqvt9lFp6OnjQirCjxm0neAYT60sTpknSeGwVZv/CM5FHm Zry0dOy24TR+abhGghR7ykjEKP1w6g5/o5MFugDz+ljpmGWen8ykx1nxPszDWVOSEamP YeQCzmhHgAhDHj7Cr6vDsqvP+xo0ypfk3ovczYyGfI7d0Vp2aPgmPECAFY+vykERZOxq ozbiTXEFnt2wE2BBGN02rPcX18Cs6CdqqPOWHf4xmB8KcZyhpdZghV99rzelN1HVtMdN 0jGw== X-Gm-Message-State: AOUpUlGIypTFtqISgYZS4wzQn+Mu9XkdZzf5cx6SQLdabnadTPRsJseC MP5mAvvIdI4bS/trwsaUXrI= X-Google-Smtp-Source: AA+uWPybsucCFsVg908KhrGc97NrsLqqOfv8avn3mhtlPgFB7zrejNmBQZEqQXvzlQLgCWGNvCSbdg== X-Received: by 2002:a63:4826:: with SMTP id v38-v6mr10884638pga.379.1534839050117; Tue, 21 Aug 2018 01:10:50 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.40]) by smtp.gmail.com with ESMTPSA id r64-v6sm20644023pfk.157.2018.08.21.01.10.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Aug 2018 01:10:49 -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: Tue, 21 Aug 2018 16:10:21 +0800 Message-Id: <20180821081029.26121-3-xiaoguangrong@tencent.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180821081029.26121-1-xiaoguangrong@tencent.com> References: <20180821081029.26121-1-xiaoguangrong@tencent.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::530 Subject: [Qemu-devel] [PATCH v4 02/10] 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 Reviewed-by: Peter Xu Signed-off-by: Xiao Guangrong Reviewed-by: Juan Quintela --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index ae9e83c2b6..d631b9a6fe 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1903,7 +1903,6 @@ retry: 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; }