[Spice-devel] [PATCH spice-server v2 2/2] Handle preferred image compression messages

Javier Celaya javier.celaya at flexvdi.com
Mon Jun 8 08:43:33 PDT 2015


El Miércoles, 3 de junio de 2015 15:29:34 Christophe Fergeau escribió:
> On Tue, Jun 02, 2015 at 06:26:09PM +0200, Javier Celaya wrote:
> > El Martes, 2 de junio de 2015 14:33:35 Christophe Fergeau escribió:
> > > My last remaining comment about this patch is that now the client can
> > > force the server to use a given compression method. This is something
> > > the server admin might not want to allow (think "too expensive
> > > compression methods).
> > > Maybe image_compression should default to 
SPICE_IMAGE_COMPRESS_DEFAULT
> > > rather than _AUTO_GLZ, and we should only allow
> > > display_channel_handle_preferred_compression() to override
> > > COMPRESS_DEFAULT, but not other values?
> > > 
> > > Christophe
> > 
> > I see. However, currently, QEMU always sets image_compression to the one
> > it gets from command-line or _AUTO_GLZ by default. There is no way to
> > know from within spice-server whether the admin specified an image
> > compression method or not, without patching QEMU too.
> 
> Ah hrm, spice-server has an _AUTO_GLZ default value, but QEMU indeed
> forces the default too, so we can't change this only with spice-server
> changes. We could forbid the client from changing compression when it's
> != AUTO_GLZ, but that probably be weird/unexpected?
> 
> Christophe

It would be unexpected only if someone actually sets the compression to auto-glz, 
which is also quite unexpected.

Another posibility is to add an option to explicitly allow the clients to set the preferred 
compression method, and disallow it by default. That option would be set through the 
qemu command line.-- 


[1] [2]
*Javier Celaya *
/Software Engineer /
[3] j[4]_avier.celaya at flexvdi.com_ 
[5] +34 976 512 433 
[6] @j_celaya 


--------
[1] http://www.flexvdi.com/img/general/logo.flexvdi.png
[2] http://flexvdi.com
[3] http://flexvdi.com/signature/mail.png
[4] mailto:javier.celaya at flexvdi.com
[5] http://flexvdi.com/signature/phone.png
[6] http://flexvdi.com/signature/skype.png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150608/a3941030/attachment-0001.html>


More information about the Spice-devel mailing list