qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Cameron Esfahani <dirty@apple.com>, Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH v1] vnc: fix VNC artifacts
Date: Sat, 18 Jan 2020 07:24:58 +0100	[thread overview]
Message-ID: <2ab27da6-3ea7-d775-61d0-377c4efc8a59@redhat.com> (raw)
In-Reply-To: <C23889A4-CD29-4B95-9D43-DA6FB7C179C0@apple.com>

On 1/17/20 10:43 PM, Cameron Esfahani via wrote:
> I’m new to this process, what are the next steps?

Assuming your patch is in a branch named vncfix_v1:

1/ Start new branch based on the commit previous to your patch:

   - git checkout -b vncfix_v2 vncfix_v1~

2/ Revert the offending patch, explain in commit description why:

   - git revert de3f7de7f4e257

3/ Apply the rest of your patch on top, git-cherry-pick is smart to 
directly use the diff context. Verify the patch is correct and rewrite 
the commit description:

   - git cherry-pick vncfix_v1

4/ Send the 2 patches as a series to the mailing list

> 
> Cameron Esfahani
> dirty@apple.com
> 
>> On Jan 16, 2020, at 11:47 PM, Gerd Hoffmann <kraxel@redhat.com> wrote:
>>
>> On Thu, Jan 16, 2020 at 07:50:58PM -0800, Cameron Esfahani wrote:
>>> Remove VNC optimization to reencode framebuffer update as raw if it's
>>> smaller than the default encoding.  QEMU's implementation was naive and
>>> didn't account for the ZLIB z_stream mutating with each compression.  Just
>>> saving and restoring the output buffer offset wasn't sufficient to "rewind"
>>> the previous encoding.  Considering that ZRLE is never larger than raw and
>>> even though ZLIB can occasionally be fractionally larger than raw, the
>>> overhead of implementing this optimization correctly isn't worth it.
>>
>> So just revert de3f7de7f4e257 then ...
>>
>>> In my investigation, ZRLE always compresses better than ZLIB so
>>> prioritize ZRLE over ZLIB, even if the client hints that ZLIB is
>>> preferred.
>>
>> ... and make this a separate patch?
>>
>> cheers,
>>   Gerd
>>
>>
> 



      reply	other threads:[~2020-01-18  6:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17  3:50 [PATCH v1] vnc: fix VNC artifacts Cameron Esfahani via
2020-01-17  7:45 ` Gerd Hoffmann
2020-01-17  7:48   ` Cameron Esfahani via
2020-01-17 21:43   ` Cameron Esfahani via
2020-01-18  6:24     ` Philippe Mathieu-Daudé [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=2ab27da6-3ea7-d775-61d0-377c4efc8a59@redhat.com \
    --to=philmd@redhat.com \
    --cc=dirty@apple.com \
    --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).