Re: [Spice-devel] [PATCH 0/5] Documentation and cleanup of Drawable Tree

2017-02-10 Thread Jonathon Jongsma
On Fri, 2017-02-10 at 10:45 +0100, Christophe de Dinechin wrote: > Overall, I like the patches. But I wonder if it would make sense to > switch to a doxygen format for large comments like this? I personally don't see a huge advantage to using a tool like doxygen here, since I rarely am interested

Re: [Spice-devel] [PATCH 3/5] DisplayChannel: start documenting drawable tree

2017-02-10 Thread Jonathon Jongsma
On Fri, 2017-02-10 at 06:56 -0500, Frediano Ziglio wrote: > > > > [snip] > > +/* Add a @drawable (with a shadow) to the current ring. > > + * The return value indicates whether the new item should be added > > to the > > pipe */ > > it's @drawable or @item ? I guess it should be @item. > >

Re: [Spice-devel] [PATCH 4/5] DisplayChannel: use proper function name conventions

2017-02-10 Thread Jonathon Jongsma
On Fri, 2017-02-10 at 06:57 -0500, Frediano Ziglio wrote: > > > > Change current_add_drawable() to display_channel_add_drawable() and > > current_remove_drawable() to display_channel_remove_drawable(). > > --- > >  server/display-channel.c | 28 ++-- > >  1 file changed, 14

[Spice-devel] Help !!!!

2017-02-10 Thread Bernice Levin
Hi Guys (Dolls) Please I need your help. I have installed KVM Hypervisor on OpenSUSE, I have everything working - installed VMs and have accessed them on localhost through Virt-viewer but cannot get access on the network from a windows 10 PC on remote-viewer. I think the problem is that there i

Re: [Spice-devel] [spice-server 03/10] Remove OutgoingHandlerInterface

2017-02-10 Thread Frediano Ziglio
> > On Fri, Feb 10, 2017 at 10:36:10AM -0500, Frediano Ziglio wrote: > > So are you saying you prefer an heavy unsafe signal instead of a > > function call just for statistics that's disabled by default? > > My desktop is built on such signals and works just fine, thank you ;) These are patches

Re: [Spice-devel] [PATCH v6 4/5] vdagentd: early return on bad message size

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 04:54:50PM +0100, Michal Suchánek wrote: > Of course, if you split the commit and bisection points to one of the > commits that clearly change the behavior for a few message types it is > then easy to check handling of those messages and fix it. If the > bisection points to

Re: [Spice-devel] [spice-server 03/10] Remove OutgoingHandlerInterface

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 10:36:10AM -0500, Frediano Ziglio wrote: > So are you saying you prefer an heavy unsafe signal instead of a > function call just for statistics that's disabled by default? My desktop is built on such signals and works just fine, thank you ;) And yes, statistics gathering do

Re: [Spice-devel] [PATCH v6 4/5] vdagentd: early return on bad message size

2017-02-10 Thread Michal Suchánek
On Mon, 30 Jan 2017 13:11:40 +0100 Christophe Fergeau wrote: > On Fri, Jan 27, 2017 at 03:37:17PM +0100, Michal Suchánek wrote: > > On Wed, 25 Jan 2017 08:24:55 +0100 > > Christophe Fergeau wrote: > > > > > On Tue, Jan 24, 2017 at 07:52:11PM +0100, Michal Suchánek wrote: > > > > On Tue, 24

Re: [Spice-devel] [spice-server 03/10] Remove OutgoingHandlerInterface

2017-02-10 Thread Frediano Ziglio
> > On Fri, Feb 10, 2017 at 04:47:15AM -0500, Frediano Ziglio wrote: > > > > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > > RedChannel uses OutgoingHandlerInterface to provide constant pointers > > > > to > > > > RedChannelClient methods. This OutgoingHandlerInterface st

Re: [Spice-devel] [spice-server 06/10] Move variables to inner block in red_peer_handle_incoming()

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 08:25:35AM -0500, Frediano Ziglio wrote: > I personally would merge even without the others, just the comment > require a next commit. > > Acked-by: Frediano Ziglio Agreed, pushed after rewording the commit log. Christophe signature.asc Description: PGP signature _

