All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Anthony Liguori" <aliguori@us.ibm.com>,
	"Todd T. Fries" <todd@fries.net>,
	"Andreas Färber" <afaerber@suse.de>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] display: stop using DT_NOGRAPHIC, use DT_NONE
Date: Fri, 28 Jun 2013 16:05:42 +0400	[thread overview]
Message-ID: <51CD7C16.3040208@msgid.tls.msk.ru> (raw)
In-Reply-To: <CAFEAcA9YG+vZxFz9TRjAPxYpYYEdfaG3jfFgR1bqjOsc4-V++w@mail.gmail.com>

28.06.2013 15:55, Peter Maydell wrote:
> On 28 June 2013 12:50, Michael Tokarev <mjt@tls.msk.ru> wrote:

>> This ctrl+c handling is only about when you explicitly redirected
>> some other char device to guest, such as serial port.  Which don't
>> have much to do with display I think, hence I don't understand the
>> logic here.
> 
> The point is that one of the things -nographic does, as well
> as disabling the graphics display, is to redirect the serial
> port (among other things) to stdio. That's why there's code
> in the char backend that cares about "did you say -nographic":
> because -nographic means "no graphic display, serial port on
> terminal, send ctrl-c in terminal to guest rather than killing
> qemu, [some other stuff]".

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.

> 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.


28.06.2013 15:56, Andreas Färber wrote:
[]
> The logic is that a) -nographic does have serial I/O on stdio and b)
> emulated serial ports may get repurposed (change order/usage) for this
> to work. CC'ing Alex and Blue who might remember more details.
>
> So in the end it boils down to whether we consider stdio a "display" and
> whether we may want to split this out into its own global variable to
> cleanly separate it from graphical DT_* options.

This is still wrong because it works differently if we explicitly
redirected serial port to stdio and used -display none, or it was
due to -nographic.



Thanks,

/mjt

  reply	other threads:[~2013-06-28 12:05 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 12:34 [Qemu-devel] [PATCH] display: stop using DT_NOGRAPHIC, use DT_NONE Michael Tokarev
2013-06-28 10:38 ` Michael Tokarev
2013-06-28 11:24 ` Peter Maydell
2013-06-28 11:29   ` Michael Tokarev
2013-06-28 11:34     ` Peter Maydell
2013-06-28 11:43       ` Michael Tokarev
2013-06-28 11:50         ` Peter Maydell
2013-06-28 12:05         ` Paolo Bonzini
2013-06-28 11:45     ` Andreas Färber
2013-06-28 11:50       ` Michael Tokarev
2013-06-28 11:55         ` Peter Maydell
2013-06-28 12:05           ` Michael Tokarev [this message]
2013-06-28 12:06             ` Paolo Bonzini
2013-06-28 12:09             ` Peter Maydell
2013-06-28 11:56         ` Andreas Färber
2013-06-28 12:05         ` Andreas Färber
2013-06-28 12:11           ` Paolo Bonzini
2013-07-09 18:37 ` Anthony Liguori
2013-07-09 19:00   ` Michael Tokarev
2013-07-09 20:45     ` Anthony Liguori
2013-07-09 21:18       ` Peter Maydell
2013-07-09 21:24         ` Anthony Liguori
2013-07-09 21:36           ` Peter Maydell
2013-07-09 22:03             ` Anthony Liguori
2013-07-16 11:10               ` Michael Tokarev
2013-07-10  4:45           ` Michael Tokarev
2013-07-10  5:08             ` Michael Tokarev
2013-07-16 11:35               ` Peter Maydell
2013-07-10  4:18       ` Michael Tokarev

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=51CD7C16.3040208@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=todd@fries.net \
    /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.