Received: from eggs.gnu.org ([2001:4830:134:3::10]:60190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xiiw4-0002k1-KG for qemu-devel@nongnu.org; Mon, 27 Oct 2014 07:58:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xiivy-0002N2-FX for qemu-devel@nongnu.org; Mon, 27 Oct 2014 07:58:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xiivy-0002Mj-8A for qemu-devel@nongnu.org; Mon, 27 Oct 2014 07:58:02 -0400 Message-ID: <1414411077.9909.12.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 27 Oct 2014 12:57:57 +0100 In-Reply-To: References: <1414141254-31960-1-git-send-email-marcandre.lureau@gmail.com> <1414141254-31960-2-git-send-email-marcandre.lureau@gmail.com> <1414397322.9909.4.camel@nilsson.home.kraxel.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] spice-char: notify the server when chardev is writable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau Cc: "amit.shah" , qemu-devel@nongnu.org On Mo, 2014-10-27 at 12:45 +0100, Marc-Andr=C3=A9 Lureau wrote: > Hi >=20 >=20 > On Mon, Oct 27, 2014 at 9:08 AM, Gerd Hoffmann > wrote: > > +static void spice_chr_accept_input(struct CharDriverState > *chr) > > +{ > > + SpiceCharDriver *s =3D chr->opaque; > > + > > + spice_server_char_device_wakeup(&s->sin); > =20 > =20 > Does this build on older spice versions? I'd suspect this > needs #if > SPICE_SERVER_VERSION too ... >=20 >=20 > There is already a spice_server_char_device_wakeup() call there. On > older servers, this additional call will trigger just a read try. With > the proposed patch in Spice server, it will do read & write try (I > didn't see the need to create a new function to do only read or write, > both should be fine) Ok then. Added to spice queue. Fails to build, but that looks like just being the dependency on amits patch and should go away once that one is upstream. cheers, Gerd