From nobody Sun May 19 07:11:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1563439748; cv=none; d=zoho.com; s=zohoarc; b=BHiK7fHt+O0Dj+73OrDckcQgJLWL4abH5JBnHp2whCTtkpEaslqEIFtjYAPmIku1KHaL0MeYaIt459+8f0J5TU/bt5UPi+SWEmjkKuVW8Hz0L/Hq0eDnkNkE2dVCF57DqOBaQMmQmmv2VsFqY1LiDYnHgkyGQyBHmVgDFPFMU1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563439748; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=2NuBeG+ue+kptyjl6wOb84EcHV9/5W7U776K1ggHVEs=; b=josMNX2frjKeRW6jCjwkm6gz+G65H//qptqwTzrRCkY7sWm9QURbRZKPthEoVBfgCepQ3hUB4EmnNZY5VGSmWbcx8p+FGojuLY3rwj3hTpfY4zIpQc9mG5uEnpg4ZZvU2zUtZJDhOZB7vZm1FJnXCri8IYe8F4Y6f6Ldso6Dp2Y= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1563439748534303.8861968332185; Thu, 18 Jul 2019 01:49:08 -0700 (PDT) Received: from localhost ([::1]:35578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho261-00014b-1V for importer@patchew.org; Thu, 18 Jul 2019 04:49:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58186) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho25p-0000fa-Q5 for qemu-devel@nongnu.org; Thu, 18 Jul 2019 04:48:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ho25o-0003io-K3 for qemu-devel@nongnu.org; Thu, 18 Jul 2019 04:48:49 -0400 Received: from mga17.intel.com ([192.55.52.151]:9710) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ho25o-0003hd-0L for qemu-devel@nongnu.org; Thu, 18 Jul 2019 04:48:48 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2019 01:48:46 -0700 Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga002.jf.intel.com with ESMTP; 18 Jul 2019 01:48:44 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,276,1559545200"; d="scan'208";a="179182480" From: Wei Yang To: qemu-devel@nongnu.org Date: Thu, 18 Jul 2019 16:48:16 +0800 Message-Id: <20190718084816.6990-1-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.151 Subject: [Qemu-devel] [PATCH] migration: rename migration_bitmap_sync_range to ramblock_sync_dirty_bitmap 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: pbonzini@redhat.com, Wei Yang , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Rename for better understanding of the code. Suggested-by: Paolo Bonzini Signed-off-by: Wei Yang --- migration/ram.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index c5f9f4b0ef..66792568e2 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1669,7 +1669,7 @@ static inline bool migration_bitmap_clear_dirty(RAMSt= ate *rs, return ret; } =20 -static void migration_bitmap_sync_range(RAMState *rs, RAMBlock *rb, +static void ramblock_sync_dirty_bitmap(RAMState *rs, RAMBlock *rb, ram_addr_t length) { rs->migration_dirty_pages +=3D @@ -1762,7 +1762,7 @@ static void migration_bitmap_sync(RAMState *rs) qemu_mutex_lock(&rs->bitmap_mutex); rcu_read_lock(); RAMBLOCK_FOREACH_NOT_IGNORED(block) { - migration_bitmap_sync_range(rs, block, block->used_length); + ramblock_sync_dirty_bitmap(rs, block, block->used_length); } ram_counters.remaining =3D ram_bytes_remaining(); rcu_read_unlock(); @@ -4175,7 +4175,7 @@ static void colo_flush_ram_cache(void) memory_global_dirty_log_sync(); rcu_read_lock(); RAMBLOCK_FOREACH_NOT_IGNORED(block) { - migration_bitmap_sync_range(ram_state, block, block->used_length); + ramblock_sync_dirty_bitmap(ram_state, block, block->used_length); } rcu_read_unlock(); =20 --=20 2.17.1