From nobody Sat May 30 17:44:12 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=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1778620607; cv=none; d=zohomail.com; s=zohoarc; b=gwZHgyae1JNyLJrjJ93QeINUfdVCiUfKDucLmPogYCKL3f2F18fZvHLyI006GjTzV05gr/JLMGQ3Qu+YHGNA3H3NXoNucK3EW3Puv+qy/a2hDfbrJLedKaCn/FJCbqmPEte4jQflPAkBksNb0veygOfYm7Jx1dcwoeynkO9m94E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778620607; 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=dK9uBroXGIz4etI8qyTgwDI0YhmV4Tjq0hi3RQ/SAuk=; b=gCMfOykYyYMuK68m8O0s1gv2l5nT7hAjb38oqq8fmZJ75Zg8G3FpAkvqQv8suG4w69yD3UQ1XpDbR4KC/AY3Htbf889yrSTSflogxQsoHcoA8IIiAA+q7wHDcI8YsrZXgzsoG1XAwkoZFc7mcZOXgXvhB5ClaavPxtY+nL4QlKU= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177862060782863.13654943097083; Tue, 12 May 2026 14:16:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMuPe-0006b8-1p; Tue, 12 May 2026 17:13:10 -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 1wMuPE-0004nR-CW for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:46 -0400 Received: from smtp-out1.suse.de ([195.135.223.130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wMuPC-0004tC-SH for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:44 -0400 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2717C623A5; Tue, 12 May 2026 21:12:29 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 61CE2593A9; Tue, 12 May 2026 21:12:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QMCsDLyXA2r+IAAAD6G6ig (envelope-from ); Tue, 12 May 2026 21:12:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620349; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dK9uBroXGIz4etI8qyTgwDI0YhmV4Tjq0hi3RQ/SAuk=; b=esCbElSh9ArR3w0Rb111AaduNbB0Mfhm7+E+3Kr6i/1d9NiTKfxoHyo6TioUU/pZJITqhl vPXi+Y7RiFoWnfaX3Q0KChL1jmgS1/R9QOPIIPlu/dvUKgYqLsfLwO78ZazhjOES1AnFs9 m9ShYO5tIsrp3Ob6ueFi2nK/uaDLgkE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620349; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dK9uBroXGIz4etI8qyTgwDI0YhmV4Tjq0hi3RQ/SAuk=; b=ca6vFLi4zBQVh7qPoV/h6u3zk5mETuUJzUGjHsttqAIjajvqaFRQeej+aCj5JFoaER1M6O e9UYRqhi+In84jCQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=esCbElSh; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=ca6vFLi4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620349; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dK9uBroXGIz4etI8qyTgwDI0YhmV4Tjq0hi3RQ/SAuk=; b=esCbElSh9ArR3w0Rb111AaduNbB0Mfhm7+E+3Kr6i/1d9NiTKfxoHyo6TioUU/pZJITqhl vPXi+Y7RiFoWnfaX3Q0KChL1jmgS1/R9QOPIIPlu/dvUKgYqLsfLwO78ZazhjOES1AnFs9 m9ShYO5tIsrp3Ob6ueFi2nK/uaDLgkE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620349; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dK9uBroXGIz4etI8qyTgwDI0YhmV4Tjq0hi3RQ/SAuk=; b=ca6vFLi4zBQVh7qPoV/h6u3zk5mETuUJzUGjHsttqAIjajvqaFRQeej+aCj5JFoaER1M6O e9UYRqhi+In84jCQ== From: Fabiano Rosas To: qemu-devel@nongnu.org Cc: Peter Maydell Subject: [PULL 1/4] tests/qtest/libqtest: Replace QTEST_TRACE with QTEST_QEMU_ARGS Date: Tue, 12 May 2026 18:12:18 -0300 Message-ID: <20260512211221.3173-2-farosas@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260512211221.3173-1-farosas@suse.de> References: <20260512211221.3173-1-farosas@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; URIBL_BLOCKED(0.00)[suse.de:dkim,suse.de:email,suse.de:mid,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,linaro.org:email]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim, suse.de:email, suse.de:mid, linaro.org:email] X-Rspamd-Queue-Id: 2717C623A5 X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Score: -3.01 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=195.135.223.130; envelope-from=farosas@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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 @suse.de) X-ZM-MESSAGEID: 1778620609561154100 Content-Type: text/plain; charset="utf-8" The QTEST_TRACE environment variable allows for any QEMU command line option to be passed if used like so: export QTEST_TRACE=3D"-trace tracepoint -more -opts -here" Formalize that usage by accepting a new QTEST_QEMU_ARGS variable. Since the QTEST_TRACE now becomes redundant, remove its usage. Reviewed-by: Peter Maydell Link: https://lore.kernel.org/qemu-devel/20260429003130.15164-2-farosas@sus= e.de [end all fmt strings with space] Signed-off-by: Fabiano Rosas --- tests/qtest/libqtest.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index 116a8a3258..dc4a665cfa 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -454,28 +454,27 @@ gchar *qtest_qemu_args(const char *extra_args) { g_autofree gchar *socket_path =3D qtest_socket_path("sock"); g_autofree gchar *qmp_socket_path =3D qtest_socket_path("qmp"); - const char *trace =3D g_getenv("QTEST_TRACE"); - g_autofree char *tracearg =3D trace ? g_strdup_printf("-trace %s ", tr= ace) : - g_strdup(""); + const char *args_from_env =3D g_getenv("QTEST_QEMU_ARGS"); + gchar *args =3D g_strdup_printf( - "%s" "-qtest unix:%s " "-qtest-log %s " "-chardev socket,path=3D%s,id=3Dchar0 " "-mon chardev=3Dchar0,mode=3Dcontrol " "-display none " "-audio none " - "%s" - "%s" - " -accel qtest", + "%s " + "%s " + "%s " + "-accel qtest", =20 - tracearg, socket_path, getenv("QTEST_LOG") ? DEV_STDERR : DEV_NULL, qmp_socket_path, can_exit_with_parent() ? - "-run-with exit-with-parent=3Don " : "", - extra_args ?: ""); + "-run-with exit-with-parent=3Don" : "", + extra_args ?: "", + args_from_env ?: ""); =20 return args; } --=20 2.51.0 From nobody Sat May 30 17:44:12 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=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1778620637; cv=none; d=zohomail.com; s=zohoarc; b=Nv4W7G7agaBV6BlkSmcXBHWbXMIwkDB5/Zvq48V69oVmqIi1wdcMOuG/P4F1MNxZJdulywWOr9qKuraYmVWHWFMlDY3UmaZaG3IGmBxJgIggpq9zS1qi5Tonxcn8FEBwynZ471y18Y8NHKgh1QYbZ097/n4MP9pFdQSkra7iPiQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778620637; 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=jnoN/Tz6O4AzecKz+r6ebQN9d3JB//KpmQgWzPeHqik=; b=RtXMcmOLBB7NynQ4ihcPLONsd0H9ppCqOTlcHUFfwd2H4Xv+YiwFQ/t5r96YnMY0JZi1GVyCSWvFlNFFUqW7S9xYeWXw7SYU2vlI8Orltw4fRcVdrYmxZmsrfp8lkqoz+cca/geDuiwpHdAKdI2SCuWWJ6SeYgnZPnm1vz66iHs= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1778620637736977.7816927267846; Tue, 12 May 2026 14:17:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMuPP-0005Gp-3X; Tue, 12 May 2026 17:12:55 -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 1wMuPB-0004kP-7e for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:42 -0400 Received: from smtp-out2.suse.de ([195.135.223.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wMuP5-0004r7-59 for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:40 -0400 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4317175FC7; Tue, 12 May 2026 21:12:30 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 7E7FE593A9; Tue, 12 May 2026 21:12:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id WOD5E72XA2r+IAAAD6G6ig (envelope-from ); Tue, 12 May 2026 21:12:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jnoN/Tz6O4AzecKz+r6ebQN9d3JB//KpmQgWzPeHqik=; b=OQ2rS17j5LpNbKmZA+IH7LfEh5tZLl//axCTmxOwgOuojJ2ChVrqfcRtgUILVh2+tIObmx LiJosUxgSHm/1klUKP9Keg4TdIhFgdJEZf6q9Cw8+VT8XplyPFj/tSQ9gtzaT0nyyTe90P Sev0e2T1Dcni7zvwmGqwMcC5yGLLAEE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jnoN/Tz6O4AzecKz+r6ebQN9d3JB//KpmQgWzPeHqik=; b=tOEKz8xGgsUeqd29LMjpGDLFn8ayEc22QurqnVrIhcpauBlBJCArEk3OdWxQJyuKQpqjxG /+97sGjDuxe9pSAg== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jnoN/Tz6O4AzecKz+r6ebQN9d3JB//KpmQgWzPeHqik=; b=OQ2rS17j5LpNbKmZA+IH7LfEh5tZLl//axCTmxOwgOuojJ2ChVrqfcRtgUILVh2+tIObmx LiJosUxgSHm/1klUKP9Keg4TdIhFgdJEZf6q9Cw8+VT8XplyPFj/tSQ9gtzaT0nyyTe90P Sev0e2T1Dcni7zvwmGqwMcC5yGLLAEE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jnoN/Tz6O4AzecKz+r6ebQN9d3JB//KpmQgWzPeHqik=; b=tOEKz8xGgsUeqd29LMjpGDLFn8ayEc22QurqnVrIhcpauBlBJCArEk3OdWxQJyuKQpqjxG /+97sGjDuxe9pSAg== From: Fabiano Rosas To: qemu-devel@nongnu.org Cc: Peter Xu Subject: [PULL 2/4] tests/qtest: Individual verbose switches Date: Tue, 12 May 2026 18:12:19 -0300 Message-ID: <20260512211221.3173-3-farosas@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260512211221.3173-1-farosas@suse.de> References: <20260512211221.3173-1-farosas@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; URIBL_BLOCKED(0.00)[suse.de:mid,suse.de:email,imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,suse.de:email]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.80 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=195.135.223.131; envelope-from=farosas@suse.de; helo=smtp-out2.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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 @suse.de) X-ZM-MESSAGEID: 1778620638346158500 Content-Type: text/plain; charset="utf-8" Allow logging to be set for specific parts of QTest. Having a single QTEST_LOG knob creates an output stream that is almost useless due to spamming from some operations. Add a backward-compatible way of selecting which parts will be made verbose. Reuse the existing QTEST_LOG variable. The new options are: QTEST_LOG=3D fuzz - fuzz.c qga - unit/test-qga.c qmp - libqmp.c qtest - QTest device, i.e. -qtest-log option test - generic term for usage of all tests E.g.: QTEST_LOG=3Dfuzz,qga,qmp,qtest,test equivalent to QTEST_LOG=3D1 QTEST_LOG=3Dqmp,qtest enables logging of qmp operations from libqmp.c and logging of the qtest device. QTEST_LOG=3Dtest,qmp enable test output and libqmp.c output. QTEST_LOG=3D-qmp enable all output, except for libqmp.c Acked-by: Peter Xu Link: https://lore.kernel.org/qemu-devel/20260429003130.15164-3-farosas@sus= e.de Signed-off-by: Fabiano Rosas --- tests/qtest/fuzz/fuzz.c | 7 ++-- tests/qtest/fuzz/generic_fuzz.c | 2 +- tests/qtest/libqmp.c | 7 ++-- tests/qtest/libqtest.c | 56 ++++++++++++++++++++++++++- tests/qtest/libqtest.h | 11 ++++++ tests/qtest/migration/framework.c | 2 +- tests/qtest/migration/framework.h | 5 ++- tests/qtest/migration/precopy-tests.c | 2 +- tests/unit/meson.build | 2 +- tests/unit/test-qga.c | 2 +- 10 files changed, 82 insertions(+), 14 deletions(-) diff --git a/tests/qtest/fuzz/fuzz.c b/tests/qtest/fuzz/fuzz.c index ca248a51a6..d235598961 100644 --- a/tests/qtest/fuzz/fuzz.c +++ b/tests/qtest/fuzz/fuzz.c @@ -105,7 +105,7 @@ static void usage(char *path) "Set the environment variable FUZZ_SERIALIZE_QTEST=3D1 to seria= lize\n" "QTest commands into an ASCII protocol. Useful for building cra= sh\n" "reproducers, but slows down execution.\n\n" - "Set the environment variable QTEST_LOG=3D1 to log all qtest co= mmands" + "Set the environment variable QTEST_LOG=3Dfuzz to log all qtest= commands" "\n"); exit(0); } @@ -168,6 +168,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv, char = ***envp) GString *cmd_line; gchar *pretty_cmd_line; bool serialize =3D false; + bool verbose =3D qtest_verbose("fuzz"); =20 /* Initialize qgraph and modules */ qos_graph_init(); @@ -211,14 +212,14 @@ int LLVMFuzzerInitialize(int *argc, char ***argv, cha= r ***envp) /* Run QEMU's system main with the fuzz-target dependent arguments */ cmd_line =3D fuzz_target->get_init_cmdline(fuzz_target); g_string_append_printf(cmd_line, " %s -qtest /dev/null ", - getenv("QTEST_LOG") ? "" : "-qtest-log none"); + verbose ? "" : "-qtest-log none"); =20 /* Split the runcmd into an argv and argc */ wordexp_t result; wordexp(cmd_line->str, &result, 0); g_string_free(cmd_line, true); =20 - if (getenv("QTEST_LOG")) { + if (verbose) { pretty_cmd_line =3D g_strjoinv(" ", result.we_wordv + 1); printf("Starting %s with Arguments: %s\n", result.we_wordv[0], pretty_cmd_line); diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuz= z.c index 440de25034..e48f868775 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -776,7 +776,7 @@ static void generic_pre_fuzz(QTestState *s) if (!getenv("QEMU_FUZZ_OBJECTS")) { usage(); } - if (getenv("QTEST_LOG")) { + if (qtest_verbose("fuzz")) { qtest_log_enabled =3D 1; } if (getenv("QEMU_AVOID_DOUBLE_FETCH")) { diff --git a/tests/qtest/libqmp.c b/tests/qtest/libqmp.c index 16fe546885..cd12bd2678 100644 --- a/tests/qtest/libqmp.c +++ b/tests/qtest/libqmp.c @@ -17,6 +17,7 @@ #include "qemu/osdep.h" =20 #include "libqmp.h" +#include "libqtest.h" =20 #ifndef _WIN32 #include @@ -62,7 +63,7 @@ static void qmp_response(void *opaque, QObject *obj, Erro= r *err) QDict *qmp_fd_receive(int fd) { QMPResponseParser qmp; - bool log =3D getenv("QTEST_LOG") !=3D NULL; + bool log =3D qtest_verbose("qmp"); =20 qmp.response =3D NULL; json_message_parser_init(&qmp.parser, qmp_response, &qmp, NULL); @@ -149,7 +150,7 @@ _qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num, =20 /* No need to send anything for an empty QObject. */ if (qobj) { - int log =3D getenv("QTEST_LOG") !=3D NULL; + bool log =3D qtest_verbose("qmp"); GString *str =3D qobject_to_json(qobj); =20 /* @@ -220,7 +221,7 @@ void qmp_fd_send(int fd, const char *fmt, ...) =20 void qmp_fd_vsend_raw(int fd, const char *fmt, va_list ap) { - bool log =3D getenv("QTEST_LOG") !=3D NULL; + bool log =3D qtest_verbose("qmp"); char *str =3D g_strdup_vprintf(fmt, ap); =20 if (log) { diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index dc4a665cfa..bf9284b9a1 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -469,7 +469,7 @@ gchar *qtest_qemu_args(const char *extra_args) "-accel qtest", =20 socket_path, - getenv("QTEST_LOG") ? DEV_STDERR : DEV_NULL, + qtest_verbose("qtest") ? DEV_STDERR : DEV_NULL, qmp_socket_path, can_exit_with_parent() ? "-run-with exit-with-parent=3Don" : "", @@ -2142,3 +2142,57 @@ bool mkimg(const char *file, const char *fmt, unsign= ed size_mb) =20 return ret && !err; } + +bool qtest_verbose(const char *domain) +{ + const char *log =3D getenv("QTEST_LOG"); + char *found; + + assert(domain); + + if (log) { + /* + * verbose=3Dtrue for all domains if: + * QTEST_LOG=3D + * QTEST_LOG=3D1 + * other one-character variations + */ + if (log[0] =3D=3D '\0' || log[1] =3D=3D '\0') { + return true; + } + + /* + * verbose=3Dtrue for specified domains if: + * QTEST_LOG=3D + * QTEST_LOG=3D, + * allows other separators, except - and + + * + * verbose=3Dfalse for specified domains if: + * QTEST_LOG=3D- + * QTEST_LOG=3D,- (only false for domain2) + * allows other separators, except - and + + */ + found =3D strstr(log, domain); + + if (found) { + /* reject options given twice */ + assert(!strstr(found + strlen(domain), domain)); + + if (found > log) { + ptrdiff_t i =3D found - log - 1; + if (log[i] =3D=3D '-') { + return false; + } + } + return true; + } else { + /* + * If filtering out a specific domain, all others are + * enabled. + */ + return !!strstr(log, "-"); + } + } + + return false; +} diff --git a/tests/qtest/libqtest.h b/tests/qtest/libqtest.h index 9c118c89ca..950ea2baaf 100644 --- a/tests/qtest/libqtest.h +++ b/tests/qtest/libqtest.h @@ -1178,4 +1178,15 @@ bool have_qemu_img(void); */ bool mkimg(const char *file, const char *fmt, unsigned size_mb); =20 +/** + * qtest_verbose: + * @domain: The logging domain + * + * Read the QTEST_LOG environment variable and return whether the + * specified domain is enabled for verbose logging. Enable specific + * logging domains with QTEST_LOG=3D or use QTEST_LOG=3D- = to + * enable all domains except for the specific one. + */ +bool qtest_verbose(const char *domain); + #endif diff --git a/tests/qtest/migration/framework.c b/tests/qtest/migration/fram= ework.c index 9f71d51f1e..49c7f37e60 100644 --- a/tests/qtest/migration/framework.c +++ b/tests/qtest/migration/framework.c @@ -365,7 +365,7 @@ int migrate_args(char **from, char **to, const char *ur= i, MigrateStart *args) g_assert_not_reached(); } =20 - if (!getenv("QTEST_LOG") && args->hide_stderr) { + if (!qtest_verbose("test") && args->hide_stderr) { #ifndef _WIN32 ignore_stderr =3D "2>/dev/null"; #else diff --git a/tests/qtest/migration/framework.h b/tests/qtest/migration/fram= ework.h index 79604c60f5..bb534b8110 100644 --- a/tests/qtest/migration/framework.h +++ b/tests/qtest/migration/framework.h @@ -118,8 +118,9 @@ typedef void (*TestMigrateEndHook)(QTestState *from, */ typedef struct { /* - * QTEST_LOG=3D1 may override this. When QTEST_LOG=3D1, we always dum= p errors - * unconditionally, because it means the user would like to be verbose. + * QTEST_LOG=3Dtest may override this in which case we dump errors + * unconditionally, because it means the user would like to be + * verbose. */ bool hide_stderr; MemType mem_type; diff --git a/tests/qtest/migration/precopy-tests.c b/tests/qtest/migration/= precopy-tests.c index a0e3ff0547..e65d9e04a5 100644 --- a/tests/qtest/migration/precopy-tests.c +++ b/tests/qtest/migration/precopy-tests.c @@ -130,7 +130,7 @@ static bool mlock_check(void) static int new_rdma_link(char *buffer, bool ipv6) { char cmd[256]; - bool verbose =3D g_getenv("QTEST_LOG"); + bool verbose =3D qtest_verbose("test"); =20 snprintf(cmd, sizeof(cmd), "IP_FAMILY=3D%s %s detect %s", ipv6 ? "ipv6" : "ipv4", RDMA_MIGRATION_HELPER, diff --git a/tests/unit/meson.build b/tests/unit/meson.build index 03d36748c7..de64f9501f 100644 --- a/tests/unit/meson.build +++ b/tests/unit/meson.build @@ -161,7 +161,7 @@ if have_system endif =20 if have_ga and host_os =3D=3D 'linux' - tests +=3D {'test-qga': ['../qtest/libqmp.c']} + tests +=3D {'test-qga': ['../qtest/libqmp.c', '../qtest/libqtest.c']} test_deps +=3D {'test-qga': qga} endif =20 diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c index 587e30c7e4..01ccf826e6 100644 --- a/tests/unit/test-qga.c +++ b/tests/unit/test-qga.c @@ -68,7 +68,7 @@ fixture_setup(TestFixture *fixture, gconstpointer data, g= char **envp) cmd =3D g_strdup_printf("%s%cqga%cqemu-ga -m unix-listen -t %s -p %s %= s %s", cwd, G_DIR_SEPARATOR, G_DIR_SEPARATOR, fixture->test_dir, path, - getenv("QTEST_LOG") ? "-v" : "", + qtest_verbose("qga") ? "-v" : "", extra_arg ?: ""); g_shell_parse_argv(cmd, NULL, &argv, &error); g_assert_no_error(error); --=20 2.51.0 From nobody Sat May 30 17:44:12 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=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1778622062; cv=none; d=zohomail.com; s=zohoarc; b=QfndFxxUaubPtZ7MNEJGTyHrT5i+cDrosmawH0EMh96CzJKjWf3WT46cGQ+aPSxVTZEwLQLWKuoiCEv+AfgWvA4B3EZXaTiPkRajRarx+w5YpFB0On4kLP/8qzPqDnyoitLUGVFzZPTZzAWDoL2n3Fmrf5C9v6FP6LkxDjL7TDw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778622062; 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=0IKrPDUpYODAuw0gabCm8QF0LBdb03WYxgmC4T/73BE=; b=MYgfvO2UIhHKiWluC9ArQJqe0/d1+C1P/U15F7oONIwDmKRvWKdYWqLf1ZwMm07hjyF6n+1WhmYiwYhonbksW+uO4FAec7asXfhHKLfa94Td6+IW91RJsy81elZk5xBK8uIyGvydtgDsDHH7YKtZGOiVXYLmWwE7UYEU28CFUls= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177862206276962.636032093526524; Tue, 12 May 2026 14:41:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMuPg-0006lg-1R; Tue, 12 May 2026 17:13:12 -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 1wMuPK-0004wR-MZ for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:50 -0400 Received: from smtp-out1.suse.de ([195.135.223.130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wMuPI-0004uG-R6 for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:50 -0400 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8B9F2623A6; Tue, 12 May 2026 21:12:31 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 99396593A9; Tue, 12 May 2026 21:12:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id CBt8Gr6XA2r+IAAAD6G6ig (envelope-from ); Tue, 12 May 2026 21:12:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620351; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0IKrPDUpYODAuw0gabCm8QF0LBdb03WYxgmC4T/73BE=; b=ODYGb2hE8H2K5c0GWFKlYN7tPHyo1BOfa16wWCMF/dMxIBeRbCMHTfDHrcwMWWqxzhq9Y3 tf7Gt7mPS7gh1uwBX5eDcIF4FEp7FWgKTmta+vkdM/dduY+/79FEGF2k3n34zzsgx6qLMy J4U73lanU7Qpetx6nOyUS7FJRS6WsAk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620351; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0IKrPDUpYODAuw0gabCm8QF0LBdb03WYxgmC4T/73BE=; b=+SG/X6JL4W34V62W9x4O123zBv2I+zINhBOajUwz/dAUVam6kbDlajWePpqYAb2/6Zhjy6 bJ0gH8MaUMTLcZDA== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=ODYGb2hE; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b="+SG/X6JL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620351; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0IKrPDUpYODAuw0gabCm8QF0LBdb03WYxgmC4T/73BE=; b=ODYGb2hE8H2K5c0GWFKlYN7tPHyo1BOfa16wWCMF/dMxIBeRbCMHTfDHrcwMWWqxzhq9Y3 tf7Gt7mPS7gh1uwBX5eDcIF4FEp7FWgKTmta+vkdM/dduY+/79FEGF2k3n34zzsgx6qLMy J4U73lanU7Qpetx6nOyUS7FJRS6WsAk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620351; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0IKrPDUpYODAuw0gabCm8QF0LBdb03WYxgmC4T/73BE=; b=+SG/X6JL4W34V62W9x4O123zBv2I+zINhBOajUwz/dAUVam6kbDlajWePpqYAb2/6Zhjy6 bJ0gH8MaUMTLcZDA== From: Fabiano Rosas To: qemu-devel@nongnu.org Cc: Peter Maydell , Pierrick Bouvier Subject: [PULL 3/4] docs/devel/qtest: Mention environment variables usage Date: Tue, 12 May 2026 18:12:20 -0300 Message-ID: <20260512211221.3173-4-farosas@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260512211221.3173-1-farosas@suse.de> References: <20260512211221.3173-1-farosas@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; ARC_NA(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:email,suse.de:mid,linaro.org:email,qualcomm.com:email]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; URIBL_BLOCKED(0.00)[linaro.org:email,qualcomm.com:email,suse.de:dkim,suse.de:email,suse.de:mid,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Queue-Id: 8B9F2623A6 X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Score: -3.01 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=195.135.223.130; envelope-from=farosas@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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 @suse.de) X-ZM-MESSAGEID: 1778622064794154100 Content-Type: text/plain; charset="utf-8" Document the QTEST_ environment variables. Only include the ones used by QTest itself, don't document test-specific variables as they are more prone to change. Suggested-by: Peter Maydell Reviewed-by: Pierrick Bouvier Reviewed-by: Peter Maydell Link: https://lore.kernel.org/qemu-devel/20260429003130.15164-4-farosas@sus= e.de [picked rst-formatted version from Peter Maydell] Signed-off-by: Fabiano Rosas --- docs/devel/testing/qtest.rst | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/docs/devel/testing/qtest.rst b/docs/devel/testing/qtest.rst index 73ef7702b7..f96db05c2a 100644 --- a/docs/devel/testing/qtest.rst +++ b/docs/devel/testing/qtest.rst @@ -91,3 +91,47 @@ libqtest API reference ---------------------- =20 .. kernel-doc:: tests/qtest/libqtest.h + + +QTest valid environment variables +--------------------------------- + +A few environment variables are used to point QTest at artifacts to be +used in the tests, mostly QEMU binaries or to control the behavior of +the tests. Environment variables are set automatically by the build +system, but it can be useful to alter them when running tests +manually. The following are the environment variables recognized by +QTest, not including test-specific ones: + +``QTEST_QEMU_BINARY`` + The QEMU binary itself (generally a ``qemu-system-`` binary). + +``QTEST_QEMU_ARGS`` + Extra arguments for the QEMU command line. + +``QTEST_QEMU_IMG`` + The ``qemu-img`` binary. + +``QTEST_QEMU_STORAGE_DAEMON_BINARY`` + The ``qemu-storage-daemon`` binary. + +``QTEST_STOP`` + Instruct QTest to stop the QEMU process with SIGSTOP before continuing + execution. + +``QTEST_LOG`` + Comma-separated list of log domains to allow verbose logging. + The currently-defined log domains are: + + ``qmp`` + controls verbose output of QMP command invocations. + + ``qtest`` + controls verbose output of QTest operations. + + ``test`` + controls verbose output of tests. + + A dash ``-`` used in front of a log domain name has the effect + of enabling verbose logging for all other domains while + keeping it disabled for the specified domain. --=20 2.51.0 From nobody Sat May 30 17:44:12 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=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1778620410; cv=none; d=zohomail.com; s=zohoarc; b=MP2mtNv5fl2AaBsAeQY54EO+f2mCI/Ln8qiPihcNZAWbum4iPQEVE7mzyoYxEBibYVKb03hXMmVKTKChqrea9WzTNoUxyp4b8Yn5S9qwansJQRHtbC9tKkzw7y+Q2ThRy0WZAaOBXfMReCaEOpnnfrdjB1drMGgJned3zFrmL5I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778620410; 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=NECWdCLypRsj1vTLHE3330kjB9zLgieAyYq8O97ZDpo=; b=e41hw4+CoHWdOVXt/KPqtvvMy+SizWREk1jZf5ADUOd8h/lTfjVVMjzvmAJNv2t1sCIL+RdqAM614jMWhePKhxqOzpMz1ymQewqcHtviTBvU5rtawzI1eTB0iWc1USn5PowX7hREO2iQ8EyiDnTfKeKsjrg4DrhmS6PFUAK+Fsc= 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=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1778620410688813.9359620393988; Tue, 12 May 2026 14:13:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMuPb-0006ZW-MK; Tue, 12 May 2026 17:13:09 -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 1wMuPI-0004rG-Fq for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:48 -0400 Received: from smtp-out2.suse.de ([2a07:de40:b251:101:10:150:64:2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wMuPG-0004te-Mw for qemu-devel@nongnu.org; Tue, 12 May 2026 17:12:48 -0400 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 0C25E76219; Tue, 12 May 2026 21:12:33 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E108F593A9; Tue, 12 May 2026 21:12:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 6IDyK7+XA2r+IAAAD6G6ig (envelope-from ); Tue, 12 May 2026 21:12:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620353; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NECWdCLypRsj1vTLHE3330kjB9zLgieAyYq8O97ZDpo=; b=VRE16G/iwRnxXKveTd+yhtFW5f6t+9o1zZVdQQGkNLinpTgCoEUBb+AbaR7lchNjQJwdX4 OzTDEeopa4QISTDG+zQD2lcpGVXKecY3OLy1GWUgIFgxU24r3rKMz9/KH7Hwf9i1KhnaRb RtqDDGobXe5Bu9B3gMAVwVuGWckSNCs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620353; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NECWdCLypRsj1vTLHE3330kjB9zLgieAyYq8O97ZDpo=; b=mT7iwXUPJTf7tc2wgRZl4R7Fweo/Z8zg1FbyIico0Aol942zve5Pg6Wuxgcx/n/FpYAcxC /YthEjSpiYcPFqAQ== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778620353; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NECWdCLypRsj1vTLHE3330kjB9zLgieAyYq8O97ZDpo=; b=VRE16G/iwRnxXKveTd+yhtFW5f6t+9o1zZVdQQGkNLinpTgCoEUBb+AbaR7lchNjQJwdX4 OzTDEeopa4QISTDG+zQD2lcpGVXKecY3OLy1GWUgIFgxU24r3rKMz9/KH7Hwf9i1KhnaRb RtqDDGobXe5Bu9B3gMAVwVuGWckSNCs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778620353; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NECWdCLypRsj1vTLHE3330kjB9zLgieAyYq8O97ZDpo=; b=mT7iwXUPJTf7tc2wgRZl4R7Fweo/Z8zg1FbyIico0Aol942zve5Pg6Wuxgcx/n/FpYAcxC /YthEjSpiYcPFqAQ== From: Fabiano Rosas To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-stable@nongnu.org, Eric Auger Subject: [PULL 4/4] tests/qtest/iommu-smmuv3-test: Skip if no TCG GICv3 device present Date: Tue, 12 May 2026 18:12:21 -0300 Message-ID: <20260512211221.3173-5-farosas@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260512211221.3173-1-farosas@suse.de> References: <20260512211221.3173-1-farosas@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.80 X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,suse.de:mid,linaro.org:email,nongnu.org:email]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_THREE(0.00)[4]; RCVD_TLS_ALL(0.00)[] 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=2a07:de40:b251:101:10:150:64:2; envelope-from=farosas@suse.de; helo=smtp-out2.suse.de 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @suse.de) X-ZM-MESSAGEID: 1778620413001158500 Content-Type: text/plain; charset="utf-8" From: Peter Maydell On a KVM-only (--disable-tcg) build, the iommu-smmuv3 qtest fails: qemu-system-aarch64: QTest does not support GICv3 emulation Broken pipe ../../tests/qtest/libqtest.c:201: kill_qemu() tried to terminate QEMU proce= ss but encountered exit status 1 (expected 0) This is because the test runs the virt board with the qtest accelerator and gic-version=3D3. In the virt board this selects the TCG (emulated) GICv3, but in a --disable-tcg build we don't compile that device, only the KVM GICv3 (which isn't usable with qtest). Add a check to the test so we skip it if the arm-gicv3 device isn't in the QEMU binary. Cc: qemu-stable@nongnu.org Fixes: d8d19c31b220142641 ("tests/qtest: Add SMMUv3 bare-metal test using i= ommu-testdev") Signed-off-by: Peter Maydell Reviewed-by: Fabiano Rosas Reviewed-by: Eric Auger Signed-off-by: Fabiano Rosas --- tests/qtest/iommu-smmuv3-test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qtest/iommu-smmuv3-test.c b/tests/qtest/iommu-smmuv3-tes= t.c index dae9821b92..708fae5fd3 100644 --- a/tests/qtest/iommu-smmuv3-test.c +++ b/tests/qtest/iommu-smmuv3-test.c @@ -64,6 +64,11 @@ static void run_smmuv3_translation(const QSMMUTestConfig= *cfg) g_test_skip("virt machine not available"); return; } + if (!qtest_has_device("arm-gicv3")) { + /* This can happen for a KVM-only build: qtest uses the TCG GICv3 = */ + g_test_skip("gicv3 not available"); + return; + } =20 /* Initialize QEMU environment for SMMU testing */ qts =3D qtest_init("-machine virt,acpi=3Doff,gic-version=3D3,iommu=3Ds= mmuv3 " --=20 2.51.0