From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQVhC-0000qj-P3 for qemu-devel@nongnu.org; Tue, 02 Feb 2016 02:48:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQVh7-0000f5-Lu for qemu-devel@nongnu.org; Tue, 02 Feb 2016 02:48:18 -0500 Received: from s16892447.onlinehome-server.info ([82.165.15.123]:55715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQVh7-0000ef-FY for qemu-devel@nongnu.org; Tue, 02 Feb 2016 02:48:13 -0500 References: <56AE260C.9020508@ilande.co.uk> <56AE2E1B.6030106@ilande.co.uk> <56AE421B.4000400@redhat.com> <56AE8352.2040500@redhat.com> From: Mark Cave-Ayland Message-ID: <56B05F2A.1080706@ilande.co.uk> Date: Tue, 2 Feb 2016 07:47:54 +0000 MIME-Version: 1.0 In-Reply-To: <56AE8352.2040500@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Strange monitor/stdout issue on qemu-system-sparc/qemu-system-ppc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell Cc: qemu-devel On 31/01/16 21:57, Paolo Bonzini wrote: > On 31/01/2016 18:54, Peter Maydell wrote: >> On 31 January 2016 at 17:19, Paolo Bonzini wrote: >>> On 31/01/2016 16:54, Mark Cave-Ayland wrote: >>>> I also notice that with the above commit I lose cycling through history >>>> in the GTK monitor - even with the multiple echo, instead of the up/down >>>> arrow keys cycling through the history instead I see the codes ^[[B and >>>> ^[[A being output to the window instead. >>> >>> That is probably me. The echo feature was introduced for QMP, but in >>> theory it should have been limited to that. I'll check it, thanks. >> >> I've also seen echo, but only intermittently... > > That smells like uninitialized memory or something like that. > > Actually I'm fairly sure I tested "-monitor vc" at least, so perhaps > it's an interaction between the echo feature and "qemu-char: add logfile > facility to all chardev backends". Anyway I'll look at it. Yeah I think you're right. I did a little bit of testing yesterday and the echo disappeared until I remembered that I'd been testing a self-built OpenBIOS - and as soon as I reintroduced this option onto the command line, the echo magically re-appeared. I can reproduce this consistently under qemu-system-ppc git master like this: make distclean STRIP= './configure' '--target-list=ppc-softmmu' '--prefix=/home/build/rel-qemu-git' '--enable-gtk' '--disable-pie' and then specifying a -bios parameter on the command line (even if it is the same file as that normally used by QEMU): $ ./qemu-system-ppc -bios ../share/qemu/openbios-ppc Now try typing into the GTK monitor window and hopefully you should be able to see the problem. ATB, Mark.