qemu-system-aarch64: with "-display gtk" arrow keys are received as just ^[ on ttyAMA0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
qemu (Debian) |
Confirmed
|
Unknown
|
|||
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I originally observed this on Debian packaged qemu 5.2 at
https:/
Today I checked out the latest git source at
Sun, 13 Dec 2020 19:21:09 +0900
and configured the source as follows:
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=
--localstatedi
--libdir=
--firmwarepath
--target-
--disable-user --enable-gtk --enable-vnc
then executed "make" on an ARM64 (not an x86_64) host,
running the latest Debian testing.
I did the following commands on an arm64 host with the Debian Installer Alpha 3 at
https:/
#!/bin/sh
ARCH=arm64
IMAGE=`
CDROM=`
rm -f $IMAGE
qemu-img create -f qcow2 -o compat=1.1 -o lazy_refcounts=on -o preallocation=off $IMAGE 20G
cd /var/tmp
cp /usr/share/
$HOME/qemu-
-display gtk -enable-kvm -machine virt -cpu host -m 3072 -smp 2\
-net nic,model=virtio -net user -object rng-random,
-device virtio-
-drive if=virtio,
-drive if=virtio,
-drive if=pflash,
-drive if=pflash,
Then 4 arrow keys on the physical keyboard are received as just "^[".
This symptom was not observed on qemu-system-x86_64.
This symptom was not observed with virt-manager on my arm64 host, neither.
This seems unique to -display gtk of qemu-system-
CVE References
tags: | added: arm |
Changed in qemu (Debian): | |
status: | Unknown → Confirmed |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
tags: | added: qemu-21.10 |
Changed in qemu (Ubuntu): | |
status: | New → Triaged |
An easier way to reproduce the symptom was provided by Alper Nebi Yasak at /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 976808# 88
https:/
qemu-system-aarch64 \
-display gtk -enable-kvm -machine virt -cpu host -m 1G -smp 2 \
-kernel /boot/vmlinuz -initrd /boot/initrd.img \
-append "break console=ttyAMA0"
Then, run cat on the initramfs shell and see arrow keys result in ^[ .
For x86_64, it's console=ttyS0 and ^[[A etc.