From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOTSE-0005pS-9y for qemu-devel@nongnu.org; Mon, 01 Sep 2014 11:23:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOTS7-0005g2-Ck for qemu-devel@nongnu.org; Mon, 01 Sep 2014 11:23:38 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:33048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOTS7-0005fy-7r for qemu-devel@nongnu.org; Mon, 01 Sep 2014 11:23:31 -0400 Received: by mail-ob0-f182.google.com with SMTP id va2so3895000obc.41 for ; Mon, 01 Sep 2014 08:23:30 -0700 (PDT) Message-ID: <54048F5C.6020702@landley.net> Date: Mon, 01 Sep 2014 10:23:08 -0500 From: Rob Landley MIME-Version: 1.0 References: <5403FEA3.8050906@landley.net> In-Reply-To: <5403FEA3.8050906@landley.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Paolo Bonzini , Michael Tokarev , Peter Maydell , Anthony Liguori On 09/01/14 00:05, Rob Landley wrote: > If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2 > extract it and ./run-emulator.sh (which is a fairly straightforward > qemu-system-sh4 invocation on the included kernel image and squashfs > root filesystem), older qemu versions would run it just fine, and ctrl-C > would pass through to the shell. But current qemu, ctrl-C kills the > emulator. > > I bisected this to commit 02c4bdf1d2ca, although that's between commit > a9e8aeb3755b (which broke the sh4 pci bus) and b23ea25f5098 (which made > it boot again), so you have to either revert the first or apply the > second in order to test that the reverted commit fixes it. > > Rob This time cc'ing the people who signed-off-by the buggy commit. Before commit 02c4bdf1d2ca signal handling in qemu-system-sh4 with serial console on stdin/stdout worked properly, as in ctrl-c would kill the shell, not the emulator. After that commit, ctrl-c kills the emulator, not the shell. You can test this by grabbing the tarball in the first line above, and runnign the run-emulator.sh script, which is just: qemu-system-sh4 -M r2d -nographic -no-reboot -kernel zImage -hda hda.sqf -append "root=/dev/sda rw init=/sbin/init.sh panic=1 PATH=/bin:/sbin console=ttySC1 noiotrap HOST=sh4" -monitor null -serial null -serial stdio Again, this worked before the above commit, and has been consistently broken since that commit. Rob