All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] qemu vnc updates
Date: Tue, 26 Feb 2008 10:15:51 -0600	[thread overview]
Message-ID: <47C43B37.1010209@codemonkey.ws> (raw)
In-Reply-To: <47C3F6FA.6080506@eu.citrix.com>

Stefano Stabellini wrote:
> Hi all,
> reading qemu code I realized that the qemu vnc server sometimes sends 
> framebuffer updates even if the client didn't request any.
> This is not consistent with the RFB protocol spec and can break some 
> clients.


It's actually consistent with the RFB spec.  Have you seen any clients 
break?

The RFB spec states pretty clearly that a single 
FramebufferUpdateRequest may generate 0 or more FramebufferUpdate 
events.  Once a client has sent a single FramebufferUpdate request, it 
should expect to continue to receive more FramebufferUpdates for an 
indefinite period of time according to the specification.

Regards,

Anthony Liguori

> The patch I am attaching strictly enforces compliance with the RFB 
> protocol making sure framebuffer updates are sent only if the client 
> requested one.
> Doing so is more difficult than it seems because some framebuffer 
> pseudo-encoding updates cannot be discarded but must be sent anyway: for 
> example desktop resize and pixel format change messages. To solve the 
> problem I wrote a queue that stores those messages and sends them as 
> soon as the client asks for an update.
> Since 90% of the times the queue is used to store only few elements, the 
> queue allocates 10 elements at the beginning and every time it runs out 
> of elements allocates other 10 elements. This is should drastically 
> limit the number of malloc and free needed to maintain the queue.
> I did some stress tests in the last couple of days and seems to work well.
> Best Regards,
> 
> Stefano Stabellini
> 
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2008-02-26 16:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-26 11:24 [PATCH] qemu vnc updates Stefano Stabellini
2008-02-26 16:15 ` Anthony Liguori [this message]
2008-02-26 16:22   ` Daniel P. Berrange
2008-02-26 16:34     ` Stefano Stabellini
2008-02-26 17:29       ` Anthony Liguori
2008-02-26 17:56         ` Stefano Stabellini
2008-02-26 19:20           ` Anthony Liguori

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=47C43B37.1010209@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.