From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzQvq-00053R-0Y for qemu-devel@nongnu.org; Mon, 20 Feb 2012 05:57:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzQvl-0007DY-UG for qemu-devel@nongnu.org; Mon, 20 Feb 2012 05:57:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzQvl-0007DI-LA for qemu-devel@nongnu.org; Mon, 20 Feb 2012 05:57:17 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1KAvGt0018736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Feb 2012 05:57:16 -0500 Message-ID: <4F4226FA.4050107@redhat.com> Date: Mon, 20 Feb 2012 11:56:58 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1329686886-6853-1-git-send-email-alevy@redhat.com> <1329686886-6853-4-git-send-email-alevy@redhat.com> In-Reply-To: <1329686886-6853-4-git-send-email-alevy@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 3/7] qxl: introduce QXLCookie List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: qemu-devel@nongnu.org, elmarco@redhat.com > + if (cookie == NULL) { > + cookie = qxl_cookie_new(QXL_COOKIE_TYPE_IO, > + QXL_IO_UPDATE_AREA_ASYNC, > + 0); > + } Automagic cookie creation is still there. I think when cookie is NULL you should just pass it on ... > -/* called from spice server thread context only */ > -static void interface_async_complete(QXLInstance *sin, uint64_t cookie) > +static void interface_async_complete_io(PCIQXLDevice *qxl, QXLCookie *cookie) > { > - PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); > uint32_t current_async; ... and do "if (cookie == NULL) return;" here. Which spice server version added async support? IIRC this is 0.8.2? I'm tempted to raise the minimal supported version to 0.8.latest and zap a bunch of #ifdefs from the code. What do you think? cheers, Gerd