From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyTMo-00025y-T9 for qemu-devel@nongnu.org; Fri, 17 Feb 2012 14:21:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyTMn-0006Jq-EK for qemu-devel@nongnu.org; Fri, 17 Feb 2012 14:21:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyTMn-0006Jk-7a for qemu-devel@nongnu.org; Fri, 17 Feb 2012 14:21:13 -0500 Date: Fri, 17 Feb 2012 21:21:05 +0200 From: Alon Levy Message-ID: <20120217192105.GC23926@garlic.redhat.com> References: <1329433888-17678-1-git-send-email-alevy@redhat.com> <1329468300-6507-1-git-send-email-alevy@redhat.com> <20120217190911.GN16163@garlic.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20120217190911.GN16163@garlic.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 1/2] qxl: introduce QXLCookie List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-devel@nongnu.org, kraxel@redhat.com, elmarco@redhat.com On Fri, Feb 17, 2012 at 09:09:11PM +0200, Alon Levy wrote: > On Fri, Feb 17, 2012 at 01:49:20PM +0100, Marc-Andr=E9 Lureau wrote: > > Hi > >=20 > > On Fri, Feb 17, 2012 at 9:44 AM, Alon Levy wrote: > > > +/* called from spice server thread context only */ > > > +static void interface_async_complete(QXLInstance *sin, uint64_t co= okie_token) > > > +{ > > > + =A0 =A0PCIQXLDevice *qxl =3D container_of(sin, PCIQXLDevice, ssd.= qxl); > > > + =A0 =A0QXLCookie *cookie =3D (QXLCookie*)cookie_token; > > > + > > > + =A0 =A0switch (cookie->type) { > >=20 > > We still have spice_qxl_flush_surfaces_async(&qxl->ssd.qxl, 0); > >=20 > > So cookie might be NULL in this case. >=20 > Yeah, Marc Andre also noticed (exprimentally - you take the cake on the > review :). Please ignore. >=20 > >=20 > > --=20 > > Marc-Andr=E9 Lureau >=20