From: Avi Kivity <avi@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [6989] Fix display breakage when resizing the screen (v2) (Avi Kivity)
Date: Mon, 06 Apr 2009 17:41:41 +0300 [thread overview]
Message-ID: <49DA14A5.4060301@redhat.com> (raw)
In-Reply-To: <49DA0FFD.1060600@eu.citrix.com>
Stefano Stabellini wrote:
> Anthony Liguori wrote:
>
>
>> Revision: 6989
>> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6989
>> Author: aliguori
>> Date: 2009-04-05 18:41:18 +0000 (Sun, 05 Apr 2009)
>> Log Message:
>> -----------
>> Fix display breakage when resizing the screen (v2) (Avi Kivity)
>>
>> When the vga resolution changes, a new display surface is not allocated
>> immediately; instead that is deferred until the next update. However,
>> if we're running without a display client attached, that won't happen
>> and the next bitblt is likely to cause a segfault by overflowing the
>> display surface.
>>
>> Fix by reallocating the display immediately when the resolution changes.
>>
>> Tested with (Windows|Linux) x (cirrus|std) x (curses|sdl).
>>
>> Changes from v1:
>> - fix segfault when switching virtual consoles with curses
>>
>> Signed-off-by: Avi Kivity <avi@redhat.com>
>> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>>
>>
>
> While I understand the problem this patch tries to fix I think the way
> it fixes it is wrong.
>
> First of all this patch breaks the VC switching mechanism in qemu: just
> execute sleep 2; startx; in the first VC, then switch to the monitor and
> wait.
>
I guess, this can be fixed by not reallocating the display surface if
vga is not the active console?
> Secondly it doesn't follow the basic idea behind the DisplayState
> surface: it is supposed to be a pixel surface provided by the vga
> emulator to the frontends, cirrus shouldn't have to care what size it is.
> In fact cirrus emulates bitblit operations on the emulated framebuffer,
> not on the DisplayState surface; if it does so is a bug and should be fixed.
>
This happens through cirrus_do_copy(), which implies that the display
surface is involved. Is that wrong?
> For these reasons I think this patch should be reverted
Can you suggest a better fix? The failure (without the patch) is pretty
disastrous from my point of view.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-04-06 14:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-05 18:41 [Qemu-devel] [6989] Fix display breakage when resizing the screen (v2) (Avi Kivity) Anthony Liguori
2009-04-06 14:21 ` Stefano Stabellini
2009-04-06 14:29 ` Anthony Liguori
2009-04-06 14:33 ` Stefano Stabellini
2009-04-06 14:44 ` Avi Kivity
2009-04-07 1:44 ` Ryan Harper
2009-04-07 9:28 ` Avi Kivity
2009-04-07 9:32 ` Stefano Stabellini
2009-04-06 14:41 ` Avi Kivity [this message]
2009-04-06 14:53 ` Avi Kivity
2009-04-06 17:35 ` Stefano Stabellini
2009-04-06 17:46 ` Avi Kivity
2009-04-06 18:01 ` Stefano Stabellini
2009-04-06 18:32 ` Avi Kivity
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=49DA14A5.4060301@redhat.com \
--to=avi@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 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.