From nobody Mon Aug 24 04:09:17 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1779486668; cv=none; d=zohomail.com; s=zohoarc; b=cvXAz0TtSMDQ5pY+UYth0bXqZN/e8S9J8uwFErnY9sGevDWH3HB4u7FDGXaGQATQxImaC9jYvFjZWpB4U9P+1cV+HhV75fr3bSGE0kFj4mMy/WHpd0lLJkeTfYGsyMWdtiLzXbTPFNQfM4DVawm7Zu0zbYuG0sAvhGVivIUkuBQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1779486668; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ijNRxk7tfn4rv+f4QHW5OVuiqB5ax8HCUk0o6KGpHFk=; b=aXQfFEA7qFqpAC8Jt04RsGGiLV++ZFi/iApqxNqYc6vu9oviOiBVzCYIUx3asG1S9W0Dfy1CeNqw1Kn7CmM3PAGVu+kQRo+YWyz7owxgEYGk5xSjVG0RX21qlopd/v69WWols0TgeKCH/tsC4dEuMTpHjBJncrKysowafiE8UiE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1779486668656685.5153921028882; Fri, 22 May 2026 14:51:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wQXl2-0007o3-4a; Fri, 22 May 2026 17:50:16 -0400 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 1wQXkW-0006ty-5v; Fri, 22 May 2026 17:49:47 -0400 Received: from isrv.corpit.ru ([212.248.84.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wQXkU-0002Zw-8a; Fri, 22 May 2026 17:49:43 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 8246C1AFB62; Sat, 23 May 2026 00:49:19 +0300 (MSK) Received: from think4mjt.tls.msk.ru (mjtthink.wg.tls.msk.ru [192.168.177.146]) by tsrv.corpit.ru (Postfix) with ESMTP id ABE263B71B1; Sat, 23 May 2026 00:49:23 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tls.msk.ru; s=202602; t=1779486559; bh=t1J8WMNyiECT8S8oMriALLHVngmgly+xsrMf1JZklI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Ew0VFX+aeMvk5p/3eEnDULbEyYKLT0zWCnatRqygroYXYDTL6/m024ebwRNSFbH65 /Ojx4mpp/H3vrO7HIZh6zsxxkE/Q3AcxbOvTuuM/p8yGu1q2Mh+ZPJ4JrWbGLlgFB7 JILgwRbHdzehAhbr7Tt7D1P9o25kJgtPdboJpcnPxJih/BBz6Vp56/hzsvgnAiDfCg qKDmHXQKp30ni4zXBTTj4QGSykaHUrEgAuN9Q0oJNG60tyts8wJFfeZ0ZQ37HnjieL th2OEOiCj6B394cDc+KIh2CsabLRxT1neEIr34PwCwaAudpm77tNwNj3/QObGFBEzF 8RJ1CjcEhfAlQ== From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Peter Xu , Juraj Marcin , Michael Tokarev Subject: [Stable-10.2.3 108/149] migration: Fix low possibility downtime violation Date: Sat, 23 May 2026 00:48:40 +0300 Message-ID: <20260522214923.807017-9-mjt@tls.msk.ru> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=212.248.84.144; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @tls.msk.ru) X-ZM-MESSAGEID: 1779486669433158500 Content-Type: text/plain; charset="utf-8" From: Peter Xu When QEMU queried the estimated version of pending data and thinks it's ready to converge, it'll send another accurate query to make sure of it. It is needed to make sure we collect the latest reports and that equation still holds true. However we missed one tiny little difference here on "<" v.s. "<=3D" when comparing pending_size (A) to threshold_size (B).. QEMU src only re-query if A Link: https://lore.kernel.org/r/20260421202110.306051-3-peterx@redhat.com Signed-off-by: Peter Xu (cherry picked from commit 455a6167f25416ce97ea966d6e8301df9fda9a47) Signed-off-by: Michael Tokarev diff --git a/migration/migration.c b/migration/migration.c index b316ee01ab..5daf0d84e4 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -3510,7 +3510,7 @@ static MigIterateState migration_iteration_run(Migrat= ionState *s) * postcopy started, so ESTIMATE should always match with EXACT * during postcopy phase. */ - if (pending_size < s->threshold_size) { + if (pending_size <=3D s->threshold_size) { qemu_savevm_state_pending_exact(&must_precopy, &can_postcopy); pending_size =3D must_precopy + can_postcopy; trace_migrate_pending_exact(pending_size, must_precopy, --=20 2.47.3