Received: by 2002:a17:906:da85:b0:8b1:202f:4753 with SMTP id xh5csp3964315ejb; Tue, 21 Feb 2023 22:07:02 -0800 (PST) X-Google-Smtp-Source: AK7set+wqbv4BZr8Lbhx4p1X/41vuWHE1BFmpcA4wI3bp6lqaLbO7gUlOCD3XKgzjuHQFQSISZrO X-Received: by 2002:ac8:5986:0:b0:3b6:3260:fa1d with SMTP id e6-20020ac85986000000b003b63260fa1dmr10239114qte.45.1677046022225; Tue, 21 Feb 2023 22:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677046022; cv=none; d=google.com; s=arc-20160816; b=xqYwKgKvXQOfyi2ihnwWlDjnx/ZZPYB/T9pselAZyccjvHPdWCfq3LqK4TdxQ/kQfv sGjivPRDif4ptF6+z1k2cZ45Po1cfbIGrW/iP9P8js2OfVz6WlL/wCrS8WsVqNJ3ERJW QgVzDTfKOF57ogQGG0LeeNvtLZDG31DA7wNLza0g6daBVmq9kUow55kOfvr0SDUTYiHV zE4kgiUrRw0FAjBlGf3OTgQo5eLBQCB+YvNdrNSpmKrA/CCx1uGhEaFveXTu2WTXsAOZ r9okjdKq3ph3CsEdWyfMSJvSdd+Ca88msDPpea3Q++pPNZ+08BDtRd/flqXnhCqzj8wd JVaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature; bh=lVef1Oh2tJ8hQOebHG/5e5/WuRpB+D7satE3jExCtSg=; b=R7skhFPR5CCdJSpGBpqpXFosSZKkOZo0rGl/1XP/SkgsCsqjI97RMLIFeAnIQL5iQW WZWYgF5h9JdjuQMh7hgphAzK2q8Vovl4cv2f/HYV5U737S9U6xMYXZimpkxdcgq75ikM gF8sVDd4tuuLz28su95DWN3M5hdDIpEtZA7iPueEzoFxl7CFbUYDlxc7PH1ZJJdtokbl tjAOr5fiadZW1YpJ1Q/IjSjwnOmog6fVZYqluVGaiHFifQC+KW35jra07Pbn/2U7Gp6y J4Q7oEyTtgo9XCzpB6XFjaHh86l9NT8Lcfd2gx6zury4VJgdJ4LAlKBgt99nb3szW9kf 0zgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d96oMr7p; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e6-20020ac84e46000000b003b9ee04dfc0si14042312qtw.533.2023.02.21.22.07.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Feb 2023 22:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d96oMr7p; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUiH2-0004sT-B2; Wed, 22 Feb 2023 01:06:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUiH1-0004rL-2n for qemu-arm@nongnu.org; Wed, 22 Feb 2023 01:06:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUiGz-0008BO-B9 for qemu-arm@nongnu.org; Wed, 22 Feb 2023 01:06:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677045995; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lVef1Oh2tJ8hQOebHG/5e5/WuRpB+D7satE3jExCtSg=; b=d96oMr7pv5eMN/fdQRvKDJswfjMr4SyX3HENMnDwKxE/lvLdfBt7C6OZR5Vgq9Q56N1mc/ GRZJk3ly6wdZzOveN2hvrUG1+YLW3q+huRsuTIZp8CcInZ/qO+GyuM+Ahr2vW8tw/rYS+n uv7FdnKtlwaSI1MDYJfCgRy0rb+fZTQ= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-70-C2QVHynJMziZOKeEvXIONg-1; Wed, 22 Feb 2023 01:06:32 -0500 X-MC-Unique: C2QVHynJMziZOKeEvXIONg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EB9A929ABA19; Wed, 22 Feb 2023 06:06:31 +0000 (UTC) Received: from [10.72.12.31] (ovpn-12-31.pek2.redhat.com [10.72.12.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CED1D492B04; Wed, 22 Feb 2023 06:06:20 +0000 (UTC) Subject: Re: [PATCH v1 3/6] kvm: Synchronize the backup bitmap in the last stage To: Peter Xu Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org, david@redhat.com, philmd@linaro.org, mst@redhat.com, cohuck@redhat.com, quintela@redhat.com, dgilbert@redhat.com, maz@kernel.org, zhenyzha@redhat.com, shan.gavin@gmail.com References: <20230213003925.40158-1-gshan@redhat.com> <20230213003925.40158-4-gshan@redhat.com> <08c954d7-f4e4-4d63-28fc-50128f4bc2d7@redhat.com> From: Gavin Shan Message-ID: <5654e434-c041-fa88-ac7a-72b8570789b2@redhat.com> Date: Wed, 22 Feb 2023 17:06:15 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Received-SPF: pass client-ip=170.10.133.124; envelope-from=gshan@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.095, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Gavin Shan Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: DQ2TtIqS0zW8 On 2/22/23 10:58 AM, Peter Xu wrote: > On Wed, Feb 22, 2023 at 10:44:07AM +1100, Gavin Shan wrote: >> Peter, could you please give some hints for me to understand the atomic >> and non-atomic update here? Ok, I will drop this part of changes in next >> revision with the assumption that we have atomic update supported for >> ARM64. > > See commit f39b7d2b96. Please don't remove the change in this patch. > > The comment was just something I thought about when reading, not something > I suggested to change. > > If to remove it we'll need to remove the whole chunk not your changes alone > here. Still, please take it with a grain of salt before anyone can help to > confirm because I can miss something else here. > > In short: before we know anything solidly, your current code is exactly > correct, AFAICT. > Thanks, Peter. I think it's all for later. I will keep the changes and with your r-b in next revision :) Thanks, Gavin