From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzSOf-0006Bl-OM for qemu-devel@nongnu.org; Mon, 20 Feb 2012 07:31:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzSOZ-00039J-U8 for qemu-devel@nongnu.org; Mon, 20 Feb 2012 07:31:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzSOZ-00039E-KF for qemu-devel@nongnu.org; Mon, 20 Feb 2012 07:31:07 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1KCV6ej003066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Feb 2012 07:31:06 -0500 Date: Mon, 20 Feb 2012 14:31:02 +0200 From: Alon Levy Message-ID: <20120220123102.GD23926@garlic.redhat.com> References: <1329686886-6853-1-git-send-email-alevy@redhat.com> <1329686886-6853-4-git-send-email-alevy@redhat.com> <4F4226FA.4050107@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F4226FA.4050107@redhat.com> Subject: Re: [Qemu-devel] [RFC 3/7] qxl: introduce QXLCookie List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, elmarco@redhat.com On Mon, Feb 20, 2012 at 11:56:58AM +0100, Gerd Hoffmann wrote: > > + 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 ... My bad, I thought I zapped it. I've fixed some issues, now it runs with vnc and sdl fine (with my DisplayAllocation patch, didn't see yet if you had any comments on it), so I'll make sure to remove this before sending the next RFC. > > > -/* 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. I can do that too. > > 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? > How does that work? raise the minimal supported version in configure? and in RHEL we would do that as well? should be fine. And solves headaches of testing this with multiple spice-server versions. I'll do it. > cheers, > Gerd >