From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0BD9C4361B for ; Tue, 15 Dec 2020 22:06:55 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA0CF2255F for ; Tue, 15 Dec 2020 22:06:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA0CF2255F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:60516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpIT7-0003O6-MB for qemu-devel@archiver.kernel.org; Tue, 15 Dec 2020 17:06:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpISU-0002gk-Qc for qemu-devel@nongnu.org; Tue, 15 Dec 2020 17:06:14 -0500 Received: from indium.canonical.com ([91.189.90.7]:33602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpISS-0006QK-SL for qemu-devel@nongnu.org; Tue, 15 Dec 2020 17:06:14 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1kpISQ-00048E-UU for ; Tue, 15 Dec 2020 22:06:10 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E58C82E8138 for ; Tue, 15 Dec 2020 22:06:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Dec 2020 21:58:45 -0000 From: Ryutaroh Matsumoto <1907952@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug: distribution=debian; sourcepackage=qemu; component=main; status=Unknown; importance=Unknown; assignee=None; X-Launchpad-Bug-Tags: arm X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: emojifreak X-Launchpad-Bug-Reporter: Ryutaroh Matsumoto (emojifreak) X-Launchpad-Bug-Modifier: Ryutaroh Matsumoto (emojifreak) References: <160786029328.5567.5976635715445692881.malonedeb@gac.canonical.com> Message-Id: <160806952507.15491.10427364702602349989.malone@chaenomeles.canonical.com> Subject: [Bug 1907952] Re: qemu-system-aarch64: with "-display gtk" arrow keys are received as just ^[ on ttyAMA0 X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="4853cb86c14c5a9e513816c8a61121c639b30835"; Instance="production" X-Launchpad-Hash: 907671c0092af57f29879c7e146386e1b03c2d8a Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1907952 <1907952@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" An easier way to reproduce the symptom was provided by Alper Nebi Yasak at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D976808#88 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=3DttyAMA0" Then, run cat on the initramfs shell and see arrow keys result in ^[ . For x86_64, it's console=3DttyS0 and ^[[A etc. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1907952 Title: qemu-system-aarch64: with "-display gtk" arrow keys are received as just ^[ on ttyAMA0 Status in QEMU: New Status in qemu package in Debian: Unknown Bug description: I originally observed this on Debian packaged qemu 5.2 at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D976808 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=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib/q= emu \ --localstatedir=3D/var --disable-blobs --disable-strip --localstatedir= =3D/var \ --libdir=3D/usr/lib/aarch64-linux-gnu \ = --firmwarepath=3D/usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/qemu \ = --target-list=3Daarch64-softmmu,arm-softmmu --disable-werror \ = --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 A= lpha 3 at https://cdimage.debian.org/cdimage/bullseye_di_alpha3/arm64/iso-cd/debian= -bullseye-DI-alpha3-arm64-netinst.iso #!/bin/sh ARCH=3Darm64 IMAGE=3D`pwd`/qemu-disk-${ARCH}.qcow2 CDROM=3D`pwd`/debian-bullseye-DI-alpha3-${ARCH}-netinst.iso rm -f $IMAGE qemu-img create -f qcow2 -o compat=3D1.1 -o lazy_refcounts=3Don -o preall= ocation=3Doff $IMAGE 20G cd /var/tmp cp /usr/share/AAVMF/AAVMF_VARS.fd . $HOME/qemu-git/qemu/build/qemu-system-aarch64 \ -display gtk -enable-kvm -machine virt -cpu host -m 3072 -smp 2\ -net nic,model=3Dvirtio -net user -object rng-random,filename=3D/dev/= urandom,id=3Drng0 \ -device virtio-rng-pci,rng=3Drng0,id=3Drng-device0 \ -drive if=3Dvirtio,file=3D${IMAGE},index=3D0,format=3Dqcow2,discard= =3Dunmap,detect-zeroes=3Dunmap,media=3Ddisk \ -drive if=3Dvirtio,file=3D${CDROM},index=3D1,format=3Draw,readonly=3D= on,media=3Dcdrom \ -drive if=3Dpflash,format=3Draw,unit=3D0,file=3D/usr/share/AAVMF/AAVM= F_CODE.fd,readonly=3Don \ -drive if=3Dpflash,format=3Draw,unit=3D1,file=3D`pwd`/AAVMF_VARS.fd 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-aarch64. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1907952/+subscriptions