Received: by 2002:ac2:446b:0:0:0:0:0 with SMTP id y11csp470628lfl; Tue, 15 Feb 2022 09:34:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXNZ90d7zE59Mw3Q9yKQcDbMchIo/Tdv62oPK9m7HAdMvEdN0cnMUitWInShL53zG3O5mN X-Received: by 2002:a81:ff08:: with SMTP id k8mr4922889ywn.287.1644946495453; Tue, 15 Feb 2022 09:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644946495; cv=none; d=google.com; s=arc-20160816; b=SfP4yoVQfIljMmorXDsHbzTggRXPq7sG73CEtmFBfdS70UEdKQoTYV2YQCuv5frG9C mBE5/dCgAcY1Cyy2ZJl55Ufi+MxmAwgOm4OYCiJe7FBfX1XwxxYmxa0btPmPLfRLVIcr A5C0lxqd5lraKtVSaTSDAd8IESU4wpmdmwiSKTlfSRD4x4hFmr3ArI7cN4IAb9iBbR4S LZpE38X6BXCphlvoomWIvBfj8Ptmii89zgmQ5LMlBDyH1B/pJc8Gdlx5LcfHAo6oiRBS m/fYffEmDmahc9MX4Pp6Ooi/p/8R7GWVwsBbGwm/CMEKmUunjJk+fnF6dtaAbjuG7qt4 dW3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id; bh=KGeQ+XbsNFdBY75cPNCI4lANDxBXDJZWktLhxWtNZQc=; b=Ehi9dyeJq3mAUIdUizpAzoJgd6a2Fm52eJVr8e4hVPWkWXi93V2RH0nz4NGsJlrmVB J4St+hl8PtieIwkzRa7PgwrFXD+EPG6c3HsfZrrIIPKGytIsuWeeoTuInf3Ea+JM4scK eeLXJV1P5/FkkuvdHO+3io5QdSLzkEh9q69m1YXuJxkzFgOW60k2kizJTBPy0ygPvd0l KLUrKWj4RHrI6hCeZD+EvA2Ggr72NfhtZt+iPVVSvqqSVQy6ypre0SnZMdCeq8Ndmjnq c0xIKHkxMID/Nyuoo0xmY8WA0ns5WKq+IZcuUq/6YuOLVgCgp/D3lGcr6APPmvZLqQH0 SbJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a71si8629009ybg.254.2022.02.15.09.34.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Feb 2022 09:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-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; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:43136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nK1j4-0002gG-Rp for alex.bennee@linaro.org; Tue, 15 Feb 2022 12:34:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nK1il-0002cp-43; Tue, 15 Feb 2022 12:34:35 -0500 Received: from smtpout4.mo529.mail-out.ovh.net ([217.182.185.173]:60317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nK1ii-0004Wu-4y; Tue, 15 Feb 2022 12:34:34 -0500 Received: from mxplan5.mail.ovh.net (unknown [10.109.146.221]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id A20E0E01AC26; Tue, 15 Feb 2022 18:34:24 +0100 (CET) Received: from kaod.org (37.59.142.97) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Tue, 15 Feb 2022 18:34:22 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-97G002b9c6eb6b-41ce-4948-a076-45ad149065b6, 9E61FECBC99B7F84222AE0DB6991604CA8A139D0) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: <7e091698-d5db-689c-4c19-b5a7eede51f3@kaod.org> Date: Tue, 15 Feb 2022 18:34:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PULL 18/38] Remove unnecessary minimum_version_id_old fields Content-Language: en-US To: Peter Maydell , Juan Quintela References: <20220127150548.20595-1-quintela@redhat.com> <20220127150548.20595-19-quintela@redhat.com> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [37.59.142.97] X-ClientProxiedBy: DAG8EX2.mxp5.local (172.16.2.72) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: a0e9bd5f-8265-454b-ad3c-242cbf61b7ad X-Ovh-Tracer-Id: 16438138642480139127 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrjeeggddutddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfhisehtjeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhephffhleegueektdetffdvffeuieeugfekkeelheelteeftdfgtefffeehueegleehnecukfhppedtrddtrddtrddtpdefjedrheelrddugedvrdeljeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehgrhhouhhgsehkrghougdrohhrgh Received-SPF: pass client-ip=217.182.185.173; envelope-from=clg@kaod.org; helo=smtpout4.mo529.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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: , Cc: Fam Zheng , "Michael S. Tsirkin" , Jason Wang , Mark Cave-Ayland , qemu-devel@nongnu.org, Peter Xu , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Gerd Hoffmann , Ani Sinha , "Edgar E. Iglesias" , Eric Blake , Hannes Reinecke , Vikram Garhwal , qemu-block@nongnu.org, Daniel Henrique Barboza , Markus Armbruster , Artyom Tarasenko , Pavel Pisa , Alistair Francis , "Dr. David Alan Gilbert" , Greg Kurz , qemu-arm@nongnu.org, Paolo Bonzini , Stafford Horne , David Gibson , Laurent Vivier , Andrew Baumann , qemu-ppc@nongnu.org, Igor Mammedov , Aurelien Jarno Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: hkmKcM0OLjro On 2/15/22 18:13, Peter Maydell wrote: > On Thu, 27 Jan 2022 at 15:14, Juan Quintela wrote: >> >> From: Peter Maydell >> >> The migration code will not look at a VMStateDescription's >> minimum_version_id_old field unless that VMSD has set the >> load_state_old field to something non-NULL. (The purpose of >> minimum_version_id_old is to specify what migration version is needed >> for the code in the function pointed to by load_state_old to be able >> to handle it on incoming migration.) >> >> We have exactly one VMSD which still has a load_state_old, >> in the PPC CPU; every other VMSD which sets minimum_version_id_old >> is doing so unnecessarily. Delete all the unnecessary ones. >> >> Commit created with: >> sed -i '/\.minimum_version_id_old/d' $(git grep -l '\.minimum_version_id_old') >> with the one legitimate use then hand-edited back in. >> >> Signed-off-by: Peter Maydell >> Reviewed-by: Juan Quintela >> >> Signed-off-by: Juan Quintela >> >> --- >> >> It missed vmstate_ppc_cpu. > > No, as the commit message notes, it deliberately did not change > that one vmstate, because at the time of writing the patch > that was the one vmstate that really was still using > load_state_old. As it happens commit 8f91aca7ff0044b hit > master first, removing that use of load_state_old (but > forgetting to remove the minimum_version_id_old field along > with it), If I remember well, at the time of this patch, we were both working on the same part and I thought that removing all minimum_version_id_old in one go was better. Anyhow, > so this commit as it hit master is OK. yes. Thanks, C.