From patchwork Wed Jun 3 08:08:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mao Zhongyi X-Patchwork-Id: 11585215 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 31E9A618 for ; Wed, 3 Jun 2020 08:12:09 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 12D8E2067B for ; Wed, 3 Jun 2020 08:12:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12D8E2067B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:52482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgOVM-0005Al-Bm for patchwork-qemu-devel@patchwork.kernel.org; Wed, 03 Jun 2020 04:12:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgOTC-0000YK-CC for qemu-devel@nongnu.org; Wed, 03 Jun 2020 04:09:54 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:55315) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgOTA-0000EG-8I for qemu-devel@nongnu.org; Wed, 03 Jun 2020 04:09:54 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.15]) by rmmx-syy-dmz-app07-12007 (RichMail) with SMTP id 2ee75ed75ab282d-8b290; Wed, 03 Jun 2020 16:09:23 +0800 (CST) X-RM-TRANSID: 2ee75ed75ab282d-8b290 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.25.154.146]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee85ed75aae43e-61010; Wed, 03 Jun 2020 16:09:23 +0800 (CST) X-RM-TRANSID: 2ee85ed75aae43e-61010 From: Mao Zhongyi To: qemu-devel@nongnu.org Subject: [PATCH 0/9] monitor/hmp-cmds: small improvements for migration Date: Wed, 3 Jun 2020 16:08:55 +0800 Message-Id: <20200603080904.997083-1-maozhongyi@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Received-SPF: pass client-ip=221.176.66.80; envelope-from=maozhongyi@cmss.chinamobile.com; helo=cmccmta2.chinamobile.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/03 04:09:39 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: dgilbert@redhat.com, Mao Zhongyi , quintela@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" patch1 ~ patch4 have been r-b, here rebase to HEAD. patch5 ~ patch9 mainly decorate some statistics and minor logic changes of migration, because they all involve migration, so merged into a patchset. Cc: dgilbert@redhat.com Cc: quintela@redhat.com Mao Zhongyi (9): tests/migration: mem leak fix tests/migration: fix unreachable path in stress test monitor/hmp-cmds: add units for migrate_parameters monitor/hmp-cmds: don't silently output when running 'migrate_set_downtime' fails monitor/hmp-cmds: delete redundant Error check before invoke hmp_handle_error() monitor/hmp-cmds: add 'goto end' to reduce duplicate code. monitor/hmp-cmds: improvements for the 'info migrate' docs/xbzrle: update 'cache miss rate' and 'encoding rate' to docs migration/ram: calculate un/encoded_size only when needed. docs/xbzrle.txt | 8 +++++--- migration/ram.c | 9 +++++---- monitor/hmp-cmds.c | 30 ++++++++++++++++-------------- tests/migration/stress.c | 34 +++++++--------------------------- 4 files changed, 33 insertions(+), 48 deletions(-)