From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhQaq-0002DM-Vj for qemu-devel@nongnu.org; Wed, 11 Mar 2009 11:43:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhQap-0002CK-8S for qemu-devel@nongnu.org; Wed, 11 Mar 2009 11:43:40 -0400 Received: from [199.232.76.173] (port=58167 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhQap-0002C8-2C for qemu-devel@nongnu.org; Wed, 11 Mar 2009 11:43:39 -0400 Received: from rv-out-0708.google.com ([209.85.198.246]:64105) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhQao-0000U0-Jm for qemu-devel@nongnu.org; Wed, 11 Mar 2009 11:43:38 -0400 Received: by rv-out-0708.google.com with SMTP id f25so53032rvb.22 for ; Wed, 11 Mar 2009 08:43:37 -0700 (PDT) Message-ID: <49B7DC25.6010500@codemonkey.ws> Date: Wed, 11 Mar 2009 10:43:33 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] vnc: shared buffer: skip some optimizations. References: <49B7CE21.4030104@redhat.com> In-Reply-To: <49B7CE21.4030104@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Stefano Stabellini Gerd Hoffmann wrote: > Hi, > > When using a shared display surface buffer some of the optimizations > done by the vnc server code don't work. In shared buffer mode the guest > may update the screen while the vnc server looks at the framebuffer. > That in turn makes some code racy, the dirty bitmap walk through for > example, leading to screen corruption. Right now this is visible with > xenfb only. I expect simliar issues will show up for vga too once we > run the vcpus in threads. > :-/ I'd rather disable the shared buffers. The minimization optimization is extremely important for VNC performance. It's a much bigger win than the memory copy that you lose when using shared buffers. Regards, Anthony Liguori > please apply > Gerd >