Re: [Spice-devel] How to use spice floder sharing

2018-12-18 Thread wangjiedong
Actually there are 2 questions. Firstly , on Windows 7 vm i can install spice-webdavd-x64-2.2.msi and no error , but the service spice-webdavd in TASK MANAGER allways stop although rebooting vm. Then, on Linux vm , I can install spice-webdavd and also can find Spice client folder icon on files n

Re: [Spice-devel] Adding support for mouse buttons SIDE and EXTRA (often scroll wheel push left or right)

2018-12-18 Thread james harvey
I added in those involved in Oct 25, 2017'ish discussion regarding horizontal mouse wheel support, from here: https://patchwork.freedesktop.org/series/32626/ I'm not sure if that patchset was officially rejected. Regarding comments in that patcheset, because a native qemu (no spice involved) wind

Re: [Spice-devel] [linux-agent v1 4/5] x11: Avoid dereference of a null pointer

2018-12-18 Thread Frediano Ziglio
> > From: Victor Toso > > Found by coverity: > | warning: Access to field 'next' results in a dereference of a > | null pointer (loaded from variable 'prev_sel') > > Signed-off-by: Victor Toso > --- > src/vdagent/x11.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --gi

Re: [Spice-devel] [vdagent-linux v2] systemd: Remove unneded virtio-port dependencies

2018-12-18 Thread Christophe Fergeau
On Tue, Dec 18, 2018 at 12:15:09PM -0500, Frediano Ziglio wrote: > > > > The udev rule already adds SYSTEMD_WANTS=spice-vdagentd.socket > > to the relevant virtio devices, which automatically adds Wants=${device} > > to spice-vdagentd.socket (see 'systemctl show spice-vdagentd.socket'). > > Adding

Re: [Spice-devel] [linux-agent v1 3/5] After fork, use one expression per line

2018-12-18 Thread Frediano Ziglio
> > From: Victor Toso > > And use well defined macros for standard file descriptors. > > Signed-off-by: Victor Toso > --- > src/vdagent/vdagent.c | 8 ++-- > src/vdagentd/vdagentd.c | 8 ++-- > 2 files changed, 12 insertions(+), 4 deletions(-) > > diff --git a/src/vdagent/vdagent.c

Re: [Spice-devel] [linux-agent v1 2/5] x11-randr: Improve argument check

2018-12-18 Thread Frediano Ziglio
> > From: Victor Toso > > In the current code, output should never be negative but the check > exists after we use the variable as index. Make the check earlier. > > Found by coverity: > | check_after_sink: You might be using variable "output" before > | verifying that it is >= 0. > > Sign

Re: [Spice-devel] [PATCH spice-common 1/2] Use a single copy of subject string

2018-12-18 Thread Frediano Ziglio
> On Thu, Dec 13, 2018 at 02:20:24PM +, Frediano Ziglio wrote: > > A full copy can keep both the key and the value instead of > > allocating twice the memory. > > Also this remove a warning produced by Coverity that is assuming > > that allocating strlen(string_variable) is wrong. > > We are p

Re: [Spice-devel] [PATCH spice-common 2/2] test: Add a test for subject_to_x509_name function

2018-12-18 Thread Frediano Ziglio
> On Thu, Dec 13, 2018 at 02:20:25PM +, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > > --- > > common/ssl_verify.c | 5 +- > > common/ssl_verify.h | 4 ++ > > tests/Makefile.am | 20 ++ > > tests/test-ssl-verify.c | 141 +++

Re: [Spice-devel] [vdagent-linux v2] systemd: Remove unneded virtio-port dependencies

2018-12-18 Thread Frediano Ziglio
> > The udev rule already adds SYSTEMD_WANTS=spice-vdagentd.socket > to the relevant virtio devices, which automatically adds Wants=${device} > to spice-vdagentd.socket (see 'systemctl show spice-vdagentd.socket'). > Adding a Requisite/After for these ports is at best redundant, and most > likely

Re: [Spice-devel] [PATCH spice-common 2/2] test: Add a test for subject_to_x509_name function

2018-12-18 Thread Christophe Fergeau
On Thu, Dec 13, 2018 at 02:20:25PM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > common/ssl_verify.c | 5 +- > common/ssl_verify.h | 4 ++ > tests/Makefile.am | 20 ++ > tests/test-ssl-verify.c | 141 > 4 fil

