From nobody Sat Apr 20 08:17:37 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 ARC-Seal: i=1; a=rsa-sha256; t=1555311136; cv=none; d=zoho.com; s=zohoarc; b=FNdHKnw5sAn7x232wmHjSpeNCqYNhZVdyuhFTAa1+8BkohjLl1Za0kUNufSzh5CI/5rWg8pRRLNWXkYsuCsT+dBRtAXMBdqRk7lBWZecOB/xZSjeiBOdkmfOb2KW19LKskbLmBNPAM7IjZ9pZSjCoIMVAJ759Mav8ugUOisgHIE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555311136; 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=zml8j0Jq9Hpcg11POYMvjjQqZFMCnqjoiDX03zNcfUQ=; b=k0E6KWTsrOlih1Uog9QUvb4MafP2H5D/FwnZ6ToJ+4O9dS843wl+3HPFu5u6IxGqMuh3GaGP43jhxJSQajX+csTEFlqbCGm5V42xAbMElVtyqor7t9WjapuO02SRqcC9oAjgVlAQj8nCZw6EsaycwZpCmj43/17quGYxBj2+d7o= 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 Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1555311136123533.5387921584141; Sun, 14 Apr 2019 23:52:16 -0700 (PDT) Received: from localhost ([127.0.0.1]:45717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFvTG-0006lK-Qe for importer@patchew.org; Mon, 15 Apr 2019 02:52:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFvSQ-0006UT-VG for qemu-devel@nongnu.org; Mon, 15 Apr 2019 02:51:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFvSO-0005Xm-Bq for qemu-devel@nongnu.org; Mon, 15 Apr 2019 02:51:09 -0400 Received: from mxhk.zte.com.cn ([63.217.80.70]:6492) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFvSM-0005Qf-Fi for qemu-devel@nongnu.org; Mon, 15 Apr 2019 02:51:08 -0400 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id B42A073F2F93EA1D222D; Mon, 15 Apr 2019 14:50:49 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x3F6ogFl006379; Mon, 15 Apr 2019 14:50:42 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2019041514504782-8694789 ; Mon, 15 Apr 2019 14:50:47 +0800 From: Yi Wang To: quintela@redhat.com Date: Mon, 15 Apr 2019 14:51:29 +0800 Message-Id: <1555311089-18610-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2019-04-15 14:50:47, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-04-15 14:50:41, Serialize complete at 2019-04-15 14:50:41 X-MAIL: mse01.zte.com.cn x3F6ogFl006379 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 63.217.80.70 Subject: [Qemu-devel] [PATCH] migration: update comments of migration bitmap 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: Yi Wang , dgilbert@redhat.com, qemu-devel@nongnu.org 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" Since the ram bitmap and the unsent bitmap are split by RAMBlock in commit 6b6712e, it's better to update the comments about them. Signed-off-by: Yi Wang Reviewed-by: Dr. David Alan Gilbert --- migration/ram.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 1ca9ba7..24ab23d 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1630,8 +1630,6 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **c= urrent_data, /** * migration_bitmap_find_dirty: find the next dirty page from start * - * Called with rcu_read_lock() to protect migration_bitmap - * * Returns the byte offset within memory region of the start of a dirty pa= ge * * @rs: current RAM state @@ -2681,7 +2679,7 @@ static void ram_save_cleanup(void *opaque) RAMBlock *block; =20 /* caller have hold iothread lock or is in a bh, so there is - * no writing race against this migration_bitmap + * no writing race against the migration bitmap */ memory_global_dirty_log_stop(); =20 --=20 1.8.3.1