qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Alon Levy <alevy@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] "console: Properly switch consoles for screen dumps" breaks qxl screen dump
Date: Tue, 11 Oct 2011 19:36:27 +0200	[thread overview]
Message-ID: <4E947E9B.2000906@siemens.com> (raw)
In-Reply-To: <20111011093616.GA32387@bow.tlv.redhat.com>

On 2011-10-11 11:36, Alon Levy wrote:
> Hi Jan,
> 
>  I've recently found the $SUBJECT, it's commit
>   f81bdefb63243e82d16ce49332f7cf74d10b8f27.
> 
>  I'd like to fix it without breaking anything, can you provide me with
>  the test that your original patch fixed?

Have monitor on virtual console, switch to monitor and trigger screen
dump. So far that caused the to be dumped screen been written to the
monitor console, the console was furthermore resized, but all that mess
was left behind once dumping was finished. No we switch to the graphic
console first and restore the monitor afterwards.

> 
> Alon
> 
> p.s. for a simple command line with a single console (not even sure how
> to get multiple) the following fixes my problem, I expect it doesn't
> introduce any problems?
> 
> 
> diff --git a/console.c b/console.c
> index 6dfcc47..5a709fe 100644
> --- a/console.c
> +++ b/console.c
> @@ -1067,6 +1067,10 @@ void console_select(unsigned int index)
>  
>      if (index >= MAX_CONSOLES)
>          return;
> +    if (active_console == consoles[index]) {
> +        fprintf(stderr, "not changing console, not required\n");
> +        return;
> +    }
>      if (active_console) {
>          active_console->g_width = ds_get_width(active_console->ds);
>          active_console->g_height = ds_get_height(active_console->ds);

I suspect this papers over some QXL bug. SDL has no issues when I
trigger the screen dump from a monitor console that requires no switching.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

  reply	other threads:[~2011-10-11 17:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11  9:36 [Qemu-devel] "console: Properly switch consoles for screen dumps" breaks qxl screen dump Alon Levy
2011-10-11 17:36 ` Jan Kiszka [this message]
2011-10-11 17:44   ` Alon Levy
2011-10-11 20:31     ` Jan Kiszka

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=4E947E9B.2000906@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=alevy@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).