Message ID | 20180807091209.13531-3-xiaoguangrong@tencent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <kvm-owner@kernel.org> 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 2D61A13B4 for <patchwork-kvm@patchwork.kernel.org>; Tue, 7 Aug 2018 09:12:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DA2629C01 for <patchwork-kvm@patchwork.kernel.org>; Tue, 7 Aug 2018 09:12:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 119BD29C07; Tue, 7 Aug 2018 09:12:45 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACF1329C01 for <patchwork-kvm@patchwork.kernel.org>; Tue, 7 Aug 2018 09:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732730AbeHGL0G (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Tue, 7 Aug 2018 07:26:06 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:38564 "EHLO mail-pf1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729976AbeHGL0F (ORCPT <rfc822;kvm@vger.kernel.org>); Tue, 7 Aug 2018 07:26:05 -0400 Received: by mail-pf1-f172.google.com with SMTP id x17-v6so8278383pfh.5 for <kvm@vger.kernel.org>; Tue, 07 Aug 2018 02:12:43 -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=Exw7H4ENaSU2hFN1EhNGRbEzsZ23VhzzX1aOgpP52zfDIX70ABc6LP/1PT6n5c2XuU +DFtTdgKN7bBiypFca7qYJaUIYy1tL8nVeC1nqe81vlIiZHbTN+hwoVgPLqt12pNcQpx LwMc6WBZeKBBuPV0f44LBbA9SXj02nTECT/S+h2D4DFzpIasc7WwMN8W9nK+1CRnHwKT oqjFrG/UUZzrLr2dwxbv6Jj4FfKFop1eJ2O4pan04ykAncG06+TuZD11WBGOk76X+Wk1 DaXGP3z/duwpBfRsHL2RKA4wY/tMQDAfWGB2exr4GKxBnw3DJf8nts8XPctrdl3V60xz qaBg== 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=F+XjKZxBqN6LlIi6RLPbrLjhr2Fh2uwT61KNlOiycwBXI6yJ5udpdemuI1cO7SQ4cc BjYaWf6vNnKsX0Z3V/FcY2e4/4g0FdjH4A5iBKNgcDjjxj6xo1Ni/uznEtvlyHT7X4jo ns1bXA7EjtaFpkET0h0NVygfDW4mSoimtZeomWi9AED5fGCXEzOehLqbIQFQKZZNzS8E ZPQfdnarcTlYnwcbDj3G44SphmFvPJBjL4jXYNlECmJIWuTvXwr7Ja2BGEY33E/Yuw/v C/knZWViEXo/biwc4RM5gvJbbnsXcpI4pwJPyjh3h89W775pqDipw7G4c075Sj5a4yjp I/9g== X-Gm-Message-State: AOUpUlHBBpN+ONpp5RvWSZQPooJsvVJU8rqnMma5epJ58SeWBOoNdeer 8aiQEvzXNIeO04MMS7IuYWCSqX1t X-Google-Smtp-Source: AAOMgpcrmQLNM+Kw+ncIPnKjkVvJvAVlmglvJ1XT4ohLh7Jj6g03JnMWSSxbIpKl8D5sHgmmSvpseg== X-Received: by 2002:a63:4663:: with SMTP id v35-v6mr17516657pgk.178.1533633162951; Tue, 07 Aug 2018 02:12:42 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.37]) by smtp.gmail.com with ESMTPSA id z4-v6sm2159645pfl.11.2018.08.07.02.12.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Aug 2018 02:12:42 -0700 (PDT) From: guangrong.xiao@gmail.com X-Google-Original-From: xiaoguangrong@tencent.com To: pbonzini@redhat.com, mst@redhat.com, mtosatti@redhat.com Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, dgilbert@redhat.com, peterx@redhat.com, wei.w.wang@intel.com, jiang.biao2@zte.com.cn, eblake@redhat.com, Xiao Guangrong <xiaoguangrong@tencent.com> Subject: [PATCH v3 02/10] migration: fix counting normal page for compression Date: Tue, 7 Aug 2018 17:12:01 +0800 Message-Id: <20180807091209.13531-3-xiaoguangrong@tencent.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180807091209.13531-1-xiaoguangrong@tencent.com> References: <20180807091209.13531-1-xiaoguangrong@tencent.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
migration: compression optimization
|
expand
|
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; }