Re: [Spice-devel] [RFC PATCH vdagent 14/16] Adding ioctl operation to update Vdagent state

2016-07-20 Thread Frediano Ziglio
About typedef of struct is true, all structures, even declared in C++ have typedefs. About all upper case is false, beside the definitions added by these patches but are C definitions, not C++. About space there is a space after the structure name before bracket ("{"). About empty lines mostly

Re: [Spice-devel] [RFC PATCH vdagent 14/16] Adding ioctl operation to update Vdagent state

2016-07-20 Thread Sameeh Jubran
This style was used in order to match the current style of VDAgent. On Mon, Jul 18, 2016 at 10:54 AM, Frediano Ziglio wrote: > > > > From: Sameeh Jubran > > > > This patch adds new ioctl operation to Vdagent in order to update > > the driver on Vdagent state. This allows the driver to know > >

Re: [Spice-devel] [RFC PATCH vdagent 10/16] Add simple build script

2016-07-20 Thread Christophe Fergeau
Out of curiosity, what are these build scripts used for? Day-to-day development, CI, package building, something else? Christophe On Mon, Jul 18, 2016 at 09:34:44AM +0300, Dmitry Fleytman wrote: > Signed-off-by: Dmitry Fleytman > --- > Tools/vs_cmdline.vbs | 23 +++ > Tools/

Re: [Spice-devel] [RFC PATCH vdagent 14/16] Adding ioctl operation to update Vdagent state

2016-07-20 Thread Christophe Fergeau
On Wed, Jul 20, 2016 at 06:00:53PM +0200, Christophe Fergeau wrote: > On Mon, Jul 18, 2016 at 09:34:48AM +0300, Dmitry Fleytman wrote: > > From: Sameeh Jubran > > > > This patch adds new ioctl operation to Vdagent in order to update > > the driver on Vdagent state. This allows the driver to know

Re: [Spice-devel] [RFC PATCH vdagent 14/16] Adding ioctl operation to update Vdagent state

2016-07-20 Thread Christophe Fergeau
On Mon, Jul 18, 2016 at 09:34:48AM +0300, Dmitry Fleytman wrote: > From: Sameeh Jubran > > This patch adds new ioctl operation to Vdagent in order to update > the driver on Vdagent state. This allows the driver to know > when Vdagent is running and when it is off. Why does it need to know that?

Re: [Spice-devel] [RFC PATCH vdagent 09/16] Unify debug options

2016-07-20 Thread Christophe Fergeau
'Unify' ? Make them consistent between the various vcxproj files? Christophe On Mon, Jul 18, 2016 at 09:34:43AM +0300, Dmitry Fleytman wrote: > Signed-off-by: Dmitry Fleytman > --- > vdagent/vdagent.vcxproj | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/vdagent/vdagen

Re: [Spice-devel] [RFC PATCH vdagent 07/16] Advance target platform version

2016-07-20 Thread Christophe Fergeau
What does this mean, what issues is this causing, why does it need to be done? One or 2 sentences to know what's going on wouldn't hurt :) Christophe On Mon, Jul 18, 2016 at 09:34:41AM +0300, Dmitry Fleytman wrote: > Signed-off-by: Dmitry Fleytman > --- > vdagent/vdagent.vcxproj | 2 +- >

Re: [Spice-devel] [RFC PATCH vdagent 06/16] Fix include path to spice-protocol

2016-07-20 Thread Christophe Fergeau
I guess this could be squashed in "Provide support for Windows 10 CCD API"? Christophe On Mon, Jul 18, 2016 at 09:34:40AM +0300, Dmitry Fleytman wrote: > Signed-off-by: Dmitry Fleytman > --- > vdagent/vdagent.vcxproj | 16 > vdservice/vdservice.vcxproj | 8 > 2 fi

Re: [Spice-devel] [RFC PATCH vdagent 05/16] Add .gitignore file

2016-07-20 Thread Christophe Fergeau
Ah, the autotools based build-system knows how to autogenerate a .gitignore file, but we should indeed make sure it's committed to git so that it can be useful to people using VC++. Christophe On Mon, Jul 18, 2016 at 09:34:39AM +0300, Dmitry Fleytman wrote: > Signed-off-by: Dmitry Fleytman > ---

