qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Eduardo Felipe" <edusaper@gmail.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Patch] VNC: Fix crash with non-resizing clients
Date: Wed, 3 Oct 2007 23:00:45 +0200	[thread overview]
Message-ID: <83a4d4ca0710031400w6d8b7438yb63d3400384f085d@mail.gmail.com> (raw)
In-Reply-To: <20071003195052.GF8342@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]

2007/10/3, Daniel P. Berrange <berrange@redhat.com>:
>
>
> The memset calls in that patch are bogus & not correctly fixing the buffer
> update problem. You're merely setting the 'old data' to have pixel value
> 42 - if the guest OS framebuffer happens to also have aras with pixel
> value
> of 42 too, the frame buffer will still not correctly update. The root
> problem is overly-aggressive update minimization logic in
> vnc_update_client.
> This is in turn flawed beause the dirty_row aray is trying to encode two
> separate concepts - areas which are dirty, and areas which need to be
> sent to the client. The latter are a superset of the former, but the code
> in vnc_update_client minimizes based on dirtiness, so updates will get
> missed out. Setting the old data to 42 merely changes which areas will get
> missed updates.


Agreed. I just used the same hack that is scattered around several other
places to make a patch quickly.


The QEMU code in Xen has added a update_row field, separate from the
> dirty_row
> field. Thus after a resize it can update the entire framebuffer,
> regardless
> of whether QEMU's copy of the framebuffer is dirty wrt to the guest copy.


I think that VNC server needs a deep rework, as several qemu related
projects have done, but meanwhile correcting bugs with small non-intrusive
patches may be the way to go.

Edu.

[-- Attachment #2: Type: text/html, Size: 1818 bytes --]

      reply	other threads:[~2007-10-03 21:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 19:29 [Qemu-devel] [Patch] VNC: Fix crash with non-resizing clients Eduardo Felipe
2007-10-03 19:50 ` Daniel P. Berrange
2007-10-03 21:00   ` Eduardo Felipe [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=83a4d4ca0710031400w6d8b7438yb63d3400384f085d@mail.gmail.com \
    --to=edusaper@gmail.com \
    --cc=berrange@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).