From nobody Sat Jul 25 17:35:03 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; dmarc=pass(p=quarantine dis=none) header.from=openvz.org ARC-Seal: i=1; a=rsa-sha256; t=1784111740; cv=none; d=zohomail.com; s=zohoarc; b=gcmG413os5fGWCEWd8TCDjD5L2mLweW4/UKvoUTLKOhxgXZvGkEjLasOm0+OHnuizUiFoqoYGOeiJ3DGS8t36YiAmjikQ463RYedfFKyIgMFGvFqp+HQmAs34GTA8JZrJZDfeTA/lSP6z4uY7nuOu39EkTUFr+Lzbil5zcEMvOs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784111740; 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=4cRW8LA+ifE8jwJkw5DO8GQ7H+a9bag/mL6iGsS1QoE=; b=nTLFsgx2PcpnX61qHx1iT4IrUpiXWDmu8Q2KoP5ue4VfdDaFb9FuzOwawvYvsNkAGqjQfAIWZM2whewfPFB2L+oS72U9o2jdR6BvsFvR3ZItAYRiIJyUIKhV5O4hdTNlRF1gF5Tabx+azgY2GKxmSo+PfukdG+2Fpn48xOW164c= 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; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784111740840699.9205265458497; Wed, 15 Jul 2026 03:35:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjwxE-00040N-Pf; Wed, 15 Jul 2026 06:35:04 -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 1wjwx8-0003yR-U2 for qemu-devel@nongnu.org; Wed, 15 Jul 2026 06:34:58 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjwx6-0000ub-Oh for qemu-devel@nongnu.org; Wed, 15 Jul 2026 06:34:58 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-47122683cf3so2984515f8f.0 for ; Wed, 15 Jul 2026 03:34:56 -0700 (PDT) Received: from athena ([2a06:5b06:b600:300:c44f:405f:37a5:5992]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f464a974csm17292644f8f.18.2026.07.15.03.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 03:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1784111695; x=1784716495; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4cRW8LA+ifE8jwJkw5DO8GQ7H+a9bag/mL6iGsS1QoE=; b=pc2EiUBaV4JXLX7Zf06yu1MevofNigD+HtV7rHgjgvs6xENqq/WMNo9Cak73HqTu43 EupawYUqTZPaGzwblTtSSvTa+wXB7SEdUWRbPum7HqexNXk5NwwJ45g3eiPXlgfGxLYD CtJEkfVSXvzuKNNm+7d6KzU9VbaeOne8DKkhQOkpefyr50vfOPyv7NbjbnRleE4PZICN a+eybLJCs1crKKmLhe1aqkSt0fX6fDGMn0aOrdelBRunigC5a29AylJ9dXx628uAoL1n W0EpC42Y7X9v9/pV+1GFC4/crBOhRIai6NmXqRiYkg5tSUVnOkgTwoMortyz+RPBzkUd JUuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784111695; x=1784716495; h=content-transfer-encoding:mime-version:references:in-reply-to :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=4cRW8LA+ifE8jwJkw5DO8GQ7H+a9bag/mL6iGsS1QoE=; b=mcQ2vofwJ2lvDwBKTFISvvPJaYeOc0IdlE7Z5FQsqmZMXCrYzdt6irFnotME3AQw8J a86ppUSXpP/nRRw1OCuYasIuumqqi/A1nRagphNwshq/le8VUy5TZPXD493pbvsLSj/D dHtfL7hmAKJeffgSwpkkx1rqf4pGWzGuoJ/JBjJysM1x4LqGz3JKpOKkkircLLl/mCJv wMsVRYFbU2AdIy8QW5R+/rZpFhaQi2QekRfvo7oTufGyPc8+P7XuegWqjY6pGwGrADZR 6nHViAy26a8FKRVLUWN8PiV7fDsviNf8/1GJ77n6xqfXWRIPbVQJC89O2o1C9MJPUOCt InlQ== X-Forwarded-Encrypted: i=1; AHgh+RoBAKTh1n1xntoBlvhYDLQBQePUj+DHtXhjhRHqpmz3BthSriPaJ4YTr/aGkMuBt8c9+6t1RCyo1wPX@nongnu.org X-Gm-Message-State: AOJu0YyqT6AX6CufiwkjKcILVHQTRnNoaD9Sz8zX2re9BaAdDJBzWpe/ gGiXFQ/suWmJhGi5z/XPCImdZde5hH9td+Hz24lzfMlygI+nhwS+65i/cC7J7Y3xW+c= X-Gm-Gg: AfdE7cl5quyj8NIVugvH9nqJNd4CebcR+EQBKuKdjpIgiBGx4YEPH+ZWCT1wn+vx7NI sLCpLCpwKW66/xOP/UJF6CNsGt54+uXzinDdTbKkxwv5XYxoOYyLOMqi8JgxNXzZGduMLqX4qOw WRVJ1SGuNwdJIIqxPJd1R07uUxGIL4WnLGTC0hIDo4tzMTbH+Dqqss5nhz9bamSCWBHbuJ5J4oN b+qNYTU0AyW51BFBIhwpI+KOVguS1hPNqgsPKSbnCe9BCLWajWOLokfbwb3F9lRik0mDmzqyyjR 6BLYKbuHygWu5bo0W58qsxAXiZQSt/c9y4L/0KPYWwPyInHebnQDlvMqqDf7UoHs0XPCaav6XrA iW53y8ptNFDSRtBF7f+iabiJS3nxVWQXrfskGQy24J+0zH6uzUhqAu5FvNWarwyjtvkpp7UyhId x2Bg== X-Received: by 2002:a05:600c:46ce:b0:493:b811:e549 with SMTP id 5b1f17b1804b1-4951830a532mr84273895e9.29.1784111694831; Wed, 15 Jul 2026 03:34:54 -0700 (PDT) From: "Denis V. Lunev" To: qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: den@openvz.org, Kevin Wolf , Hanna Reitz Subject: [PATCH v2 1/3] iotests: run the test pool with the 'fork' start method Date: Wed, 15 Jul 2026 12:34:49 +0200 Message-ID: <20260715103451.1930909-2-den@openvz.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260715103451.1930909-1-den@openvz.org> References: <20260715103451.1930909-1-den@openvz.org> 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=2a00:1450:4864:20::434; envelope-from=den@openvz.org; helo=mail-wr1-x434.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-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 @openvz.org) X-ZM-MESSAGEID: 1784111742937158500 Content-Type: text/plain; charset="utf-8" run_tests_pool() shares the runner via the class attribute TestRunner.shared_self, relying on worker processes to inherit it. That only works with the 'fork' start method. Python 3.14 switched the Linux default to 'forkserver', so workers see shared_self as None and parallel runs abort with: assert runner is not None AssertionError Only reproduces with Python 3.14+ and 'check -jN' (N > 1); meson runs one test per process and never calls run_tests_pool(), so CI is unaffected. Request get_context('fork') explicitly; it is available on all supported Python versions and a no-op before 3.14. Signed-off-by: Denis V. Lunev CC: Kevin Wolf CC: Hanna Reitz Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/testrunner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunn= er.py index dbe2dddc32..cc36867719 100644 --- a/tests/qemu-iotests/testrunner.py +++ b/tests/qemu-iotests/testrunner.py @@ -26,7 +26,7 @@ import json import shutil import sys -from multiprocessing import Pool +from multiprocessing import get_context from typing import List, Optional, Any, Sequence, Dict from testenv import TestEnv =20 @@ -125,7 +125,7 @@ def run_tests_pool(self, tests: List[str], assert TestRunner.shared_self is None TestRunner.shared_self =3D self =20 - with Pool(jobs) as p: + with get_context('fork').Pool(jobs) as p: results =3D p.starmap(self.proc_run_test, zip(tests, [test_field_width] * len(tests)= )) =20 --=20 2.53.0 From nobody Sat Jul 25 17:35:03 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; dmarc=pass(p=quarantine dis=none) header.from=openvz.org ARC-Seal: i=1; a=rsa-sha256; t=1784111753; cv=none; d=zohomail.com; s=zohoarc; b=NStfu/U8f9SnoYAciw3ITlwvBdfyeFXvfQd2qFBdO87qFbOCLn3G9Yhc81l35MWgjbPxtkDqAintPnCkT1ulnL36UuTSplth+fgv+raSmMthHy38lO9qHrDmqkRa3dn5PpDQRlB+2xxgIQctoAGEhKgPJzfyZlnETxEP9y/UW1Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784111753; 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=s4zeJDdtxVbftajOrHOMfQ8V+NcJ7E3IkRzNWHPvZJQ=; b=FUBsKbQND8UkuUVa3DmFl5hsQsG3IOtXulv3k2pgVm1f0jDqkyDo+RCyv4OYt/Lq7ZfH3cbXU8fOMaaYzyKiQmvyw5o5ADlACwJJCrPZSCnbOyDYygyRTpLL8CyVoS+S9cG5awJIydBpp74w3tGu4flQhm1GzD3+kX77AfKidgM= 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; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784111753343180.8671022280207; Wed, 15 Jul 2026 03:35:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjwxF-00040l-6F; Wed, 15 Jul 2026 06:35:05 -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 1wjwx9-0003yU-0b for qemu-devel@nongnu.org; Wed, 15 Jul 2026 06:34:59 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjwx7-0000uk-Bk for qemu-devel@nongnu.org; Wed, 15 Jul 2026 06:34:58 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-4728c12ba97so2426993f8f.0 for ; Wed, 15 Jul 2026 03:34:57 -0700 (PDT) Received: from athena ([2a06:5b06:b600:300:c44f:405f:37a5:5992]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f464a974csm17292644f8f.18.2026.07.15.03.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 03:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1784111696; x=1784716496; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=s4zeJDdtxVbftajOrHOMfQ8V+NcJ7E3IkRzNWHPvZJQ=; b=ETTOMH0MdaHZJo1uFL0k5ddICSmb/BdrfdUYuCJtnTgD+K/o87TWXO9/EJo+3RmVFa 2LgtvhG8GLN7ouNP8td6B6vGCX0v2v9d8hPnr4WS8IhRL/Xkwnd0DA+YbQbLYinH12oZ h74mkYJ1dqJeauG+Kd9+CYW6r7uvqeL33m1K1C+BvHG5aGylS5NhOiR1zXfnyzf/rlB6 4s6g7legJzseb7cZPqaVJWaQN2eQ8xNZbBZyk4620Nt1nFrZtf9Jjqb9ctd8IEJvde6n d1QMsohCz+LOZOJ3crubNVJBj7d52KRicNFKHoDi9YJCk3+kdfhSV/EAVRr9gCxNkrW6 bMlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784111696; x=1784716496; h=content-transfer-encoding:mime-version:references:in-reply-to :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=s4zeJDdtxVbftajOrHOMfQ8V+NcJ7E3IkRzNWHPvZJQ=; b=bJ1yPFYJh7AUC+fxDUx1p+LPV+8Ps8pR8g+mvW88ZlXWIkO2aBrYOMIUb87E/b1Xpy BezNhg67xGnSJzQupyd8QKKcGJW2Mlu7EHS53+PgAXD5TUI4mMIam20lEy3lyVGYCn++ cHkAWUFONR3eNHFr4oCkMjwf+VcQsEopDBhRyEo//ZU9bcHjn+92S2kbc/Mu/L9BgXdU GuZoxKDMyC7Jv7o52C+RY3TPHFzAUna200rDtLvJL0xByE7NzwIeBw8N9LEOlFbfAeMd qnHyyoiYEMKdDeAjLl8YBMlIKJFDilBHjGjKgXCrjXpML/Q7N7BI1KIlL6DHZzJkURMU fR/A== X-Forwarded-Encrypted: i=1; AHgh+Rqtg1kEKrxioASB9n5KdAhJCK7LL4dvldxDm5+sJGbd2TC2cTgbpYX0sqcimgaOFcCGGIYtIdqOsxFp@nongnu.org X-Gm-Message-State: AOJu0YzswAMq6L/lfp73OpzTMr/O39iqaaIrBPZv3Q7XmsgJ7dKWRQqI NLgcA1Dfp0NWKUyDihyaoEk6y3w9Vr5sXD+hB5ym6QcW15QWXNR5hFf/VsmjhlFL24A= X-Gm-Gg: AfdE7ckgeYF+MqxDT/OGl7Wg3HPD0ksRdwvEq3dlc7Ow8v3/s+J1jopJqyk8igFCKb9 P8JQnJT0PCdjFsBz9qK0mbgWDiVeCdLd8xjqyG5i6cmtf2ZrLVC6h3xyfenqLXm30+Gk0IjmVXF uES0OvEW7NCIH5ESmZFWx4jl42P22ZK0EKhhgH8TeQ9vWt8uhZB4ay0zi77yXk3KQyA1t5NkZvH rPL6vEuQRhgbfPfCYPzWOLnnN95RC1gQ7Zp5ZLKio03Xs6dRl2dMmlPI3k5lnIBF+Lqm1ix4iru MSJEiGrL1Oc3Pqfh7EJxALgdYiM3Rcy8BZtWF2ZtpoCXOhr28HdIA5aODCPEvoz4TLnpV4aQlvS ZhtTp6UlQIzjWkiXeFkk61HP5y5JbWpK+feEdu/CxvjYV7+66IFHJuL4xfYk1RPrh+NMd6W4nOt s9FA== X-Received: by 2002:a05:6000:178e:b0:47d:ee23:f15e with SMTP id ffacd0b85a97d-47f4fc99a5amr2650290f8f.5.1784111695800; Wed, 15 Jul 2026 03:34:55 -0700 (PDT) From: "Denis V. Lunev" To: qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: den@openvz.org, Kevin Wolf , Hanna Reitz Subject: [PATCH v2 2/3] iotests: skip FUSE tests when FUSE is not usable Date: Wed, 15 Jul 2026 12:34:50 +0200 Message-ID: <20260715103451.1930909-3-den@openvz.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260715103451.1930909-1-den@openvz.org> References: <20260715103451.1930909-1-den@openvz.org> 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=2a00:1450:4864:20::42f; envelope-from=den@openvz.org; helo=mail-wr1-x42f.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-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 @openvz.org) X-ZM-MESSAGEID: 1784111755147158500 Content-Type: text/plain; charset="utf-8" file-io-error, fuse-allow-other and fuse-mmap-shared skip only when FUSE is not compiled in. When FUSE is built in but unusable at run time (no /dev/fuse access, fusermount lacking permissions), the export fails to mount with "Failed to mount FUSE session to export" and the tests report a spurious failure instead of skipping, like NBD tests already do for missing NBD support. Add _notrun_on_fuse_error() to common.rc and use it in the shell tests. fuse-mmap-shared is Python, so it gets an equivalent inline check. Signed-off-by: Denis V. Lunev CC: Kevin Wolf CC: Hanna Reitz Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/common.rc | 14 ++++++++++++++ tests/qemu-iotests/tests/file-io-error | 4 +--- tests/qemu-iotests/tests/fuse-allow-other | 2 ++ tests/qemu-iotests/tests/fuse-mmap-shared | 9 ++++++--- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 298bc483e0..bcb1ec50a9 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -981,6 +981,20 @@ _require_drivers() done } =20 +# Skip if FUSE is unusable: not compiled in, or the export failed to +# mount. $1 is the failing 'block-export-add' reply. +_notrun_on_fuse_error() +{ + case "$1" in + *"Parameter 'type' does not accept value 'fuse'"*) + _notrun "No FUSE support" + ;; + *"Failed to mount FUSE session"*) + _notrun "FUSE not usable in this environment" + ;; + esac +} + # Check that we have a file system that allows huge (but very sparse) files # _require_large_file() diff --git a/tests/qemu-iotests/tests/file-io-error b/tests/qemu-iotests/te= sts/file-io-error index fb8db73b31..0d970c102f 100755 --- a/tests/qemu-iotests/tests/file-io-error +++ b/tests/qemu-iotests/tests/file-io-error @@ -89,9 +89,7 @@ output=3D$(_send_qemu_cmd $QEMU_HANDLE \ 'return' \ | grep -v 'option allow_other only allowed if') =20 -if echo "$output" | grep -q "Parameter 'type' does not accept value 'fuse'= "; then - _notrun 'No FUSE support' -fi +_notrun_on_fuse_error "$output" echo "$output" =20 echo diff --git a/tests/qemu-iotests/tests/fuse-allow-other b/tests/qemu-iotests= /tests/fuse-allow-other index eaa39f8f23..50a36601d7 100755 --- a/tests/qemu-iotests/tests/fuse-allow-other +++ b/tests/qemu-iotests/tests/fuse-allow-other @@ -77,6 +77,8 @@ fuse_export_add() _notrun "allow_other not supported" fi =20 + _notrun_on_fuse_error "$output" + echo "$output" } =20 diff --git a/tests/qemu-iotests/tests/fuse-mmap-shared b/tests/qemu-iotests= /tests/fuse-mmap-shared index 52941a3bb6..b190105894 100755 --- a/tests/qemu-iotests/tests/fuse-mmap-shared +++ b/tests/qemu-iotests/tests/fuse-mmap-shared @@ -28,9 +28,12 @@ def test_fuse_support(mount_point): }) test_qsd.stop() if 'error' in res: - assert (res['error']['desc'] =3D=3D - "Parameter 'type' does not accept value 'fuse'") - iotests.notrun('No FUSE support') + desc =3D res['error']['desc'] + if desc =3D=3D "Parameter 'type' does not accept value 'fuse'": + iotests.notrun('No FUSE support') + if 'Failed to mount FUSE session' in desc: + iotests.notrun('FUSE not usable in this environment') + assert False, desc =20 # Shared mmap when using direct IO is only supported for Linux kernels >= =3D 6.6 # with commit e78662e818f94 ("fuse: add a new fuse init flag to relax --=20 2.53.0 From nobody Sat Jul 25 17:35:03 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; dmarc=pass(p=quarantine dis=none) header.from=openvz.org ARC-Seal: i=1; a=rsa-sha256; t=1784111748; cv=none; d=zohomail.com; s=zohoarc; b=OyO1qYbraOZPn9S8dqB+maR/cK0x+pf6M9aGFFEmfygsexueBF+gZpsiwMNV7GjXdBVCj6zja1Dj7z6313jEbRtL4qsHpYjHwQSOD0068XF7MRS3n0JDqbs2RuJpgNJ4MJozh6XSpTYPuOUOOuX876jbiB71n4rhJLE0wseENtg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784111748; 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=PqCHlCT/qklGcub9P4p3p6WygT/7lJQfYfoI/OJ3UEo=; b=FTC/eDpBK7CjX/Gk6sH+yAPJwtB7sTyxAUzH1tkdr2Bjo6W8J8OknXEryNQbh0ESFlIU2YT1MBAoZ97o88Gv9IVWxdRD84J8c0PHTEqNjAuEw4ha8W9l4ipklzKlRLlEckuOpIUjRfBB1ng95Q9S97evGhbQHC7ipBdtqZ35HJQ= 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; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784111748173229.34589124331353; Wed, 15 Jul 2026 03:35:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wjwxF-00041W-LD; Wed, 15 Jul 2026 06:35:05 -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 1wjwxA-0003zZ-5Z for qemu-devel@nongnu.org; Wed, 15 Jul 2026 06:35:00 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wjwx8-0000vE-F0 for qemu-devel@nongnu.org; Wed, 15 Jul 2026 06:34:59 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-490cf322ed0so37729835e9.1 for ; Wed, 15 Jul 2026 03:34:58 -0700 (PDT) Received: from athena ([2a06:5b06:b600:300:c44f:405f:37a5:5992]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f464a974csm17292644f8f.18.2026.07.15.03.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 03:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1784111697; x=1784716497; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PqCHlCT/qklGcub9P4p3p6WygT/7lJQfYfoI/OJ3UEo=; b=atl/JfPVOC7JI3pa8txHj00KWQVKxZ4ZdNF8kmQVxbSRK05IhG6clkMMwaa1+8cLXw YgUUWvbDxwAjgn54RSvP0gjMmIu7atsz2SPTrJbFK1Ntz1/jKue+qmvcvpdIWD2TEfbJ XhjBXztLYVb5saQHBJ5Dzvxlthi7jkmD5y/U7W5p5QNQcjvBdrs0PBVl6us9xXqOFKQM 2XbrAhMlULOR8hFN3G/UCdcrXxvZEkI/3mdaFgs+sAdSYgBKEUg89wRVtrXQ2Rt8imF4 qnxANEyQjygX5Yne+MuKcBLxx/FyStGKBFaR3Z9tZPDSnFjVqhR1fBC/XmE4aNkgVu0N zXjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784111697; x=1784716497; h=content-transfer-encoding:mime-version:references:in-reply-to :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=PqCHlCT/qklGcub9P4p3p6WygT/7lJQfYfoI/OJ3UEo=; b=Tr7QvKxCPhUC6dErnGUonz1QOf10sfdT7dPAkx2yV1aUkfAZcvbjdjVFAqmwD35oZM D0mdUWYuaJbRMWpcH1uMKIpxeM1XZsDz97Sr2kbx0c+tIgjGYe2gntyG/3pw02XNSeB1 Vk7O1QDy4GYuyvrhTYA6cVyR7zTJzTmoCBaHRFqQLjBGFnqLLrLo7xW73YLUP/tXf1wC wuQ6vc28ujbbJNbNSemOUSxHk5Wxbnag4f/yANo/fa3EbsyO4nbOg/0nZA8y/Unx3WDu sZY3qnELc/YRxyKboLdUBay8XQ+j9g5w/QADKcUgU8E57DmVA3pnBEJR295F1rFeiuvc 5UBQ== X-Forwarded-Encrypted: i=1; AHgh+RrI4ruP3MOK8R8NQAPEoUyIbIKlQJNoatlq3C5ItRFe7QoI2TK58fenQPUnf8mIbMM310jpL1spObod@nongnu.org X-Gm-Message-State: AOJu0YxR2CtAeTFZdDWlnMA45A29Yc1iIiu0xnBCpQMTJJh9gEhfCDoo DtEcBiUuDVPV58C8TxQi1DLu+rDw3sNjxpuZRb6yM1F1ekXHRbG5CnlqV4P3uTEd8UzTcYe2aT+ AtAgjdrI= X-Gm-Gg: AfdE7clW8QuDrmcGakDjgzadCMTssNBkOX5wVagPhu9FEuW1bQWCha9p4OzRkLoloXZ N4recOlCTMNEeBqsdmcGbCryBxSvuhlq4Zd/oH+5GqQ1vhDC+R7GKPa3EWdmBc3YOKXjw+/ciAu NIxwXvHhMGoWxAdQPpXpPRJERlGK5PhBaltjZmI2Rdbga/bw3sRYEqG5K2gpM1a4fU89hzKREb1 ZhBDIpFhd8YC9p5QtLIyP/75xrl58Bui3+69DRPRlwy/NXb+1LT+qn6Qx710EX28zd7O2xKe+RL CWyABDm24eywL3wp266aY0wZiw2lpH5B3sC9kqrsS8CiEEmnVVguklFFqe45aGiY1vEwy9+EANf OEIHDYwcLRe++JFWgKPtdrq3I3HIO+givysyx7ruj8698TvH2kegjK6KWKu/HxdqHBwvSfUvSzT F0mQ== X-Received: by 2002:a05:600c:8285:b0:493:e46e:157d with SMTP id 5b1f17b1804b1-4953c273dd1mr26121025e9.19.1784111696955; Wed, 15 Jul 2026 03:34:56 -0700 (PDT) From: "Denis V. Lunev" To: qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: den@openvz.org, Kevin Wolf , Hanna Reitz , Vladimir Sementsov-Ogievskiy Subject: [PATCH v2 3/3] iotests/migrate-bitmaps-postcopy-test: replace the timing assertion with a content check Date: Wed, 15 Jul 2026 12:34:51 +0200 Message-ID: <20260715103451.1930909-4-den@openvz.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260715103451.1930909-1-den@openvz.org> References: <20260715103451.1930909-1-den@openvz.org> 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=2a00:1450:4864:20::329; envelope-from=den@openvz.org; helo=mail-wm1-x329.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-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 @openvz.org) X-ZM-MESSAGEID: 1784111749406158500 Content-Type: text/plain; charset="utf-8" `downtime * 10 < postcopy_time` was an unnormalized wall-clock heuristic (commit e80a4150a5) that fails on fast hosts, where the bitmap payload now transfers in under a second. Check the actual invariant instead: right after RESUME, bitmap0's content hash on the destination must not yet match the fully migrated value. Throttle max-bandwidth first, since all-zero chunks skip the payload write and would otherwise let a fast host finish the transfer before the check runs. Signed-off-by: Denis V. Lunev CC: Kevin Wolf CC: Hanna Reitz CC: Vladimir Sementsov-Ogievskiy Reviewed-by: Vladimir Sementsov-Ogievskiy --- .../tests/migrate-bitmaps-postcopy-test | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test b/tests= /qemu-iotests/tests/migrate-bitmaps-postcopy-test index c519e6db8c..33ff2b861f 100755 --- a/tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test +++ b/tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test @@ -160,12 +160,26 @@ class TestDirtyBitmapPostcopyMigration(iotests.QMPTes= tCase): =20 self.vm_b.cmd('migrate-set-capabilities', capabilities=3Dcaps) =20 + # Throttle so the chunks covering our discards (the only ones + # not skipped by the all-zero fast path) can't outrun the check + # below. + self.vm_a.cmd('migrate-set-parameters', max_bandwidth=3D16536) + self.vm_a.cmd('migrate', uri=3D'exec:cat>' + fifo) =20 self.vm_a.cmd('migrate-start-postcopy') =20 event_resume =3D self.vm_b.event_wait('RESUME') self.vm_b_events.append(event_resume) + + # bitmap0 can't already have its final content: that requires + # the bit data to have actually arrived. + result =3D self.vm_b.qmp('x-debug-block-dirty-bitmap-sha256', + node=3D'drive0', name=3D'bitmap0') + assert result['return']['sha256'] !=3D all_discards_sha256 + + self.vm_a.cmd('migrate-set-parameters', max_bandwidth=3D0) + return (event_resume, discards1_sha256, all_discards_sha256) =20 def test_postcopy_success(self): @@ -186,7 +200,6 @@ class TestDirtyBitmapPostcopyMigration(iotests.QMPTestC= ase): downtime =3D event_dist(event_stop, event_resume) postcopy_time =3D event_dist(event_resume, event_complete) =20 - assert downtime * 10 < postcopy_time if debug: print('downtime:', downtime) print('postcopy_time:', postcopy_time) --=20 2.53.0