Re: [Spice-devel] [spice-server 05/10] More removal of IncomingHandlerInterface vfuncs

2017-02-10 Thread Christophe Fergeau
On Wed, Feb 08, 2017 at 04:43:09PM -0600, Jonathon Jongsma wrote: > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > This commit removes IncomingHandlerInterface::on_error and > > IncomingHandlerInterface::on_input. As with previous commits, these > > vfuncs are always calling the m

Re: [Spice-devel] [spice-server 04/10] Remove IncomingHandlerInterface::{alloc, release}_msg_buf

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 08:17:47AM -0500, Frediano Ziglio wrote: > > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > Similarly to the previous commits, this removes an indirection level, > > > IncomingHandlerInterface stores pointers to > > > alloc_recv_buf/release_recv_buf

Re: [Spice-devel] [spice-server 04/10] Remove IncomingHandlerInterface::{alloc, release}_msg_buf

2017-02-10 Thread Christophe Fergeau
On Wed, Feb 08, 2017 at 12:54:44PM -0600, Jonathon Jongsma wrote: > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > Similarly to the previous commits, this removes an indirection level, > > IncomingHandlerInterface stores pointers to > > alloc_recv_buf/release_recv_buf vfuncs, but

Re: [Spice-devel] wss forced on spice.html

2017-02-10 Thread Pavel Grunt
On Fri, 2017-02-10 at 09:47 -0500, Frediano Ziglio wrote: > > > > Hi Cory, > > > > > > On 01/29/2017 04:38 PM, Cory Schwartz wrote: > > > Hi, > > > > > > I noticed on the example page > > > https://www.spice-space.org/spice-html5/spice.html > > > that you are unable to connect to a websocket wh

Re: [Spice-devel] wss forced on spice.html

2017-02-10 Thread Frediano Ziglio
> > Hi Cory, > > > On 01/29/2017 04:38 PM, Cory Schwartz wrote: > > Hi, > > > > I noticed on the example page > > https://www.spice-space.org/spice-html5/spice.html > > that you are unable to connect to a websocket where SSL is not > > implemented. The reason for this is that the original site

Re: [Spice-devel] [spice-server 03/10] Remove OutgoingHandlerInterface

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 04:47:15AM -0500, Frediano Ziglio wrote: > > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > RedChannel uses OutgoingHandlerInterface to provide constant pointers > > > to > > > RedChannelClient methods. This OutgoingHandlerInterface structure is > >

[Spice-devel] [PATCH spice-server] smartcard: Remove a "rename" function

2017-02-10 Thread Frediano Ziglio
smartcard_channel_client_pipe_add_push was just calling red_channel_client_pipe_add_push without any cast or other changes. Signed-off-by: Frediano Ziglio --- server/smartcard.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/server/smartcard.c b/server/smart

[Spice-devel] [PATCH spice-server 2/2] red-channel-client: Pass array size to red_channel_client_prepare_out_msg

2017-02-10 Thread Frediano Ziglio
Do not make it assume vec contains IOV_MAX elements. Signed-off-by: Frediano Ziglio --- server/red-channel-client.c | 12 +++- server/red-channel-client.h | 4 ++-- server/red-channel.h| 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/server/red-channel-cl

[Spice-devel] [PATCH spice-server 1/2] red-channel-client: Remove vec field from OutgoingHandler

2017-02-10 Thread Frediano Ziglio
This was always set to vec_buf. Signed-off-by: Frediano Ziglio --- server/red-channel-client-private.h | 3 +-- server/red-channel-client.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/server/red-channel-client-private.h b/server/red-channel-client-private.h ind

Re: [Spice-devel] [spice-server 02/10] Rework red_channel_on_output a bit

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 04:27:57AM -0500, Frediano Ziglio wrote: > > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > > Although I think it's a little bit unfortunate that we need to expose > > another function in red-channel.h, it does seem to make more sense this > > way.

Re: [Spice-devel] [spice-server 02/10] Rework red_channel_on_output a bit

2017-02-10 Thread Christophe Fergeau
On Wed, Feb 08, 2017 at 12:17:01PM -0600, Jonathon Jongsma wrote: > [1] speaking of which, why is it opaque instead of a RedChannelClient*? > Maybe that will be addressed later in this series... Yup, it's done down the road, see "rcc: Replace 'opaque' arg with typed RedChannelClient" Christophe

