[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 18/38] Remove unnecessary minimum_version_id_old fields

From: Peter Maydell
Subject: Re: [PULL 18/38] Remove unnecessary minimum_version_id_old fields
Date: Tue, 15 Feb 2022 17:13:42 +0000

On Thu, 27 Jan 2022 at 15:14, Juan Quintela <quintela@redhat.com> wrote:
> From: Peter Maydell <peter.maydell@linaro.org>
> 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 <peter.maydell@linaro.org>
> Reviewed-by: Juan Quintela <quintela@redhat.com>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
> 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), so this commit as it hit master is OK.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]