All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	Michael Tokarev <mjt@tls.msk.ru>,
	Peter Maydell <peter.maydell@linaro.org>,
	Anthony Liguori <aliguori@us.ibm.com>
Subject: Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator
Date: Mon, 01 Sep 2014 10:23:08 -0500	[thread overview]
Message-ID: <54048F5C.6020702@landley.net> (raw)
In-Reply-To: <5403FEA3.8050906@landley.net>

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

      parent reply	other threads:[~2014-09-01 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01  5:05 [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator Rob Landley
2014-09-01  8:07 ` Paolo Bonzini
2014-09-01 15:30   ` Rob Landley
2014-09-01 15:23 ` Rob Landley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54048F5C.6020702@landley.net \
    --to=rob@landley.net \
    --cc=aliguori@us.ibm.com \
    --cc=mjt@tls.msk.ru \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.