From nobody Mon Nov 23 04:26:02 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=1795286658; cv=none; d=zohomail.com; s=zohoarc; b=P6VV0ReGFyVBKdwtsjLCbONyPm3i0rKbr7FIfWP4LWSDe2+nj/ZvtioP/7QG/+XtoQPErwsZRnbZmISA/iSCAz9/P1bbrKzeyx7xGo4oXGgPyiFobzPfTa1RFksYCH6ObVCfpCt3XUynSyKs4avZIPSe1dfm+EffzaHXxnIWSyE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795286658; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OPtNs4xMnm2ZdPak90Lg/QccmJA2D8okQG2oRAxtZmQ=; b=FXB+zwDrcjZvaqUGNuXvyQvXUrTlhGSOmUzbuFL+lUyA14LHea9Lz7YFXQ0J3VgDYZ6lCZGdYPsFm6oAVCIjW32+1RfFAJHAEcb2QaYsR6V3TwY0CFQYiENRV63RVTe8RVuMGJTo6Xm/Z4tCGT4y+7wzY8R68VS6p8B6x/gcHJs= 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 1795286658109832.3227181767478; Sat, 21 Nov 2026 10:44:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUq3k-0002aU-Ir; Sat, 21 Nov 2026 13:43:38 -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 1xUq3I-0002Yw-7D for qemu-devel@nongnu.org; Sat, 21 Nov 2026 13:43:09 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUq3G-0004YM-A3 for qemu-devel@nongnu.org; Sat, 21 Nov 2026 13:43:07 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-48e09aa5264so1054309f8f.2 for ; Sat, 21 Nov 2026 10:43:05 -0800 (PST) Received: from alex-t14g7.lan (p200300cf572c2800e6fa15a778fe8e37.dip0.t-ipconnect.de. [2003:cf:572c:2800:e6fa:15a7:78fe:8e37]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b110d56sm12370285f8f.40.2026.11.21.10.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2026 10:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutable-com.20260707.gappssmtp.com; s=20260707; t=1795286584; x=1795891384; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=OPtNs4xMnm2ZdPak90Lg/QccmJA2D8okQG2oRAxtZmQ=; b=N4q8NttMXz0cAY4S2PyZkyHymptlZDjrcJC/4ZONoN0TidBN945VsWhObWA8/vozYX XtsRnTdN9h6tUvp8LvpjK0IAYP2OKP2wtyrRM4sSz8rhF/+o7x7wHTTT28gi7u2w6nBj 43zo3ik6Ze2ArmafidqR0yDyS27SgdpWpsL0T37mVtnhZatDRTdkSTH0KgsawuFApJlW a86b2I4po5H1LsYhmlQOXGvsy1y4n41Ee71/AtL20XXhSKUtl5u+T5kNSJZf89fWBrhj AbHPWYk3aHotNT2WcxFJX7LdE+QRGz6ovK+Yy7AHlGscKuaL5sC1BF05/vfAbdTETo0L dGNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795286584; x=1795891384; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=OPtNs4xMnm2ZdPak90Lg/QccmJA2D8okQG2oRAxtZmQ=; b=FSMXYgJQmG2eDcYQ9Nb4nnbiCyGxBmX3fpCD+lMGfOfoeAawt3MX9cF3t4AMvdiMlh +zhD7BedlXgHjvSFXAOBgKAmRz3FWp4kl8ZgMP30alNQ8IcCN87d4d/S6s38vVEaI1x5 2mbkWrOGrL3g90OWq1/m8yt/z2y/UQJrmhPxGeSxIJg2nPiX/dE0ltu1qPDCHVENYLrt GsrnQrEfWtunDFinNMEQMIDOY371kl94Rwzb2s2tTiV8PhsekCnysl8PSflDmZEULf0U hN0/0gFQSXxlB3oG8zPsGVD4dE/SoewwigLG6lr4EUtEnQlWkukSiRXyNwCxs8v6gXps 1qVA== X-Gm-Message-State: APuU4Z+xNr1KBXJgKIsEBjdS67P5cKaUTh+jfFVIl0G+5DLuKNwueIOf PmcUUeVHc0MyBzOqpgaPwFUlY7L3/GvQP5Uxhwx+362VzcnOWYfZy1gX7aQcGA8qUYbxHxhp1bS eNWUKPX3z X-Gm-Gg: AZFdTZeiF7SfXhGwlDoKgUhFViZzLXlsP3dxJ61SYk5wMlj4SOkcQVjJ+ABFyrxArtH dzZ3eaD9DTp/dWzk1ro1pEEGvcZG3KS61RKnrzoADO2BRIujLa/4RZIGTA/kaf0iJuXlA4cpZEo DGrtL/ICoF3H7/w98Ljm/J8yOmi6+b11t1sjAYxigT/hDPe98Xrjgp+q7popY7I0KbeiTxX3qCu Dz8eylfqexHp+TVzulcq4FjwGPpnF00GTxPWy9uoWK/s9iVxEEOt6YU777rPJFw+8NXboUDiEtx CavlcRbR3oedqP/1y7sRhjS1K8R1xdKZb053incUQwrFvalDOG4Mx0CLy8y1nlUCU8a46GRMK0x HgTPHrB3vlncEiAnE3cItSufL5FEZV5nSsvB7N862IdM+QGN9BTXFTpUu5uN7V0QIdxt3bR+ryO BplC6fDo3j3+eVevdgOAkco6iuddSeCrcASI5eq+UNdlvqxY7Mgn4zpFDkh25Bl9hyk0orPDXQe ff/c5y8h8D3lvQ/3cl8+bVPV/2PlL4WIr3FNKYfNXbGKrU23ljuH20ItmGfCS+rVg/NMB7H6jU5 o/Q9CMiLfRpmxtXwd2inbcwTVy5L37f2aqEL/hUnWy45M9rbECqNJ/0b0p6nfeYF967Sa70WRT8 RvSFa6g21/iQY6qhC X-Received: by 2002:a05:6000:26ca:b0:48d:f14a:9188 with SMTP id ffacd0b85a97d-4abb0f3c225mr13547600f8f.17.1795286583464; Sat, 21 Nov 2026 10:43:03 -0800 (PST) From: Alexander Mikhalitsyn To: qemu-devel@nongnu.org Cc: =?UTF-8?q?St=C3=A9phane=20Graber?= , Zhao Liu , Klaus Jensen , Peter Xu , Keith Busch , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Fabiano Rosas , Jesper Devantier , qemu-block@nongnu.org, Alexander Mikhalitsyn Subject: [PATCH] tests/functional/x86_64: fix race in NVMe live migration test Date: Sat, 21 Nov 2026 19:43:01 +0100 Message-ID: <20261121184301.21112-1-alex@amutable.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::42a; envelope-from=alex@amutable.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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-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 @amutable-com.20260707.gappssmtp.com) X-ZM-MESSAGEID: 1795286661931154100 This test uses /tmp to hold test_nvme_mig_workload.pid file, which is a PID of a "workload" process (producing heavy read I/O). Earlier I did a mistake and forgot to mount /tmp as tmpfs, instead /tmp was using the same storage as root-filesystem (which lives on NVMe device). The problem here is that for this device we use "snapshot=3Don" mode, so after live migration all data that was written on the underlying disk is lost. It is not critical for the test itself (because it's read-only test by design), but very critical for the test logic that uses /tmp to find out the PID of the workload process to kill it after live migration. Absence of this file causes test to fail spontaneously. Link: https://lore.kernel.org/all/20260921190345.1709227-1-alex.bennee@lina= ro.org/ Reported-by: Alex Benn=C3=A9e Tested-by: Peter Xu Signed-off-by: Alexander Mikhalitsyn --- tests/functional/x86_64/test_nvme_migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functional/x86_64/test_nvme_migration.py b/tests/functio= nal/x86_64/test_nvme_migration.py index 890f0aab6d..a8fb5f9e81 100755 --- a/tests/functional/x86_64/test_nvme_migration.py +++ b/tests/functional/x86_64/test_nvme_migration.py @@ -94,6 +94,8 @@ def launch_source_vm(self, vm): prompt, vm=3Dvm) exec_command_and_wait_for_pattern(self, 'mount -t sysfs sysfs /sys= ', prompt, vm=3Dvm) + exec_command_and_wait_for_pattern(self, 'mount -t tmpfs tmpfs /tmp= ', + prompt, vm=3Dvm) =20 # Run workload before migration to check if it continues # to run properly after migration. --=20 2.47.3