On Fri, 2026-11-06 at 16:36 +0000, Peter Maydell wrote:
> In commit d9abd0253be90 we made a non-compatible migration state
> change, and set version_id to 1. However we forgot to also set
> minimum_version_id to 1, so the state struct now incorrectly claims
> it can accept migrations from the old version 0 format.
>
> Bump minimum_version_id also to 1, so that attempted migrations from
> the old QEMU fail cleanly.
>
> Fixes: d9abd0253be90280 ("hw/watchdog/wdt_imx2: Remove redundant
> attributes")
> Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Alistair
> ---
> hw/watchdog/wdt_imx2.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c
> index f8129625e58..abb8edfae25 100644
> --- a/hw/watchdog/wdt_imx2.c
> +++ b/hw/watchdog/wdt_imx2.c
> @@ -224,6 +224,7 @@ static const MemoryRegionOps imx2_wdt_ops = {
> static const VMStateDescription vmstate_imx2_wdt = {
> .name = "imx2.wdt",
> .version_id = 1,
> + .minimum_version_id = 1,
> .fields = (const VMStateField[]) {
> VMSTATE_PTIMER(timer, IMX2WdtState),
> VMSTATE_PTIMER(itimer, IMX2WdtState),