From nobody Sun Jul 26 13:29: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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1781431783; cv=none; d=zohomail.com; s=zohoarc; b=Qj8BGFTBPC6aqWJ+S7ln15vNylZKDpHX31mblxFo3+s2mJ3BPNzppQyBe+8Ppinjv6auWc4v8d0K1Hs1Uh61obOQ/6733bOmxJp8HLcInTeaIJi8Xt+va9i1+ed19OwU2uFelshJSIzaKW6Sow0tqo0cl9lUbb3RdD+kaY10XNU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781431783; h=Content-Type: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=Ip09JP+AWJu43CooVYcaHOAYsyo50ssO3NlA13nZ4z8=; b=AAHGL3baAS7WXRKgb0vJFFDxcUZJnYaF9iUioqX33I3sQABn4Pt33r/T8WgdYcPEjIJReQTS5Reqj2r+Co+gnZuUpfV8/BB32nFTuCXEHPG2xYDCY9pvXXM/aDhDkqQi6YnXXSb0bLdavngn3X5STMvmuuNfWJQXukzNHFL46zY= 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 1781431782931645.6439911935; Sun, 14 Jun 2026 03:09:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wYhmD-0002X1-O7; Sun, 14 Jun 2026 06:09:13 -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 1wYhmA-0002VK-45 for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:11 -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 1wYhm8-0005ce-BH for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:09 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-4600ddc4017so1687234f8f.0 for ; Sun, 14 Jun 2026 03:09:07 -0700 (PDT) Received: from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f263945sm23642708f8f.8.2026.06.14.03.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2026 03:09:03 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E80C05F9E2; Sun, 14 Jun 2026 11:09:02 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781431747; x=1782036547; 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; bh=Ip09JP+AWJu43CooVYcaHOAYsyo50ssO3NlA13nZ4z8=; b=AIrhFWwsz1bPg4N24jW0ZoyOv840p8GyN4ICO98vwaPEWZ9kJp8GA7RjDmzgj4QKeF ixsebrHgAtHQRB+BAddUqwKFKpZT23gLvvO2LqoCysDEUXHbzvwIlhFMAu1uBc2IE2Ez e2uQ3gV1ZPFJqf45y5lX4Gjb/TdtY4coMiGzK6EGdXDMomPDd6Zh3lv++AYE+LAFNpoY qhHBD8qmiInZmdF7u6rTlKD/t9B44J3SsGxQiH1ACX0Cp09KQ1gQomV8aJ4OOe8flTrY 2tuH61DfIwvwB6q/HLvclPVqrNVhKy+c1MSNoOQ51Z6o1qHiSMr66HhXVuZ7aJBs9rP5 zxFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781431747; x=1782036547; 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; bh=Ip09JP+AWJu43CooVYcaHOAYsyo50ssO3NlA13nZ4z8=; b=ZYMhkQVWtx9/SLUVvQN0lsyEsjA4o9ibLfDlDO/jLfvM012vQPfAgvQU8TyzBrdQtw 489GiwEhppgZ2AHG85jsRjaEVkzJWS/phEJmBg5XEsnjgyD9zXOgMr7zYHaLsNt0VVjY +ifRI8CHhLI6nD9xtiIiUpZ2Y6F+Q0XEFZBANb+c27LgMtTQ+x1tOIIo4Pdpv0p7UoHA qFhDnvVljHizaOQdiGm+l+KDl7zdgCCsR4HT3KHko1DVATVNI8WX76kcnH77sLOejHjH rdxG7tCBn47VLQncB0BORhH2eaPWke+RDnu1cxaOjDKJMh9sznVCh8akaBxkrETQIEOz uXRg== X-Gm-Message-State: AOJu0YwngNyykPTDoBmRLNk+egyd5vNF7Sk3XTrm9othtzRUxhIb36IF lq8c6NdXc9wtvQJlMxUJYo3r+gwhGVMXypwk9fs3Apk+AceXyZDvMPqyAVduAwshO00= X-Gm-Gg: Acq92OGiFn8drHwq2vQANuoYRmVyA1nVz6yPFNGtO1tQC3ecJ9T9iJ2R1eFIvTPQb1T uLfIVVdfFTrdu1dDYPO1OaHoF50BXcyPTHmwQmGeGWrQ+soHEqMji3pKDgBDhvsa6g9YaMJ7YE5 5oBuXNA+3KWDCHFG9idN24g5igvUIPIq1rMlwNApIHA1B0YGeBrrhqbLgyvWrl10E3NUHbEg9Et doKTVyUX1Ag4mdo3Gh0KoyBHkZkIiaujmcxv1tf980HVF9Q9P8wac01az3hCp1fPTVrZBAmAyzQ 1SsYga2uqHsrXEZbnk27rfD6Pg3coe33EhlZVlQlXf+1BJUG/s8tGsNrvhps1coKFsseoOBune4 /8RnDWBIgeK4a3SL0BlyKAYcYSFVUDsvojMkcF6SH/zjYWSVgQewgLpLOB8DST/xAEiBaMGa62M DDa0nk9CgWBjQuOtinUpmrXKw= X-Received: by 2002:a05:6000:250f:b0:460:3234:293e with SMTP id ffacd0b85a97d-4606dbd3b1bmr13222526f8f.41.1781431746705; Sun, 14 Jun 2026 03:09:06 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , John Snow , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 1/4] python/qemu: split arg between base and harness lists Date: Sun, 14 Jun 2026 11:08:59 +0100 Message-ID: <20260614100902.885698-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260614100902.885698-1-alex.bennee@linaro.org> References: <20260614100902.885698-1-alex.bennee@linaro.org> 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::42f; envelope-from=alex.bennee@linaro.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 @linaro.org) X-ZM-MESSAGEID: 1781431784051158500 There are argument we add because we want the test harness to control QEMU and arguments we default for handling the display and machine type. Split the obvious ones between base_args and a new list called harness_args. We will leave the complexity of the serial ports for now. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- python/qemu/machine/machine.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index ebb58d5b68c..e8973a87394 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -292,8 +292,8 @@ def _load_io_log(self) -> None: self._iolog =3D iolog.read() =20 @property - def _base_args(self) -> List[str]: - args =3D ['-display', 'none', '-vga', 'none'] + def _harness_args(self) -> List[str]: + args: List[str] =3D [] =20 if self._qmp_set: if self._sock_pair: @@ -307,8 +307,6 @@ def _base_args(self) -> List[str]: args.extend(['-chardev', moncdev, '-mon', 'chardev=3Dmon,mode=3Dcontrol']) =20 - if self._machine is not None: - args.extend(['-machine', self._machine]) for _ in range(self._console_index): args.extend(['-serial', 'null']) if self._console_set: @@ -323,6 +321,13 @@ def _base_args(self) -> List[str]: args.extend(['-device', device]) return args =20 + @property + def _base_args(self) -> List[str]: + args: List[str] =3D ['-display', 'none', '-vga', 'none'] + if self._machine is not None: + args.extend(['-machine', self._machine]) + return args + @property def args(self) -> List[str]: """Returns the list of arguments given to the QEMU binary.""" @@ -366,6 +371,7 @@ def _pre_launch(self) -> None: self._qemu_full_args =3D tuple(chain( self._wrapper, [self._binary], + self._harness_args, self._base_args, self._args )) --=20 2.47.3 From nobody Sun Jul 26 13:29: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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1781431785; cv=none; d=zohomail.com; s=zohoarc; b=R8jlVgdn3nwdIvBMYcKZnCzAzhEkkb9vZlLbdYOlEcIuLc/lJ6BPEGeRW3IWqBvUlRtdm+LN435O72pMtEQZp/Y7Op/SKT0n6AypgvjhaliPF/7YGlhqzZ5JH3YhljQHcHkYexh36lea3qsdPeTfJ6c/l19cO0av97uLBXY5Z4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781431785; h=Content-Type: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=sERDsKFrSOMR+YY8GENahrksk2j3CicdmJMSq7fCAVw=; b=k3CtN4bIL1q/LkaB1nejcj3zYG4ApZit0bwcjJfcrwx2K5PDRXuXCjTz8J9KA6Ki1jPKaDDmvpwWBrRCAgLOzpf8PmKu9V+VJavAAGX6K7z4Pkd/3hxO/A9oToZfi7r3iXQMSh5hX5aR+n4b3Su01VpjgSxvdOcp1WkWxFtzoBI= 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 1781431785357342.5534233407843; Sun, 14 Jun 2026 03:09:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wYhmF-0002X7-CJ; Sun, 14 Jun 2026 06:09:15 -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 1wYhm9-0002VI-Pk for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:11 -0400 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 1wYhm7-0005cG-7s for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:09 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-45eeea039ebso1256510f8f.1 for ; Sun, 14 Jun 2026 03:09:06 -0700 (PDT) Received: from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f2d933esm22055593f8f.33.2026.06.14.03.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2026 03:09:03 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 06DC95FA2F; Sun, 14 Jun 2026 11:09:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781431746; x=1782036546; 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; bh=sERDsKFrSOMR+YY8GENahrksk2j3CicdmJMSq7fCAVw=; b=ZnVe3iFZ7aiYL5GYAqXvS+3/EkMLtEXfPZhVX96vfGifyVI6sBEudkQIVc4awt7oaP ixeIT8cSMRT51/G5bsxoSvQtmuYRPNILRwJxnyr9BHXVLGx8Df2MGr8EPHWX7nL/EW8w FMz9rBe+LO9fgcZG6M1tWjuwFiwQNe5GyZEZysHE7EU+xqzT4yMclOIeq4idfJ12+Qry r17tW4QEM/VGxiGc4m/PGuc5Dv0X6WQksuNZJz4RnaCqyoRbifVzkhVG0whXHLDemjWV kILXN6f9v83bWuIgeWR3rsxdJb7zg+MJFWuRBfoBaPgi4IrpulksiEuN3neRo7Fk7Pw4 Y0oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781431746; x=1782036546; 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; bh=sERDsKFrSOMR+YY8GENahrksk2j3CicdmJMSq7fCAVw=; b=qaLT3hVQjTHZmEiCxCdxIDCkRBuNYaVIipYz6cvMQ/96r9LxP35h3A7bZS5LWiCFAw RIdQYH5zv6m0sEf1JGcXkGAgzRVFV4foHpjfPHHrXN8ob0ROIdiq20zczJJpcxXKSdNI MZZRZW0S9gNsGhvmZkPKdKrhlEeGDMGJjzYqobf17ue0REjOGpYxdmNY3z58a+8VgONf WwyZVGI/GRE762S3ZfwGQBpO2erWBnvg0VdCXG/IAufxMxbQUATBPHXlD0C9+zMg0ElF aonfgSZfCru4uqwCqO9s0owYmaNfhJtCermnmMED8KpYjCu8oandE5mvK1Evspv8cOHj T+pQ== X-Gm-Message-State: AOJu0YyU7CMMbRzjQSlNZ6Or+bEQVyIrSI23EUo237ypG21AWEM5nvEr kMSpdZxtNipihqbM60hjKVJvUtJ0W3Mmhb4WNHUDyNvmT4pXRJqTbtH3VGz0YNXxZmM= X-Gm-Gg: Acq92OG0z0+iGKrofLNmshNkh4jfsVohmFUBye1vxS60V/W1I0qQLbyV1OSZMBg3V06 0OiFdVkSrks6gAB1nTPcjjY1jASG6gt4BhsDfW2w6oRShhAFTZ7v7IjbVX0Mn0uZMBl3w4kIDGE xUpkv1nGE6jGTRPR5Dbvh1nCsE4RgTWFjUNfbGNB5rQnXIBXZkW45jtCLhqT/iVsFS+gM8NIrqL k4AuSUEDx4sv38Zx6BAixkciRzRCdCq8Xk7l4a7T/5dzvcbJTATvf+iQknK+WJ4okfuWW71xeAn fMSCo+VCfD2pz/p/NOg8+iNzhyIOtxRHLdf6pX57+P+TrOXo3MNxlb0frtKrPcu7kp0t6KbcnUC 18+tb0xYGSGDHY57hDUFmgQC/5+20aX6bZq9nr4F9mT4ZHrr077u7aYz92UC21nji5Z7pv5GCVm iWNIfGLulRKGRoOixPDAWER00= X-Received: by 2002:a05:6000:2584:b0:460:1967:abed with SMTP id ffacd0b85a97d-4607eaf7cfemr6589812f8f.39.1781431745210; Sun, 14 Jun 2026 03:09:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , John Snow , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 2/4] python/qemu: split console from harness args Date: Sun, 14 Jun 2026 11:09:00 +0100 Message-ID: <20260614100902.885698-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260614100902.885698-1-alex.bennee@linaro.org> References: <20260614100902.885698-1-alex.bennee@linaro.org> 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::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-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 @linaro.org) X-ZM-MESSAGEID: 1781431785670158500 Before we mess with the console output lets create a new helper just for that. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- python/qemu/machine/machine.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index e8973a87394..18ee5ec0147 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -306,7 +306,11 @@ def _harness_args(self) -> List[str]: moncdev =3D f"socket,id=3Dmon,path=3D{self._monitor_addres= s}" args.extend(['-chardev', moncdev, '-mon', 'chardev=3Dmon,mode=3Dcontrol']) + return args =20 + @property + def _console_args(self) -> List[str]: + args: List[str] =3D [] for _ in range(self._console_index): args.extend(['-serial', 'null']) if self._console_set: @@ -372,6 +376,7 @@ def _pre_launch(self) -> None: self._wrapper, [self._binary], self._harness_args, + self._console_args, self._base_args, self._args )) --=20 2.47.3 From nobody Sun Jul 26 13:29: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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1781431763; cv=none; d=zohomail.com; s=zohoarc; b=RZRMorYw9zdKqkdu0IPjQh7jQTMp3bR5YbH4ARHkE7QVyMTCybhnQ6vVwGkkS29yjvC2cYI8N4GD/3yiUHHYJnAP/f0F4OAWEF+TwdAZPSw8HC39EZFyaNS6eET9GUFc4m+kHxk4+Alq3WO/U/PzslgKhnM6/k2dI8uDIGu9sr4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781431763; h=Content-Type: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=XmgzCfVVVkblYVceCs+S/fgmwHRncvIcrxSqKC/ybkk=; b=PSL/8IlnH4Zn9CzkP+MGrGdLA4PGPzv5NRKzoOCg1SvIOjZ/yuhCdN7JiQ70sBHnfHZGLJp2cLaFVuydoc2e2glRm162fnDZJDbaSKBULNhty0PvcV8Sj4XObxDYmI1q+DWQx08CJEOpY1jiIE+tgy/XbBDuG/FwP4qJc/wGtSk= 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 1781431762981413.0190063191534; Sun, 14 Jun 2026 03:09:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wYhmC-0002WD-Mo; Sun, 14 Jun 2026 06:09: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 1wYhm8-0002Uu-KK for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:08 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wYhm6-0005cB-VS for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:08 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-45ef1198766so1212751f8f.0 for ; Sun, 14 Jun 2026 03:09:06 -0700 (PDT) Received: from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606f2b0d70sm23866561f8f.19.2026.06.14.03.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2026 03:09:03 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1BC575FA43; Sun, 14 Jun 2026 11:09:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781431745; x=1782036545; 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; bh=XmgzCfVVVkblYVceCs+S/fgmwHRncvIcrxSqKC/ybkk=; b=t5GzaauruU0xxM51Ohjat1HCrk3n4Oi8OJjcTWHNj7gQcBFKKzMJIig7t33rnYScR9 jl4nr514q6KmwpYqWpJyqxe3NFw40H+OQo/A73iQ1tLJW1mjEjQYbQAueQMkt5ibf2vl gWH1E3IfL9f8OwuzlBBFbkVTFxYB7l1dMYxreg2WWUmJvD/+TVqCClJw7agbvrefTUA6 3+C2RFEBqwTLrOF5XZxXyQRNn2DLQxOUJ6sPNcjSgJlwRAs9z5/YHlSFOb7HcWtIP/vu e3SsRzOyxBBOweOwdcg1INO11SgsMLqiXYYn6pkfPwM0MaMXwsME7PMl4eyGiEJInMRG qptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781431745; x=1782036545; 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; bh=XmgzCfVVVkblYVceCs+S/fgmwHRncvIcrxSqKC/ybkk=; b=BLKxX9MsoUZDM22fo1+zPKNMMxMowv6U4/6QtGH6Jy6qHzxLh96sFgqymU04uhtg21 T0oOawyAmChxPerYh54X0CZoIIqfM00Txxb00v+/zuFW1ruzHvF1UFOwdWwk+xEj7BvF qOSNQ1whXweOjg54uTyiwbOKK0e2vAKiTDUvxXTym9DSPjgBemseMlMTPtR6KWxX0Gew cfAZRK7ecs7Dz56YRRyXzVjkdwn71DFqLS8lWsmzg9TmLa8w6nZ3n44zZE71h7rzKP2x xCuGuJbxOIpeARuIEyN5wk5/J5SRLYSiKKRw8zswRKs7Yiwj5DeQn8fNAgFAga4oehxJ yANg== X-Gm-Message-State: AOJu0Yx0kb7X95q8rdZE0MP5WUqduTHi28Nb5vtzRHoxqrdAkua03MyK wOTjS1irmLMUYcfUQGxuydDUUHABMHd+Zf+F3PdClMZybub3vJRuqIvV6Yfs+xSRh5o= X-Gm-Gg: Acq92OFyN6NWulwK6zwQ4jIOh/Lvj3Qrm28K7okETNUNzqhZyItTJ6qtvLJ2JGC+EAU FS4ZkL8PVNXenOYy5Qb2O7npXikGvHVuVsvyFsbLp1waiV2+1yOKirGEqBaRlji0PhqAHC+TPeh Zey3aRvjHulOVhNzQPrV85qtLV8q7zCj3G4zmbZt9uKGpW4fvmJWI9sUN5QVkQbMCXR6f+JEw+g qvkK81nb0QQXhBNLb+We1vBbrciqK97zTd9/fQr5Pykp3dpT6HAI5tCMHr16t8H58EtvRB1BdQf lSjNMvxYlSkx7P2KZ87zfsQNngK1nS15HILfFjewt7brwPTJIlfSYByW6ubKgPA9sXlrHKW2pPh +Z+qRLgb/YbnZ1xQ/m3+OcxZ0cHbTF9Y1we6H0ab0l7XQ0hk2pgFV5Pulj2ZCmq/Sbs2P58P2x3 ddBcE8DGwaKwjhDncQI/UE2Xb8BYafLu7Fig== X-Received: by 2002:a5d:64e7:0:b0:460:3210:950d with SMTP id ffacd0b85a97d-4606f25dd82mr11948620f8f.21.1781431744610; Sun, 14 Jun 2026 03:09:04 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , John Snow , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 3/4] python/qemu: dump a developer friendly version of cmdline to logs Date: Sun, 14 Jun 2026 11:09:01 +0100 Message-ID: <20260614100902.885698-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260614100902.885698-1-alex.bennee@linaro.org> References: <20260614100902.885698-1-alex.bennee@linaro.org> 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::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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 @linaro.org) X-ZM-MESSAGEID: 1781431763969158500 Now we have the arguments nicely split up we can make _console_args a function call and present a slightly different version to the logs to save developers manually hacking the command line up. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- python/qemu/machine/machine.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index 18ee5ec0147..26a7bf5948f 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -308,12 +308,15 @@ def _harness_args(self) -> List[str]: 'chardev=3Dmon,mode=3Dcontrol']) return args =20 - @property - def _console_args(self) -> List[str]: + def _console_args(self, interactive=3DFalse) -> List[str]: args: List[str] =3D [] + # redirect pre_console_index serials to null for _ in range(self._console_index): args.extend(['-serial', 'null']) - if self._console_set: + + if interactive: + args.extend(['-serial', 'mon:stdio']) + elif self._console_set: assert self._cons_sock_pair is not None fd =3D self._cons_sock_pair[0].fileno() chardev =3D f"socket,id=3Dconsole,fd=3D{fd}" @@ -376,7 +379,7 @@ def _pre_launch(self) -> None: self._wrapper, [self._binary], self._harness_args, - self._console_args, + self._console_args(), self._base_args, self._args )) @@ -485,6 +488,11 @@ def _launch(self) -> None: """ self._pre_launch() LOG.debug('VM launch command: %r', ' '.join(self._qemu_full_args)) + # Log a simplified, developer-runnable command: + # Exclude harness-managed infrastructure args (harness_args) + # and wrapper. + debug_cmd =3D [self._binary] + self._console_args(interactive=3DTr= ue) + self._base_args + self._args + LOG.debug('Developer-runnable command: %r', ' '.join(debug_cmd)) =20 # Cleaning up of this subprocess is guaranteed by _do_shutdown. # pylint: disable=3Dconsider-using-with --=20 2.47.3 From nobody Sun Jul 26 13:29: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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1781431762; cv=none; d=zohomail.com; s=zohoarc; b=NZcnUtuuOzBWnHpG1H2vcerVLmfnXAfyfXK23EzHBmQzprPnRy+/QUQa/stja5kw1ZNleCkF55Hl9rbtyXAIX0bwC+wCdO//tpVd+nhWTc4jB02acaecldxsV5+TE2+BSHjeDjarJThwHR8+eIXU8zrwJX66ZHwkPQPNI1m/Fz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781431762; h=Content-Type: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=thcwyP2EZxvPKCOKXUWJouAC+M8HXFANTt4YeT6lY+g=; b=MvLURRQxhOkcPEmchRwZwR2mrmGAna0lxI9Y07i5SjUoS4iXL1+TLd+nPgTjiXtISC6qdHFh0JJH2Cn2hEbqoDA4VVBHHI8Tc2To7ebIv3pAd31GjnP7GnwLVwzyf3XNm1IXqlSIkX4LSTDztCeLRhBsTknGYSyPrDvQzXG+TdQ= 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 178143176205997.21140863762992; Sun, 14 Jun 2026 03:09:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wYhmB-0002VJ-V2; Sun, 14 Jun 2026 06:09:11 -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 1wYhm8-0002Ut-Jh for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:08 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wYhm7-0005cD-5D for qemu-devel@nongnu.org; Sun, 14 Jun 2026 06:09:08 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-490ac357c55so21919335e9.1 for ; Sun, 14 Jun 2026 03:09:06 -0700 (PDT) Received: from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4922037ba81sm151547325e9.15.2026.06.14.03.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2026 03:09:03 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 31FBD5FADF; Sun, 14 Jun 2026 11:09:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781431745; x=1782036545; 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; bh=thcwyP2EZxvPKCOKXUWJouAC+M8HXFANTt4YeT6lY+g=; b=VgLSgxaPR4nA8GNpX18XzUkyD1rv6aBhQ7YYuUL6giO0iHow0zDh3SlxpQM9QZOU+u 9JGzMcda7OzMk7at5tYcYHqgpfeNU5zP+Ts2Ikiinn4FPiFvpfx0qTvshe0HlK0YD2gD l9CtidXo2lF3etmy75MihkzXC60UvsP7dGAAYvnAWDUqa1RQpKEuoNVkTUAWUqjCCZJa T5G4HJyI2ZZ+GDpgIj48jYsDynKu0IAdXK8o7CHQScsa1A38kUW0hAVCMGmI1j5Q4HGk u7n37kmKUkboMBmf3FsiEUSFBlLxk4n5aLi+IXuGg0bfyVomAJSoC3GWVd7OR6wsPCl0 VteA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781431745; x=1782036545; 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; bh=thcwyP2EZxvPKCOKXUWJouAC+M8HXFANTt4YeT6lY+g=; b=UK1XF1Oat66uvtgnQ2ztdTEhjH6vvCAoRxDYB+gqvmojYYqRWnVx3Y8K5XDpao5z1A JWKrkpc0ZQgGYS1fC9LUwTjz37fc3+M12j3itbaglEXR16Ni3vGWxLgMpzf3awAY74zU 36SQhaR2VS+DJnVVCUUwBzyhx+K7WiltlVsrKUd2Nzb6k32vRMScL0wP9QgiRlgBpXbi fSwuuHfdp0gNjNj71scnchwLjX/4pObB+RKUU56QkuOmIP+OBTf7KlhEomHbDoACRfjO +goXuHoE+qjfqae/E1yToZagXB6d5h8PHZqIoxmaWFZ7YNWMEqwvCdeZeTsdJZDwYPhN 5XpQ== X-Gm-Message-State: AOJu0YyvBgjFU43svyPzDzLKY66+1D6gsiCczhMtlDzZPDH1U745Uu8L BKzrMOCw+w68pjqDQ/pwLx1Xfk+WSkdizVRPy0zHFwoIKZ7JHc0R7IgpRtYR9y0A/9Y= X-Gm-Gg: Acq92OGquaAvr3T8TdRC6u+eWT1HTTTtVdBibQyGfx1SqzdOM4OBYuVxe2k3U6G8GR3 6TRma2jUfg3FcKx/6ini8Bn+twTPwDUN8YnzlYKfBSUcjroEW+k3mI8uYADTF1CuDFiHHIOpvuw L0vYIjAsyQJaCDAkrlqpLyVR8B8/IM+KoDsW2e+t6sPSOm3N6uHB30j9mjFHrz9ADEWsPMSA5S8 hdZSKeklgb73FlcCwtWTOUa+zYDIClr1KTOcumiB/gsv0TG2Jh29nqVOI1uDW3HHUtsl5SsH63G 0YZeqlbTL3RCOdhG/z81+tgmFdbo//qbEmCWcKrdLTANdCFmpHUJRB0CxQUvtwXRA1V56/JV3Y1 zvPUeTVKjfjv6bIIA5vhob+cB6DM2AamgO6Q9ZYfvLBF9B/SFMaEnOME4jxxG5IO1V7aFG57Lcb eu6hct5+q5UN7pkuf1aOb9N6A= X-Received: by 2002:a05:600c:64c8:b0:492:1e36:552b with SMTP id 5b1f17b1804b1-4921e36557dmr91169585e9.36.1781431745600; Sun, 14 Jun 2026 03:09:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , John Snow , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 4/4] tests/functional: tell pylint not to check c-modules Date: Sun, 14 Jun 2026 11:09:02 +0100 Message-ID: <20260614100902.885698-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260614100902.885698-1-alex.bennee@linaro.org> References: <20260614100902.885698-1-alex.bennee@linaro.org> 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::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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 @linaro.org) X-ZM-MESSAGEID: 1781431763958158500 To fix: qemu-test.test_pylint "/home/alex/lsrc/qemu.git/tests/functional/arm/test= _integratorcp.py:83: I1101: Module 'cv2' has no 'imread' member, but source= is unavailable. Consider adding this module to extension-pkg-allow-list if= you want to perform analysis based on run-time introspection of living obj= ects. (c-extension-no-member)" Manually running python3 showed I could indeed import cv2 and call those functions. Rather than allowing pylint to introspect lets just tell it to skip c modules. Reviewed-by: Daniel P. Berrang=C3=A9 Message-ID: <20260612140531.3530387-1-alex.bennee@linaro.org> Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth --- tests/functional/pylintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/functional/pylintrc b/tests/functional/pylintrc index 049c3e76f12..949bea611fe 100644 --- a/tests/functional/pylintrc +++ b/tests/functional/pylintrc @@ -58,6 +58,7 @@ confidence=3DHIGH, # no Warning level messages displayed, use "--disable=3Dall --enable=3Dcla= sses # --disable=3DW". disable=3Dbad-inline-option, + c-extension-no-member, consider-using-f-string, file-ignored, fixme, --=20 2.47.3