Re: [Spice-devel] [NSIS] automation: add standard ci support

2017-10-17 Thread Yedidyah Bar David
On Tue, Oct 17, 2017 at 12:30 PM, Christophe Fergeau wrote: > On Mon, Oct 16, 2017 at 05:01:14PM +0300, Yedidyah Bar David wrote: >> On Mon, Oct 16, 2017 at 4:16 PM, Yedidyah Bar David wrote: >> > On Mon, Oct 16, 2017 at 4:07 PM, Christophe Fergeau >> > wrote: >> >> My understanding is that the

[Spice-devel] [PATCH spice-server 1/2] reds-stream: Removed unused "username" field

2017-10-17 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/reds-stream.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/reds-stream.c b/server/reds-stream.c index 817564e21..c12893793 100644 --- a/server/reds-stream.c +++ b/server/reds-stream.c @@ -68,7 +68,6 @@ typedef struct RedsSASL { SpiceBu

[Spice-devel] [PATCH spice-server 2/2] reds-stream: Remove useless debug

2017-10-17 Thread Frediano Ziglio
There are already other debugging code showing channel closure. Not closed file descriptors can easily be detected with other tools (like netstat or /proc file system). Signed-off-by: Frediano Ziglio --- server/reds-stream.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/reds-stream.c

Re: [Spice-devel] [spice-server 1/5] utils: Introduce helpers to map channel types to names

2017-10-17 Thread Frediano Ziglio
> > spice_server_set_channel_security() is already mostly doing that. We can > make its code more generic, and introduce a red_channel_get_name() > method. This method will then be used to make debug messages more > readable by showing the actual channel name rather than its type as > an int. > --

Re: [Spice-devel] [spice-server 5/5] channel-client: Implement red_channel_client_get_pipe_item_name

2017-10-17 Thread Frediano Ziglio
> > To be honest, to me it feels like the benefit from this change is not > worth the added complexity of generating GEnums and modifying the > channel clients, etc. Do you have plans to use this somewhere? Or do > you just call it from gdb or something? > > Jonathon > I agree. One alternative

Re: [Spice-devel] [spice-server 2/5] channel: Introduce logging helpers

2017-10-17 Thread Jonathon Jongsma
Despite my misgivings about calling _printerr() with an empty string... Acked-by: Jonathon Jongsma On Thu, 2017-10-12 at 12:13 +0200, Christophe Fergeau wrote: > This commit adds red_channel_{debug,warning,printerr}() helpers which > will prepend the log message with "channel-name:id (%p)". It

Re: [Spice-devel] [spice-server 1/5] utils: Introduce helpers to map channel types to names

2017-10-17 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-10-12 at 12:13 +0200, Christophe Fergeau wrote: > spice_server_set_channel_security() is already mostly doing that. We > can > make its code more generic, and introduce a red_channel_get_name() > method. This method will then be used to make debug messages

Re: [Spice-devel] [spice-server 5/5] channel-client: Implement red_channel_client_get_pipe_item_name

2017-10-17 Thread Jonathon Jongsma
To be honest, to me it feels like the benefit from this change is not worth the added complexity of generating GEnums and modifying the channel clients, etc. Do you have plans to use this somewhere? Or do you just call it from gdb or something? Jonathon On Thu, 2017-10-12 at 12:13 +0200, Christo

Re: [Spice-devel] [PATCH spice-server 2/2] red-qxl: Enforce boolean for QXLDevSurfaceCreate::mouse_mode

2017-10-17 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2017-10-17 at 11:14 +0100, Frediano Ziglio wrote: > In some cases mouse_mode is a bit field. > However for this structure is used always as a boolean > value. > > Signed-off-by: Frediano Ziglio > --- > server/red-qxl.c | 3 ++- > 1 file changed, 2 insertion

Re: [Spice-devel] [PATCH spice-server 1/2] red-qxl: Remove surface_create field

2017-10-17 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Tue, 2017-10-17 at 11:14 +0100, Frediano Ziglio wrote: > This field was used just to store a value and retrieve again > while we can just pass it instead. > > Signed-off-by: Frediano Ziglio > --- > server/red-qxl.c| 10 ++ > server/red-worker.c | 2 +

Re: [Spice-devel] [PATCH v5 7/8] vdagent: Use GMainLoop

2017-10-17 Thread Jakub Janků
On Tue, Oct 17, 2017 at 10:09 AM, Frediano Ziglio wrote: > From: Jakub Janků > > Replace existing main while-loop with GMainLoop. > > Use GIOChannel with g_io_add_watch() to manage IO > from x11 connections in the main loop. > > udscs_connect() now internally creates GSources > by calling g_io_ad

[Spice-devel] [PATCH spice-server 1/2] red-qxl: Remove surface_create field

2017-10-17 Thread Frediano Ziglio
This field was used just to store a value and retrieve again while we can just pass it instead. Signed-off-by: Frediano Ziglio --- server/red-qxl.c| 10 ++ server/red-worker.c | 2 +- server/red-worker.h | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/server

[Spice-devel] [PATCH spice-server 2/2] red-qxl: Enforce boolean for QXLDevSurfaceCreate::mouse_mode

2017-10-17 Thread Frediano Ziglio
In some cases mouse_mode is a bit field. However for this structure is used always as a boolean value. Signed-off-by: Frediano Ziglio --- server/red-qxl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/red-qxl.c b/server/red-qxl.c index e386ba629..8cf09d9a8 100644 -

Re: [Spice-devel] [NSIS] automation: add standard ci support

2017-10-17 Thread Christophe Fergeau
On Mon, Oct 16, 2017 at 05:01:14PM +0300, Yedidyah Bar David wrote: > On Mon, Oct 16, 2017 at 4:16 PM, Yedidyah Bar David wrote: > > On Mon, Oct 16, 2017 at 4:07 PM, Christophe Fergeau > > wrote: > >> My understanding is that the short log really should be saying "oVirt CI > >> support" rather t

[Spice-devel] [PATCH v5 7/8] vdagent: Use GMainLoop

2017-10-17 Thread Frediano Ziglio
From: Jakub Janků Replace existing main while-loop with GMainLoop. Use GIOChannel with g_io_add_watch() to manage IO from x11 connections in the main loop. udscs_connect() now internally creates GSources by calling g_io_add_watch(). This enables GMainLoop integration, clients no longer need to

Re: [Spice-devel] [PATCH v4 7/8] vdagent: Use GMainLoop

2017-10-17 Thread Christophe Fergeau
On Mon, Oct 16, 2017 at 10:53:43AM -0400, Frediano Ziglio wrote: > > - > > -n = select(nfds, &readfds, &writefds, NULL, NULL); > > -if (n == -1) { > > -if (errno == EINTR) > > -continue; > > -syslog(LOG_ERR, "Fatal error select: %s", strerror(