Re: [Spice-devel] [spice-server 01/10] Remove unused 3rd red_channel_register_client_cbs() arg

2017-02-10 Thread Frediano Ziglio
> > On Fri, Feb 10, 2017 at 08:27:27AM -0500, Frediano Ziglio wrote: > > > > > > On Wed, Feb 08, 2017 at 12:10:52PM -0600, Jonathon Jongsma wrote: > > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > > > It was probably meant to be used as a "user_data" argument for the > >

Re: [Spice-devel] [spice-server 01/10] Remove unused 3rd red_channel_register_client_cbs() arg

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 08:27:27AM -0500, Frediano Ziglio wrote: > > > > On Wed, Feb 08, 2017 at 12:10:52PM -0600, Jonathon Jongsma wrote: > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > > It was probably meant to be used as a "user_data" argument for the > > > > various c

Re: [Spice-devel] [spice-server 01/10] Remove unused 3rd red_channel_register_client_cbs() arg

2017-02-10 Thread Frediano Ziglio
> > On Wed, Feb 08, 2017 at 12:10:52PM -0600, Jonathon Jongsma wrote: > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > It was probably meant to be used as a "user_data" argument for the > > > various callbacks, but turns out not to be used. > > > > Hmm, it looks like the las

Re: [Spice-devel] [spice-server 06/10] Move variables to inner block in red_peer_handle_incoming()

