On Mon, 16 Nov 2026 at 11:46, Peter Maydell <[email protected]> wrote: > The wdt_imx2 device has optional support for pretimeouts, which are > present on most i.MX SoCs but not on i.MX31. If the QOM property > 'pretimeout-support' is not set to true then we don't create the > ptimer associated with that feature. However, the migration vmstate > unconditionally lists that ptimer, with the result that trying to > save the vmstate of an i.MX31-based machine like "kzm" will hit an > assertion. > > Move the migration of 'itimer' into its own subsection which we only > send when pretimeout support is enabled. > > Fixes: daca13d495a11 ("hw/watchdog: Implement full i.MX watchdog support") > Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4876 > Signed-off-by: Peter Maydell <[email protected]>
With this patch on master (97c88c61d45d), saving and loading a paused kzm machine exits 0 instead of aborting in vmstate_save_vmsd_v(). Tested on Debian 13 x86_64. Tested-by: Karl Mehltretter <[email protected]> Thanks, Karl
