Received: from eggs.gnu.org ([2001:4830:134:3::10]:60355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Bm8-0005gB-Pq for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:01:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Bm5-0007R3-JT for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:01:16 -0500 Received: from mail.nologin.es ([62.82.228.235]:48757 helo=nologin.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Bm5-0007Qr-DL for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:01:13 -0500 From: Javier Celaya Date: Thu, 08 Jan 2015 13:00:53 +0100 Message-ID: <2214907.McOh7Q8FVW@javinlg> In-Reply-To: <54AE6EA9.9000508@tiscali.it> References: <1508539.cfTQauU1Ry@javinlg> <54AE6EA9.9000508@tiscali.it> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [Qemu-devel] [Spice-devel] [PATCH] [RFC] LZ4 compression option for SPICE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fantonifabio@tiscali.it Cc: spice-devel , flex.dev@nologin.es, qemu-devel@nongnu.org, Anthony Liguori Sure, for the help text of the image-compression option, thanks. El Jueves, 8 de enero de 2015 12:48:57 Fabio Fantoni escribi=F3: > Il 08/01/2015 11:50, Javier Celaya ha scritto: > > Hello > >=20 > > Recently, SPICE included the lz4 compression algorithm. This patch = adds > > a command line option to select it. However, SPICE_IMAGE_COMPRESS_L= Z4 did > > not exist before the commit that added this compression algorithm, = so it > > should be guarded with conditional compilation. How do you think th= is > > should be done? Wait for the next stable version of spice-server an= d > > check for > > SPICE_SERVER_VERSION? Or add a specific flag? > >=20 > > Thank you > > --- > >=20 > > ui/spice-core.c | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/ui/spice-core.c b/ui/spice-core.c > > index 6467fa4..fb6534e 100644 > > --- a/ui/spice-core.c > > +++ b/ui/spice-core.c > > @@ -359,6 +359,7 @@ static const char *compression_names[] =3D { > >=20 > > [ SPICE_IMAGE_COMPRESS_QUIC ] =3D "quic", > > [ SPICE_IMAGE_COMPRESS_GLZ ] =3D "glz", > > [ SPICE_IMAGE_COMPRESS_LZ ] =3D "lz", > >=20 > > + [ SPICE_IMAGE_COMPRESS_LZ4 ] =3D "lz4", > >=20 > > }; > > #define parse_compression(_name) = \ > > =20 > > parse_name(_name, "image compression", = \ > >=20 > > -- > > 1.9.3 >=20 > I did a small search now and seems that also other small change to > qemu-options.hx file should be done, search this line: > @item image-compression=3D[auto_glz|auto_lz|quic|glz|lz|off] >=20 > > _______________________________________________ > > Spice-devel mailing list > > Spice-devel@lists.freedesktop.org > > http://lists.freedesktop.org/mailman/listinfo/spice-devel