From patchwork Thu Jul 19 12:15:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Guangrong X-Patchwork-Id: 10534257 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 8F12B601D2 for ; Thu, 19 Jul 2018 12:17:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8070629540 for ; Thu, 19 Jul 2018 12:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 747EB2954B; Thu, 19 Jul 2018 12:17:32 +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 30DA529540 for ; Thu, 19 Jul 2018 12:17:32 +0000 (UTC) Received: from localhost ([::1]:42071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg7sB-0003Ps-9m for patchwork-qemu-devel@patchwork.kernel.org; Thu, 19 Jul 2018 08:17:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg7qX-00023o-KI for qemu-devel@nongnu.org; Thu, 19 Jul 2018 08:15:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg7qW-0005Nx-OX for qemu-devel@nongnu.org; Thu, 19 Jul 2018 08:15:49 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:41514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fg7qW-0005Nj-IJ for qemu-devel@nongnu.org; Thu, 19 Jul 2018 08:15:48 -0400 Received: by mail-pg1-x52c.google.com with SMTP id z8-v6so3578706pgu.8 for ; Thu, 19 Jul 2018 05:15:48 -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=6EwPktPxAlxHbR8/kguT2vBMzx8nbLUekWgCRsZWX3A=; b=uqk2pbm7R6PsXbzR8gtS6S+5HyYPNR2+6/BeAAlt7QGv8r/qcBhZYPmMVcDomraC5l PTZPKcBfNt5FveMjumCQXd49mL/O1auFP8OyKIoTIkNSKNJEbL0IGzi23dGkbGGkI+l4 5GlDvqexyoHoG1//vWmYuizVt8UKNE6Prf8u94rRbG9EI/B/K24YrKBMrpuq0ov4mNmZ YhkLKh1NsNhBk01UJpSqkXkwGVsMIVmFYyDFwAWdB7X/T0cw+TEjjp0VkVOubgcR3Vj1 0mMJhvxQSkCbySyiE+uA20ItKD0n8SPk1dd3HLX/XxB3CAkE6diCIypwjjYKjWnuI29E 4fgg== 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=6EwPktPxAlxHbR8/kguT2vBMzx8nbLUekWgCRsZWX3A=; b=b4JMA3sp7qP0rvkjyGdMCrM/gE5x46+yaUjFfLWOYNN+rYjAZ9q4/8LSQT1et4FeBR nNn/LVE3NP1yfSDGEQ6CCRVK9NNGtNLfWiJB2QrMW8viL1QmssugvVnYUQebMBvR45Dl F2GWrhCk+QFHeM6KUMZzdRR8U5EgpbVC0su8bsc/PEzaeOuwzxyQhI2U5YHlrceinCrb s+1uvzHppPX92guhIzeSciye9BfTQ6tRcTi7WWe18Cs6NtQ1RwwZ1VvY66USWV1FLr9o yjFnBnHmbxuLSrEuvqnkCJE2FY4Rl9ZfjxGvszWdwZFjefnMwZoAJr22VaFBDWYLPKLY m8vQ== X-Gm-Message-State: AOUpUlEmCpX0G+mbyA+SJEO8QchZov7Iq8q4UnOSLXP88gmFz0u0avet FamfVODpsJ9iG3eqyaCpyg8= X-Google-Smtp-Source: AAOMgpfDpeBizBaP98BTrF73kXXo74k+p+FdFSoVedHoLARPznptBjV7xg6wTdIibS8NvXlhM20WTQ== X-Received: by 2002:a65:460e:: with SMTP id v14-v6mr9565596pgq.177.1532002547864; Thu, 19 Jul 2018 05:15:47 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.37]) by smtp.gmail.com with ESMTPSA id h190-v6sm21270456pge.85.2018.07.19.05.15.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 05:15:47 -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: Thu, 19 Jul 2018 20:15:14 +0800 Message-Id: <20180719121520.30026-3-xiaoguangrong@tencent.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180719121520.30026-1-xiaoguangrong@tencent.com> References: <20180719121520.30026-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::52c Subject: [Qemu-devel] [PATCH v2 2/8] 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 Reviewed-by: Peter Xu --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 0ad234c692..1b016e048d 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; }