From 80d11ca7517d50bfc43b6270b294b787f46371a4 Mon Sep 17 00:00:00 2001 From: Piotr Tworek Date: Wed, 13 Jan 2021 23:57:39 +0100 Subject: [PATCH] tool: Add keyboard and mouse devices to virt_qemu. Now that we have appropriate native driver for them add keyboard and mouse devices to virt_qemu machine. Make sure qemu exposes those new devices in modern, VirtIO 1.0 mode. At leasts qemu 5.1.0 still uses pre 1.0 mode in default setup. Issue #4282 --- tool/run/power_on/qemu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/run/power_on/qemu b/tool/run/power_on/qemu index 1d328badad..39bc704c0b 100644 --- a/tool/run/power_on/qemu +++ b/tool/run/power_on/qemu @@ -117,6 +117,9 @@ proc run_power_on { } { append qemu_args " -cpu cortex-a15 -smp 2" } append qemu_args " -m 2048" + append qemu_args " -global virtio-mmio.force-legacy=false " + append qemu_args " -device virtio-mouse-device" + append qemu_args " -device virtio-keyboard-device" } # on x86, we support booting via pxe or iso/disk image