Re: [Spice-devel] [RFC PATCH vdagent 03/16] Add cximage submodule

2016-07-20 Thread Christophe Fergeau
Why does this need to be a subdomule? Until now, this was managed as an external dependency. Christophe On Mon, Jul 18, 2016 at 09:34:37AM +0300, Dmitry Fleytman wrote: > Signed-off-by: Dmitry Fleytman > --- > .gitmodules | 3 +++ > cximage | 1 + > 2 files changed, 4 insertions(+) > creat

Re: [Spice-devel] [RFC PATCH vdagent 02/16] Provide support for Windows 10 CCD API

2016-07-20 Thread Christophe Fergeau
On Mon, Jul 18, 2016 at 09:34:36AM +0300, Dmitry Fleytman wrote: > diff --git a/vdagent/display_configuration.h b/vdagent/display_configuration.h > new file mode 100644 > index 000..eeba1c2 > --- /dev/null > +++ b/vdagent/display_configuration.h > @@ -0,0 +1,192 @@ > +/* > +Copyright (C) 2015 R

Re: [Spice-devel] [RFC PATCH vdagent 02/16] Provide support for Windows 10 CCD API

2016-07-20 Thread Christophe Fergeau
What is this CCD API, why is it needed? Is this Win10 only, or did older Windows version have an equivalent? Does the old code keeps working after this commit? Given the size of thecommits I'd expect many more explanations as to what's being done and why. Christophe On Mon, Jul 18, 2016 at 09:34

Re: [Spice-devel] [RFC PATCH vdagent 01/16] Fix 'Run-Time Check Failure #2' when running a 64bit guest

2016-07-20 Thread Christophe Fergeau
This log could include a bit more about the failure (ie how it happens). I'd guess with very long filenames? Christophe On Mon, Jul 18, 2016 at 09:34:35AM +0300, Dmitry Fleytman wrote: > From: Sandy Stutsman > > --- > vdagent/display_setting.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: [Spice-devel] [Qemu-devel] [PATCH Qemu] Change spice-server protocol for GL texture passing

2016-07-20 Thread Christophe Fergeau
On Tue, Jul 19, 2016 at 09:41:22AM -0400, Frediano Ziglio wrote: > > I don't think we have strong reasons to support software encoding, video > > encoding is really expensive, and that mmap/copy is not going to be > > marginal, so even less these 2 syscalls. > > > > Using HW encoding is not easy

[Spice-devel] [PATCH spice] Call migrate_end_complete() after falling back to switch-host

2016-07-20 Thread marcandre . lureau
From: Marc-André Lureau Eventually, during a seamless migration, qemu may finish to migrate before the spice client even finished to connect all channels to destination and informed the server. In this case, main_channel_client_migrate_src_complete() will fall back to switch-host method, and reds

Re: [Spice-devel] how we can use more effectively spice protocol alternate to windows RDP

2016-07-20 Thread Frediano Ziglio
Hi, would be helpful if you can explain a bit what you are trying to achieve and what your usage. How many machine are you using? Which OS/version are you using on guests and host? What kind of network/bandwidth? Which kind of applications? Office ones? Regards, Frediano - Original Messa

[Spice-devel] Logic of QXL memory resources recycle

2016-07-20 Thread Anudorannador
Hi. When there is not enough memory for QXL driver, it will send a OOM message to spice sever to release some memory. And then the function handle_dev_oom, which in server/red_worker.c will be called. In this function, there is a line of code: worker->qxl->st->qif->flush_resources(worker->qxl), wh

Re: [Spice-devel] [PATCH RFC 00/12] Remote Virgl support

2016-07-20 Thread Gerd Hoffmann
Hi, > > Hmm. The guest will not give us 2-3 frames though. We'll have either > > one or two, depending on whenever the guest uses page-flips or not. So > > implementing a buffering scheme as outlined above requires us to copy > > (or let the gpu copy) the frames. > Probably 2 are enough, 1 I