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
This commit is contained in:
Piotr Tworek 2021-01-13 23:57:39 +01:00 committed by Christian Helmuth
parent 60f1a1a554
commit 80d11ca751

View File

@ -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