[Spice-devel] [PATCH spice-server 2/3] Remove a warning on MIPS machine

2019-06-03 Thread Frediano Ziglio
The formula is here to make sure glyph is aligned to 4 bytes so tell to the compiler to avoid a warning. Signed-off-by: Frediano Ziglio --- server/red-parse-qxl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/red-parse-qxl.c b/server/red-parse-qxl.c index afae943

[Spice-devel] [PATCH spice-server 1/3] Use SPICE_CONTAINEROF to avoid some possible alignment warnings on MIPS

2019-06-03 Thread Frediano Ziglio
This patch came from some experiments using an emulated MIPS machine. On such architecture due to not supporting alignment access the compiler is more strict about conversion complaining with some pointer casts. Use different conversion to avoid these warnings. Signed-off-by: Frediano Ziglio ---

[Spice-devel] [PATCH spice-server 3/3] jpeg: Support big endian machines

2019-06-03 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/jpeg-encoder.c | 7 +++ server/mjpeg-encoder.c | 21 +++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/server/jpeg-encoder.c b/server/jpeg-encoder.c index 269ed8aa7..1ff7e2506 100644 --- a/server/jpeg-encoder.c ++

[Spice-devel] [PATCH spice-server] char-device: Reuse macros to scan GList

2019-06-03 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/char-device.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/server/char-device.c b/server/char-device.c index 9ee255664..caabdd3e1 100644 --- a/server/char-device.c +++ b/server/char-device.c @@ -224,11 +

[Spice-devel] [PATCH spice-server] common-graphics-channel: Avoid closing server if client send huge messages

2019-06-03 Thread Frediano Ziglio
The Cursor/DisplayChannel is not expecting large messages (which are protocol violations). This fixes https://gitlab.freedesktop.org/spice/spice-server/issues/11. Signed-off-by: Frediano Ziglio --- server/common-graphics-channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [Spice-devel] [PATCH spice-server 2/3] spicevmc: Do not use RedCharDevice pipe items handling

2019-06-03 Thread Frediano Ziglio
> > On 6/1/19 3:14 PM, Frediano Ziglio wrote: > > As we don't use any token there's no reason to not queue > > directly instead of passing through RedCharDevice. > > This will make easier to limit the queue which currently is > > unlimited. > > Hi, > > If we need flow control, how difficult woul