Il 28/06/2013 14:05, Michael Tokarev ha scritto: > That's exactly why I don't think looking at -nographic here in > serial code is wrong. It should do the same regardless of > -nographic - if, say, serial is redirected to stdio, it should > always pass Ctrl+C to guest instead of killing it. So I'm > not really sure we should test for -display none here, either.
See the patch I just sent. >> > It would be nice to be able to say "-nographic is equivalent to >> > '-display none -serial stdio -disable-ctrl-c -other-things'" >> > but I'm not sure exactly what the -other-things are or even >> > if we can set them all on the command line specifically. > We have some code in sun4 which also enabled serial ports > differently with and without -nographic, maybe because of > the same thing (which is what this all is about!). > > And there's also another place, passing this NOGRAPHIC thing > to bios. > > So far that's all. With chardev you can explicitly control > Ctrl+C behavour using signal={on|off} attribute. Unfortunately, you cannot use -chardev for the vast majority of boards (all those that have no ISA/PCI/virtio). Paolo