From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64621606A31E for ; Tue, 24 Nov 2026 11:06:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=qp9JM1lV Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xVoLr-0003Pr-6Z; Tue, 24 Nov 2026 06:06:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xVoLp-0003PW-Mt for qemu-arm@nongnu.org; Tue, 24 Nov 2026 06:06:17 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xVoLn-0003rM-SN for qemu-arm@nongnu.org; Tue, 24 Nov 2026 06:06:17 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-490d59c3f0aso2010705f8f.1 for ; Tue, 24 Nov 2026 03:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795518370; x=1796123170; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Y6q37ugMse9ZNQuIZfed2EkKG6d87ZD3Dsy04MHQ8KI=; b=qp9JM1lV2vjLzb3RJPzs5Ri80y+FpV6HcF8xGWCuyl77+GKJZ/FGFrNoMG/y9Z+W/t TDfWBrLlngefXI6kirqMONXWULs1ukJNXAC6scwKERJMaln7qip1i/BgPNcF7KJonhpd AUF63khmN+pfnvaW+VqqnOafmT6GzqRW08udAJuoB3o5dvvzz/7s3L3agk8ks0ptVmpd G0cv99GWgL5CeZkhWMlueaeLbPSBUTwpUW5S2tDwM/dv4nBcAmaEKlMcVzpKKSgBR4ah YyzAz07u8ZajHHTlMyBjP5pX1nky83FM551szBoy9xviELqB2YkuHXzeMeERQ25Gfbmc WIXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795518370; x=1796123170; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Y6q37ugMse9ZNQuIZfed2EkKG6d87ZD3Dsy04MHQ8KI=; b=j/SRLEhfUkQBASdYbZzjigCIX4tdl2Ao0vuBrhTPKq8vWnpt0HKNTrnfWpX1POsVO2 m9GpEjsNyuAH/prjR1ucnuBvD+hfdtdb7jD679bfgD6kpUbs7c2X5/AhJt2UdNHifHPv g1vR5uV9xSqrpQGB3Upglp2rRou01ZTvStkRS7AwtrZsY3OQ4zijd9XGQT2OO1oVN1xF +31rCH5kqqKtgECDDnDt/UwnpzIYqcNQtP4Ws7RfrOsc28UqXyb0RcNdKEnj3zrUUvph K2HatfAZcORSJsZwXBuM5OuhgLbv8ylBQVhlKZTAetfP5RJ0d/xfnMAaSZZqfVReyj/a Dsiw== X-Gm-Message-State: APuU4Z+tWuPV/Z5hbCIW1JgTCHtagwNig4HZEoaq4Kc0BZMNpPQPJY86 7LtFAwGeyIn8PI4RFLbfmfyr8FcpKmy2I6S2WJ6XATZuSTeqieYs14HK6NIbrE5PJVMqnZ0DsgW JhuEI X-Gm-Gg: AZFdTZfk6IeQXBBRu/2QcWEszHsCj+qbmPELr7vBt4vqRkeLlaznoEGgrf5DF4fyQce U0QB5CU1X3YnNwEZ4xSzKQkNGnXUPuuRQiwX0uY+bU4kt3RSTKlHZBXO1GV5sS2tbU5QNuiwOcj yqdfidrCuszCj+HRYeHoIbJDDxoKPFOwml47XdHmjW2JJoAoyjM+feJE9ZU/PCeQ4WG/bsmTyhR 84BHebkxsreajjKdTZagInxGC8aMJip3uTGiYGp4tezRD9NkigV1ep4BA5BGAxnhyGoUsOnBn73 45rlShqms7fWqEQlGsLgKcsIWFq0R2oT5czazDUrpf/ao7FsIzrqKcunXaCywUlP8KwtasCgFFY pjDg0JeFaLT5XX2I410b3CsUKU3rdrgoDsQWxAp2xlWndZ8m6zEZBjpwCRwrROvEPiitsZ5CfXD ivjaqM/Omei66lXxSQZ7OkU4S73uOBuUOm4eO3Qf4ynu8L4+cfXTJxQTnOb4R3YuY/yYm/AGKw0 ThYALJGuPoI2tPkB+VW7DpOV+SFRngW/7l2Wj7BQLA9ZvHzF1UjbV7qw7QHWXa/lzEgnR4e2EHQ gwZesDyx/5Qsw1Cp0FqVjwOnNbzE X-Received: by 2002:a05:6000:184a:b0:48d:fd4d:7fbe with SMTP id ffacd0b85a97d-4abad6a42f2mr27127003f8f.2.1795518370100; Tue, 24 Nov 2026 03:06:10 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf62f7sm29165984f8f.13.2026.11.24.03.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 03:06:09 -0800 (PST) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 217085F7E4; Tue, 24 Nov 2026 11:06:08 +0000 (GMT) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Jean-Christophe Dubois Subject: Re: [PATCH for-11.2] hw/watchdog/wdt_imx2: Fix migration when pretimeout-support not enabled In-Reply-To: <20261116114641.1799526-1-peter.maydell@linaro.org> (Peter Maydell's message of "Mon, 16 Nov 2026 11:46:41 +0000") References: <20261116114641.1799526-1-peter.maydell@linaro.org> User-Agent: mu4e 1.14.5-pre2; emacs 30.1 Date: Tue, 24 Nov 2026 11:06:08 +0000 Message-ID: <87se0qv68v.fsf@draig.linaro.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.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, 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Peter Maydell writes: > 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. > > This bug has existed in the code for a long time, but it was hidden > until commit d9abd0253be ("hw/watchdog/wdt_imx2: Remove redundant > attributes)" because a bug in the VMSTATE_PTIMER() macro together > with the fact that the vmstate_imx2_wdt version_id was 0 meant that > we weren't trying to migrate the device's ptimers at all, and so > we avoided the assertion (but didn't migrate correctly). > > This is a migration compatibility break for this device, but it isn't > used in any versioned machine types, and we've already decided to > break compat on it this release cycle. > > 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 > --- > Based-on: 20261106163657.3825938-1-peter.maydell@linaro.org > ("Fix 'version' arg of VMSTATE_PTIMER") > -- the patch in that which sets minimum_version_id to 1 in > the wdt_imx2 vmstate would otherwise be a conflict LGTM Reviewed-by: Alex Benn=C3=A9e --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro