From: Anthony Liguori <aliguori@us.ibm.com>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [PATCH] Fix crash on resolution change -> screen dump -> vga redraw
Date: Tue, 07 Apr 2009 15:56:47 -0500 [thread overview]
Message-ID: <49DBBE0F.5060904@us.ibm.com> (raw)
In-Reply-To: <1239096832-25757-1-git-send-email-avi@redhat.com>
Avi Kivity wrote:
> The vga screen dump function updates last_width and last_height,
> but does not change the DisplaySurface that these variables describe.
> A consequent vga_draw_graphic() will therefore fail to resize the
> surface and crash.
>
> Fix by invalidating the display state after a screen dump, forcing
> vga_draw_graphic() to reallocate the DisplaySurface.
>
> Signed-off-by: Avi Kivity <avi@redhat.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> hw/vga.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/hw/vga.c b/hw/vga.c
> index b1e4373..4d1049b 100644
> --- a/hw/vga.c
> +++ b/hw/vga.c
> @@ -2678,4 +2678,5 @@ static void vga_screen_dump(void *opaque, const char *filename)
> vga_screen_dump_graphic(s, filename);
> else
> vga_screen_dump_text(s, filename);
> + vga_invalidate_display(s);
> }
>
--
Regards,
Anthony Liguori
prev parent reply other threads:[~2009-04-07 20:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 9:33 [Qemu-devel] [PATCH] Fix crash on resolution change -> screen dump -> vga redraw Avi Kivity
2009-04-07 20:56 ` Anthony Liguori [this message]
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=49DBBE0F.5060904@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--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).