From: Anthony Liguori <anthony@codemonkey.ws>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] implement vnc_dpy_setdata
Date: Mon, 12 Mar 2012 21:01:13 -0500 [thread overview]
Message-ID: <4F5EAA69.3090702@codemonkey.ws> (raw)
In-Reply-To: <1331201959-24133-1-git-send-email-kraxel@redhat.com>
On 03/08/2012 04:19 AM, Gerd Hoffmann wrote:
> The comment is wrong, we have to do something in the setdata callback.
> Changing the framebuffer backing storage (happens when the guest pans
> the display) renders the whole screen content invalid.
>
> Trigger #1: cirrus vga + 32bit linux guest + vesafb with ypan enabled.
> Trigger #2: std vga + http://patchwork.ozlabs.org/patch/145479/
>
> Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> ui/vnc.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/ui/vnc.c b/ui/vnc.c
> index 8ee39bc..bdec33a 100644
> --- a/ui/vnc.c
> +++ b/ui/vnc.c
> @@ -1936,7 +1936,10 @@ static void pixel_format_message (VncState *vs) {
>
> static void vnc_dpy_setdata(DisplayState *ds)
> {
> - /* We don't have to do anything */
> + VncDisplay *vd = ds->opaque;
> +
> + *(vd->guest.ds) = *(ds->surface);
> + vnc_dpy_update(ds, 0, 0, ds_get_width(ds), ds_get_height(ds));
> }
>
> static void vnc_colordepth(VncState *vs)
prev parent reply other threads:[~2012-03-13 2:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 10:19 [Qemu-devel] [PATCH] implement vnc_dpy_setdata Gerd Hoffmann
2012-03-13 2:01 ` 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=4F5EAA69.3090702@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=kraxel@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).