Re: [Spice-devel] [PATCH spice-common 1/2] Use a single copy of subject string

2018-12-18 Thread Christophe Fergeau
On Thu, Dec 13, 2018 at 02:20:24PM +, Frediano Ziglio wrote: > A full copy can keep both the key and the value instead of > allocating twice the memory. > Also this remove a warning produced by Coverity that is assuming > that allocating strlen(string_variable) is wrong. We are parsing key1=va

Re: [Spice-devel] [linux-agent v1 1/5] virtio-port: initialize struct before memcpy

2018-12-18 Thread Frediano Ziglio
> > From: Victor Toso > > Found by coverity: > > | uninit_use_in_call: Using uninitialized value "message_header". Field > | "message_header.data" is uninitialized when calling "memcpy". > > Signed-off-by: Victor Toso This structure is defined as: typedef struct SPICE_ATTR_PACKED VDAgent

Re: [Spice-devel] [PATCH linux vdagent 01/10] Add lookup_xrand_output_for_device_info()

2018-12-18 Thread Lukáš Hrázký
Hi, sorry about piecemealing this. On Thu, 2018-12-13 at 16:46 -0600, Jonathon Jongsma wrote: > Add a function to look up an xrandr output for a given device display > id. This uses sysfs and the drm subsystem to lookup information about a > graphics device output. It then compares the drm output

[Spice-devel] [linux-agent v1 4/5] x11: Avoid dereference of a null pointer

2018-12-18 Thread Victor Toso
From: Victor Toso Found by coverity: | warning: Access to field 'next' results in a dereference of a | null pointer (loaded from variable 'prev_sel') Signed-off-by: Victor Toso --- src/vdagent/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vdagent/x11.c b/src

[Spice-devel] [linux-agent v1 1/5] virtio-port: initialize struct before memcpy

2018-12-18 Thread Victor Toso
From: Victor Toso Found by coverity: | uninit_use_in_call: Using uninitialized value "message_header". Field | "message_header.data" is uninitialized when calling "memcpy". Signed-off-by: Victor Toso --- src/vdagentd/virtio-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Spice-devel] [linux-agent v1 3/5] After fork, use one expression per line

2018-12-18 Thread Victor Toso
From: Victor Toso And use well defined macros for standard file descriptors. Signed-off-by: Victor Toso --- src/vdagent/vdagent.c | 8 ++-- src/vdagentd/vdagentd.c | 8 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/vdagent/vdagent.c b/src/vdagent/vdagent.c

[Spice-devel] [linux-agent v1 5/5] x11: Avoid dereference of a null pointer

2018-12-18 Thread Victor Toso
From: Victor Toso Similar to previous patch, found by coverity: | var_deref_op: Dereferencing null pointer "prev_conv". Signed-off-by: Victor Toso --- src/vdagent/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vdagent/x11.c b/src/vdagent/x11.c index 69eed4a..50

[Spice-devel] [linux-agent v1 2/5] x11-randr: Improve argument check

2018-12-18 Thread Victor Toso
From: Victor Toso In the current code, output should never be negative but the check exists after we use the variable as index. Make the check earlier. Found by coverity: | check_after_sink: You might be using variable "output" before | verifying that it is >= 0. Signed-off-by: Victor Toso

[Spice-devel] [vdagent-linux v2] systemd: Remove unneded virtio-port dependencies

2018-12-18 Thread Christophe Fergeau
The udev rule already adds SYSTEMD_WANTS=spice-vdagentd.socket to the relevant virtio devices, which automatically adds Wants=${device} to spice-vdagentd.socket (see 'systemctl show spice-vdagentd.socket'). Adding a Requisite/After for these ports is at best redundant, and most likely wrong as this

[Spice-devel] [vdagent-linux] systemd: Remove unneded virtio-port dependency

2018-12-18 Thread Christophe Fergeau
The udev rule already adds SYSTEMD_WANTS=spice-vdagentd.socket to the relevant virtio devices, which automatically adds Wants=${device} to spice-vdagentd.socket (see 'systemctl show spice-vdagentd.socket'). Adding a Requisite for these ports is at best redundant, and most likely wrong as this is ca