2017-02-10 Thread Frediano Ziglio
I personally would merge even without the others, just the comment require a next commit. Acked-by: Frediano Ziglio Frediano > > Acked-by: Jonathon Jongsma > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > Minor refactoring in preparation for the next commits (and rega

Re: [Spice-devel] [spice-server 05/10] More removal of IncomingHandlerInterface vfuncs

2017-02-10 Thread Frediano Ziglio
> > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > This commit removes IncomingHandlerInterface::on_error and > > IncomingHandlerInterface::on_input. As with previous commits, these > > vfuncs are always calling the method, and RedChannel::init sets them > > to > > point to RedCh

Re: [Spice-devel] [spice-server 01/10] Remove unused 3rd red_channel_register_client_cbs() arg

2017-02-10 Thread Christophe Fergeau
On Fri, Feb 10, 2017 at 04:23:46AM -0500, Frediano Ziglio wrote: > > > > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > > It was probably meant to be used as a "user_data" argument for the > > > various callbacks, but turns out not to be used. > > > > Hmm, it looks like the last

Re: [Spice-devel] [spice-server 01/10] Remove unused 3rd red_channel_register_client_cbs() arg

2017-02-10 Thread Christophe Fergeau
On Wed, Feb 08, 2017 at 12:10:52PM -0600, Jonathon Jongsma wrote: > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > It was probably meant to be used as a "user_data" argument for the > > various callbacks, but turns out not to be used. > > Hmm, it looks like the last use of this '

Re: [Spice-devel] [spice-server 04/10] Remove IncomingHandlerInterface::{alloc, release}_msg_buf

2017-02-10 Thread Frediano Ziglio
> > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > Similarly to the previous commits, this removes an indirection level, > > IncomingHandlerInterface stores pointers to > > alloc_recv_buf/release_recv_buf vfuncs, but these are always set to > > RedChannel::alloc_recv_buf/RedChann

Re: [Spice-devel] [spice v8] dcc: handle preferred video codec message

2017-02-10 Thread Victor Toso
Hi, On Fri, Feb 10, 2017 at 07:51:05AM -0500, Frediano Ziglio wrote: > > [0] SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE > > > > This message provides a list of video codecs based on client's order > > of preference. > > > > We duplicate the video codecs array from reds.c and sort it using the

Re: [Spice-devel] [spice v8] dcc: handle preferred video codec message

2017-02-10 Thread Frediano Ziglio
> [0] SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE > > This message provides a list of video codecs based on client's order > of preference. > > We duplicate the video codecs array from reds.c and sort it using the > order of codecs as reference. > > This message will not change an ongoing stre

[Spice-devel] [PATCH spice-server 3/3] worker: use manual flushing on stream to decrease packet fragmentation

2017-02-10 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/common-graphics-channel.c | 26 +++--- server/red-channel-client.c | 16 ++-- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/server/common-graphics-channel.c b/server/common-graphics-channel.c index 2

[Spice-devel] [PATCH spice-server 0/3] Flush interface and TCP_CORK

2017-02-10 Thread Frediano Ziglio
These patches try to add interface to support flush interface. This interface helps improving bandwidth usage reducing bytes sent through network. The TCP_CORK is one possible usage of the library which actually decreases packet numbers (not using SSL) by usually a 5-10%. As you can see from https:

[Spice-devel] [PATCH spice-server 1/3] stream: implement interface for manual flush

2017-02-10 Thread Frediano Ziglio
The writing to network was always immediate. Every write in the stream cause a write to the OS. Can this have some penalty if you don't write large data as network packets can be more fragmented or you encrypt data is smaller chunks (when data are encrypted some padding is added then data is split

[Spice-devel] [PATCH spice-server 2/3] stream: implements flush using TCP_CORK

2017-02-10 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/reds-stream.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/server/reds-stream.c b/server/reds-stream.c index 67968f9..6a35ff2 100644 --- a/server/reds-stream.c +++ b/server/reds-stream.c @@ -24,6 +

Re: [Spice-devel] [PATCH 4/5] DisplayChannel: use proper function name conventions

2017-02-10 Thread Frediano Ziglio
> > Change current_add_drawable() to display_channel_add_drawable() and > current_remove_drawable() to display_channel_remove_drawable(). > --- > server/display-channel.c | 28 ++-- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/server/display-channe

Re: [Spice-devel] [PATCH 3/5] DisplayChannel: start documenting drawable tree

2017-02-10 Thread Frediano Ziglio
> > The code that manages pending QXL Drawable operations is fairly complex > and difficult to understand. This is an attempt to start documenting > that code to save time when we have to work on this code in the future. > --- > server/display-channel.c | 80 > +++

Re: [Spice-devel] [spice-server 03/10] Remove OutgoingHandlerInterface

2017-02-10 Thread Frediano Ziglio
> > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > RedChannel uses OutgoingHandlerInterface to provide constant pointers > > to > > RedChannelClient methods. This OutgoingHandlerInterface structure is > > then used in RedChannelClient to indirectly call these methods. > > > > Si

Re: [Spice-devel] [PATCH 0/5] Documentation and cleanup of Drawable Tree

2017-02-10 Thread Christophe de Dinechin
Overall, I like the patches. But I wonder if it would make sense to switch to a doxygen format for large comments like this? Christophe > On 9 Feb 2017, at 20:46, Jonathon Jongsma wrote: > > On Fri, 2017-02-03 at 16:55 -0600, Jonathon Jongsma wrote: >> Here's a slightly expanded and separated

Re: [Spice-devel] [spice-server 02/10] Rework red_channel_on_output a bit

2017-02-10 Thread Frediano Ziglio
> > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > Have the RedChannelClient callback call into a RedChannel callback > > rather than doing the opposite. This will be useful in some > > subsequent > > refactoring of this code. > > --- > >  server/red-channel-client.c | 2 ++ > >  

Re: [Spice-devel] [spice-server 01/10] Remove unused 3rd red_channel_register_client_cbs() arg

2017-02-10 Thread Frediano Ziglio
> > On Tue, 2017-02-07 at 11:59 +0100, Christophe Fergeau wrote: > > It was probably meant to be used as a "user_data" argument for the > > various callbacks, but turns out not to be used. > > Hmm, it looks like the last use of this 'data' variable was removed in > 96e94c6f. That commit used g_ob

Re: [Spice-devel] [spice-server 00/10] Remove IncomingHandlerInterface/OutgoingHandlerInterface

2017-02-10 Thread Frediano Ziglio
> > Hey, > > This patch series removes IncomingHandlerInterface and > OutgoingHandlerInterface > which added a layer of indirection between RedChannel/RedChannelClient which > is no longer useful now that RedChannel/RedChannelClient are real classes. > > Christophe > I agree with most of the c