On 05/18/2017 02:57 PM, Paolo Bonzini wrote: > > > On 18/05/2017 18:08, Rob Landley wrote: >> Serial input hangs after the first character in the 4.11 kernel: >> >> http://www.spinics.net/lists/linux-sh/msg51183.html >> >> Because they enabled support for a buffer size thing QEMU doesn't >> emulate right: >> >> http://www.spinics.net/lists/linux-sh/msg51189.html > > Hey, > > regarding this: > >> The really _fun_ thing about this is qemu broke it a couple years back >> and now if you hit ctrl-c it kills the _emulator_ rather than passing it >> through to the Linux console. (Just sh4, the rest do it right.) > > Try replacing "-serial stdio" with "-serial mon:stdio". You'll also be > able to use the QEMU monitor with "Ctrl-a c", so you can quit with > "Ctrl-a c quit <enter>".
Ctrl-c now goes through. Thanks! Exiting the linux instance says "reboot: Restarting system\nUnauthorized access" and then hangs eating 100% cpu, but maybe I can fix that with kernel configuration changes. (I'm still doing a variant of https://landley.net/aboriginal/control-images so the virtual system needs to be able to indicate when it's done. But https://landley.net/aboriginal/about.html is getting replaced with https://github.com/landley/mkroot so there's some plumbing to do before that's blocking anything...) Thanks again, Rob