* [PATCH BlueZ] test-runner: use virtio for the default kernel console
@ 2026-07-20 14:09 Pauli Virtanen
2026-07-20 15:11 ` [BlueZ] " bluez.test.bot
2026-07-20 19:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Pauli Virtanen @ 2026-07-20 14:09 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
Serial as console is slow when commands produce large amounts of output,
e.g. for the -d debug option of the testers.
Use virtio console=hvc0 as the console, requiring
CONFIG_VIRTIO_CONSOLE=y which is already in tester config.
For capturing the early boot messages, retain the qemu serial, kernel
will switch to hvc0 during boot when the HVC driver initializes.
For: time tools/test-runner -k ../../linux -- tools/sco-tester -d
Before: real 0m32,094s, After: real 0m8,967s
---
tools/test-runner.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/tools/test-runner.c b/tools/test-runner.c
index 0e3bfb8b7..4617afc63 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -238,6 +238,8 @@ static char *const qemu_argv[] = {
"-device", "virtio-9p-pci,fsdev=fsdev-root,mount_tag=/dev/root",
"-chardev", "stdio,id=con,mux=on",
"-serial", "chardev:con",
+ "-device", "virtio-serial",
+ "-device", "virtconsole,chardev=con,name=console.0",
NULL
};
@@ -291,7 +293,7 @@ static void start_qemu(void)
}
snprintf(cmdline, sizeof(cmdline),
- "console=ttyS0,115200n8 earlyprintk=serial "
+ "console=hvc0 earlyprintk=serial "
"no_hash_pointers=1 rootfstype=9p "
"rootflags=trans=virtio,version=9p2000.u "
"acpi=off pci=noacpi noapic quiet ro init=%s "
@@ -330,11 +332,6 @@ static void start_qemu(void)
argv[pos++] = "-append";
argv[pos++] = (char *) cmdline;
- if (num_devs) {
- argv[pos++] = "-device";
- argv[pos++] = "virtio-serial";
- }
-
for (i = 0; i < num_devs; i++) {
char *chrdev, *serdev;
@@ -915,7 +912,7 @@ static void run_command(char *cmdname, char *home)
}
if (num_devs) {
- const char *node = "/dev/hvc0";
+ const char *node = "/dev/hvc1";
unsigned int basic_flags, extra_flags;
printf("Attaching BR/EDR controller to %s\n", node);
--
2.55.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] test-runner: use virtio for the default kernel console
2026-07-20 14:09 [PATCH BlueZ] test-runner: use virtio for the default kernel console Pauli Virtanen
@ 2026-07-20 15:11 ` bluez.test.bot
2026-07-20 19:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-07-20 15:11 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1130938
---Test result---
Test Summary:
CheckPatch PASS 0.33 seconds
GitLint PASS 0.24 seconds
BuildEll PASS 16.62 seconds
BluezMake PASS 475.48 seconds
CheckSmatch PASS 232.13 seconds
bluezmakeextell PASS 73.76 seconds
IncrementalBuild PASS 398.22 seconds
ScanBuild PASS 691.41 seconds
https://github.com/bluez/bluez/pull/2333
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] test-runner: use virtio for the default kernel console
2026-07-20 14:09 [PATCH BlueZ] test-runner: use virtio for the default kernel console Pauli Virtanen
2026-07-20 15:11 ` [BlueZ] " bluez.test.bot
@ 2026-07-20 19:40 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-07-20 19:40 UTC (permalink / raw)
To: Pauli Virtanen; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 20 Jul 2026 17:09:01 +0300 you wrote:
> Serial as console is slow when commands produce large amounts of output,
> e.g. for the -d debug option of the testers.
>
> Use virtio console=hvc0 as the console, requiring
> CONFIG_VIRTIO_CONSOLE=y which is already in tester config.
>
> For capturing the early boot messages, retain the qemu serial, kernel
> will switch to hvc0 during boot when the HVC driver initializes.
>
> [...]
Here is the summary with links:
- [BlueZ] test-runner: use virtio for the default kernel console
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=004e1b5d245e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-20 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 14:09 [PATCH BlueZ] test-runner: use virtio for the default kernel console Pauli Virtanen
2026-07-20 15:11 ` [BlueZ] " bluez.test.bot
2026-07-20 19:40 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox