From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5D7B9C77B7C for ; Wed, 10 May 2023 09:00:33 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwfgP-00057r-Sv; Wed, 10 May 2023 05:00:27 -0400 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 1pwfgN-00056r-OC for qemu-devel@nongnu.org; Wed, 10 May 2023 05:00:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwfgM-0005e5-AG for qemu-devel@nongnu.org; Wed, 10 May 2023 05:00:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683709221; 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=G+l00LP9nvQjDKaf7hL/2agM7QmmdtBjvbD16d70YE4=; b=Ii+ledyz+1/sAQPH78VRbgwiN77QHbPleC26Ap0pNgEECZtBJXWrpEuVkDiycJd9AOT0vS rEZitPHhtYDAjD/cEDCsdO1CAVUKLniuOIbnr6F1kMf+qW6Xw1969n7KCpuPHzH7u7+vlV gbqeRJPmdG7JDhQ0+uIh389fcIqMcIA= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-153-rac5QETlMlmKo8y0Yv2pbg-1; Wed, 10 May 2023 05:00:19 -0400 X-MC-Unique: rac5QETlMlmKo8y0Yv2pbg-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f1763fac8bso43903105e9.1 for ; Wed, 10 May 2023 02:00:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683709218; x=1686301218; h=content-transfer-encoding:mime-version:message-id:date:reply-to :user-agent:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G+l00LP9nvQjDKaf7hL/2agM7QmmdtBjvbD16d70YE4=; b=jjZCDJtUcNe/H8KV67w9m+s/VdRcqSt9lVMUak2zajP256Rd+eCO1G75hf1WIYXAVs yLk0nShCPaeFcoPNfQJOnod4dc9AnSX7YbXoAxlhoN/xnTxgml8XPHoG6evmb5gGYN+W km56GJ7k1G9WWAi+H7k1i1vSg3yMSZ11HAQOfbTEXNkGFFONEmbYR9jkS/MtEjluZLXT QYsP3l2CjTxs802SM5n2TuXezku1W70gCu0tVNVEh0tHoEHJRdKaNN/456rvXXmnti6h JU4oRxsT1/0eWw+o4V/RBqdlWgcb40T+EFXadaPdiAARfTgRBxwIVHTAYqm/p8SGN465 gBTA== X-Gm-Message-State: AC+VfDySBKBTE4usL8nJGrUvnT6ErniJepGT0DhIGUsLetMVgyginOKq NdEMv3CbBPdsmnQMMbgUbTiBXeOlaeI1nF50g/rL3joxOtrQ09IB7pr1CEemWLry2m+QrcDKmZd R6T+j+cVu7NPDTfw= X-Received: by 2002:a7b:cd04:0:b0:3f1:9527:8e8a with SMTP id f4-20020a7bcd04000000b003f195278e8amr11021867wmj.21.1683709218481; Wed, 10 May 2023 02:00:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mFsifrTkRQcs7N5tJoJ4fr1sb3ZdjsOZtGzF1aVVuEuURlzPTBFpZ/MtLNNi0MKFoAm5DLw== X-Received: by 2002:a7b:cd04:0:b0:3f1:9527:8e8a with SMTP id f4-20020a7bcd04000000b003f195278e8amr11021850wmj.21.1683709218203; Wed, 10 May 2023 02:00:18 -0700 (PDT) Received: from redhat.com (static-92-120-85-188.ipcom.comunitel.net. [188.85.120.92]) by smtp.gmail.com with ESMTPSA id t6-20020a1c7706000000b003f42cc7aac4sm3653759wmi.37.2023.05.10.02.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 02:00:17 -0700 (PDT) From: Juan Quintela To: Avihai Horon Cc: , Alex Williamson , =?utf-8?Q?C=C3=A9dric?= Le Goater , Peter Xu , Leonardo Bras , Eric Blake , Markus Armbruster , Thomas Huth , Laurent Vivier , Paolo Bonzini , Yishai Hadas , Jason Gunthorpe , Maor Gottlieb , Kirti Wankhede , Tarun Gupta , Joao Martins Subject: Re: [PATCH 6/8] vfio/migration: Refactor vfio_save_block() to return saved data size In-Reply-To: <20230501140141.11743-7-avihaih@nvidia.com> (Avihai Horon's message of "Mon, 1 May 2023 17:01:39 +0300") References: <20230501140141.11743-1-avihaih@nvidia.com> <20230501140141.11743-7-avihaih@nvidia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Date: Wed, 10 May 2023 11:00:16 +0200 Message-ID: <87zg6c8stb.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.129.124; envelope-from=quintela@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: quintela@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Avihai Horon wrote: > Refactor vfio_save_block() to return the size of saved data on success > and -errno on error. > > This will be used in next patch to implement VFIO migration pre-copy > support. > > Signed-off-by: Avihai Horon > Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Juan Quintela And this is independent of this series.