[Spice-devel] [PATCH v2 2/2] server: add missing calls to red_handle_drawable_surfaces_client_synced

2011-07-11 Thread Yonit Halperin
red_handle_drawable_surfaces_client_synced was called only from red_pipe_add_drawable, while it should also be called from red_pipe_add_drawable_after. Otherwise, the client might receive a command with a reference to a surface it doesn't hold and crash. --- server/red_worker.c |2 ++ 1 files

[Spice-devel] [PATCH v2 1/2] server: fix access to a released drawable. RHBZ #713474

2011-07-11 Thread Yonit Halperin
red_pipe_add_drawable can lead to removal of drawables from current tree (since it calls red_handle_drawable_surfaces_client_synced), which can also lead to releasing these drawables. Before the fix, red_current_add_equal, called red_pipe_add_drawable, without assuring afterwards that the drawables

[Spice-devel] [PATCH v2 0/2] Fix unsafe access to a drawable

2011-07-11 Thread Yonit Halperin
Hi, This version is more efficient since it removes the other_drawable from the tree before red_handle_drawable_surfaces_client_synced is called. In this manner, other_drawable won't be unnecessarily rendered if update_area is called. Yonit Halperin (2): server: fix access to a released drawable

Re: [Spice-devel] Unfair comparisons with RDP

2011-07-11 Thread John A. Sullivan III
On Mon, 2011-07-04 at 21:07 +0300, Yaniv Kaul wrote: > On 07/04/2011 07:33 PM, John A. Sullivan III wrote: > > On Mon, 2011-07-04 at 17:48 +0300, Yonit Halperin wrote: > >> On 07/04/2011 05:21 PM, John A. Sullivan III wrote: > >>> Very helpful and interesting. I'll respond in-line - John > >>> > >

Re: [Spice-devel] Problems compiling SPICE Windows client SDK 7.1

2011-07-11 Thread John A. Sullivan III
On Wed, 2011-07-06 at 07:43 -0400, John A. Sullivan III wrote: > On Wed, 2011-07-06 at 13:23 +0300, Arnon Gilboa wrote: > > John A. Sullivan III wrote: > > > > > > We've made considerable progress. We do not have VS2008 as we are not a > > > Windows shop and I assume in my Windows ignorance that

Re: [Spice-devel] RFC: Render support in the protocol

2011-07-11 Thread Soeren Sandmann
Yonit Halperin writes: > Hi, > It looks like Render overlaps QXL_DRAW_ROP3. Maybe QXLRop3 can be > exploited? I'm not sure it's possible to wedge the Render semantics into QXLRop3. Here are some differences between the two commands: - Render supports full affine transformations, not just scalin

Re: [Spice-devel] [PATCH v3] server: add QXLInterface::surface_updated callback

2011-07-11 Thread Alon Levy
On Mon, Jul 11, 2011 at 01:48:38PM +0300, Alon Levy wrote: > On Sun, Jul 10, 2011 at 09:55:21AM +0300, Yonit Halperin wrote: > > On 07/07/2011 07:33 PM, Alon Levy wrote: > > >used to move dirty rectangle notification from update_area to > > >surface_updated. > > > > > >This is RfC quality. Specifi

Re: [Spice-devel] [PATCH v3] server: add QXLInterface::surface_updated callback

2011-07-11 Thread Alon Levy
On Sun, Jul 10, 2011 at 09:55:21AM +0300, Yonit Halperin wrote: > On 07/07/2011 07:33 PM, Alon Levy wrote: > >used to move dirty rectangle notification from update_area to > >surface_updated. > > > >This is RfC quality. Specifically where to call surface_updated. Currently I > >only call it from s