LZ4 compression is now available at the Spicevmc channel

Enterprise / Virtualization / SPICE - snir sheriber [redhat.com] - 13 June 2016 17:12 UTC

Compressed message type is CompressedData which contains compression type (1 byte) followed by the uncompressed data size (4 bytes - exists only if data was compressed) followed by the compressed data

If SPICE_USBREDIR_CAP_DATA_COMPRESS_LZ4 capability is available && data_size > COMPRESS_THRESHOLD && !AF_LOCAL data will be sent compressed otherwise data will be sent uncompressed (also if compression has failed)

Update the required protocol to 0.12.12

903c91c LZ4 compression is now available at the Spicevmc channel
configure.ac | 2 +-
server/spicevmc.c | 140 +++++++++++++++++++++++++++++++++++++++++++++++++----
spice-common | 2 +-
3 files changed, 133 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org


  • Share