From nobody Sat May 9 09:15:15 2026 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CF8870815 for ; Fri, 24 Jan 2025 11:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737716512; cv=none; b=lc9sxNrp4qcGh9b3SKotDTxjyUHozdbZ0/VlCuIKfU1hHHY6TAboejWSBPVB86+hjk1xKtrubrNy+GVCDZW1LWMu9pA5bRP8cgjZ7hs1MKIM7COC+qZ7GPCwjz/eF8Wm7kTBaa31hrR5WxhcFvwiyybUxepH2Egw+4999Ub80UE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737716512; c=relaxed/simple; bh=O4twTNY6QnsP1zsvS5Bz5IEESFifTVL8CnCIGl+To7k=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=RXs3MiAFKqgwre4oTGW8ytl/hJk65QkZ4rbBclQZYTdjC5OEyqhU8blpxHaNIr6mpne7XS2zgGsdITm3J0VNZsMsOFGRMuOw6yn/9gDPwdF1ww26bhPyxluL90YzQQVh50ZC7ijXE/6JFN5AwYzywwJBHMlcOawDldUTPd6Pojk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1Y3z8DM8; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1Y3z8DM8" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4362b9c15d8so9163515e9.3 for ; Fri, 24 Jan 2025 03:01:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1737716508; x=1738321308; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=uXkvtWlxL/Lwp+fnncLKVceJYPQb37OhTfMRENmNQHE=; b=1Y3z8DM8/ifBm/gY7zJ8HaPMgxgy+sN7/Ltd/HymAq9inX67pDrUjy2AnPJFPv76B0 tK/bv+S5bRLY15FHMjG8I5fJLm+qtqMcpGM4TGAKrVhpXW/AYzWHDoMiC/GA8pXpKPkB zq8viLlW9Mg9zpUDfYijFTneM9/PLhF+7D3MlD8ubibdDZMJ5hYEDGP4aCByD0EPZ0RW 6GmbN4cwidWU4Ti+wJ3nPcn8ZImoU1C8PAY8Xt3ujDtB9fDR8oyNVdRzLt9NYiM25P8f z0OtL7cUwDx/Hq3+nAHnv5yesawJ2+WHlxXURTE9kK9mNYVNb7qiWknjXQOwTIRXxJFj lJ3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737716508; x=1738321308; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uXkvtWlxL/Lwp+fnncLKVceJYPQb37OhTfMRENmNQHE=; b=JoOShrLSRzZKJnrnRN8vYEAirt5iz72grjIJgzjXdfvkJR96UT7I08C4bXApDWpfaG xTcpM/kd+WZIuSQ0up1QgOIrl5we4FUL9Dd/YYJnyRuuVNyh1pK5rnqNt3JknIuRc9GO 9dtm2qN3C/sLHVwBy1maUs+wYJ5lqcalzMeSGAw7Bomqa/ifCE1SanUaPswdA8Y80NZx x7sKV72XnbUDGXuuQ9gTKwPFJB54xLm7FnVdcPDYbJhI2+VRUlhfF6piDdrCFRhiTa/5 z6YVnzwppYppw0V9vDz2TfYtkv7SPEalaiG2OhcPRsNEMSYUZyYcD63GBDC8QZOlZbRG XUFw== X-Forwarded-Encrypted: i=1; AJvYcCXy8/nTOWPyD3bQa5tqyBCmPHwOiwa2AZU+C4689AZf6DHaViYAtVcdIZ/fOg6qfaF0kruZ1JbcbrRzAK8=@vger.kernel.org X-Gm-Message-State: AOJu0YxWAN2TvIZrdNAIfVAEFwuumysbSHvt5brSa8UvdYrN+nMRdjEd M/odbIqdJEgS17of4h8h7TUPMysvlT+L1PDCeIHUfiwQzVja7ulfmv2b7mdOZgaUQg+bMRvcmCC WUujXD77++g== X-Google-Smtp-Source: AGHT+IGLTUBhcjiYAaw6NQGnsFlN4t+zgevq1xO4htxLBsBT2dypWygBhikQQ0AsJLt6pIHYUzuPGZMdBUP/8g== X-Received: from wmsn42.prod.google.com ([2002:a05:600c:3baa:b0:434:e9e2:2991]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4ed4:b0:434:fdbc:5cf7 with SMTP id 5b1f17b1804b1-438914373e4mr267565245e9.27.1737716508660; Fri, 24 Jan 2025 03:01:48 -0800 (PST) Date: Fri, 24 Jan 2025 11:01:42 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABVzk2cC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI1MDQyMT3ezSvMwS3cKk/PwSXVMjA0NLE9M081QLMyWgjoKi1LTMCrBp0bG 1tQAV/UkgXQAAAA== X-Change-Id: 20250124-kunit-qboot-5201945f7e86 X-Mailer: b4 0.15-dev Message-ID: <20250124-kunit-qboot-v1-1-815e4d4c6f7c@google.com> Subject: [PATCH] kunit: tool: Use qboot on QEMU x86_64 From: Brendan Jackman To: Brendan Higgins , David Gow , Rae Moar Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, Brendan Jackman Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable As noted in [0], SeaBIOS (QEMU default) makes a mess of the terminal, qboot does not. It turns out this is actually useful with kunit.py, since the user is exposed to this issue if they set --raw_output=3Dall. qboot is also faster than SeaBIOS, but it's is marginal for this usecase. [0] https://lore.kernel.org/all/CA+i-1C0wYb-gZ8Mwh3WSVpbk-LF-Uo+njVbASJPe1W= XDURoV7A@mail.gmail.com/ Both SeaBIOS and qboot are x86-specific. Signed-off-by: Brendan Jackman Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/x86_64.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/kunit/qemu_configs/x86_64.py b/tools/testing/kun= it/qemu_configs/x86_64.py index dc794907686304b325dbe180149169dd79bcd44f..4a6bf4e048f5b05c889e3b9b030= 46f14cc9b0bcc 100644 --- a/tools/testing/kunit/qemu_configs/x86_64.py +++ b/tools/testing/kunit/qemu_configs/x86_64.py @@ -7,4 +7,6 @@ CONFIG_SERIAL_8250_CONSOLE=3Dy''', qemu_arch=3D'x86_64', kernel_path=3D'arch/x86/boot/bzImage', kernel_command_line=3D'console=3DttyS0', - extra_qemu_params=3D[]) + # qboot is faster than SeaBIOS and doesn't mess up + # the terminal. + extra_qemu_params=3D['-bios', 'qboot.rom']) --- base-commit: 8ea24baaaa869adeb39c6b9ce7542657a7251b56 change-id: 20250124-kunit-qboot-5201945f7e86 Best regards, --=20 Brendan Jackman