Age | Commit message (Collapse) | Author | Files | Lines |
|
calling XInitThreads from main does a HUGE difference...
(remote-viewer)
|
|
vaapisink does not crash... but something is still wrong!
this actually contains tons of changes... but vaapisink not crashing
is interesting
|
|
This shows streaming measurements of a stream being decoded using gstreamer
This measurements should give an idea of client performance in decoding the
stream. Ideally similar or exact measurements could be used for integrating
with smart streaming solution once infrastructure for it will be available.
Currently it just prints the measurements which are explained and can be tweaked
from channel-display-gst.c
This does not include cpu/gpu direct performance testing.
|
|
Avoid to have different settings based on code path used.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
|
|
Set "sync" and "drop" as normal streaming.
|
|
Cairo is only used in SpiceDisplay which is part of the GTK client. If
we are building the GLib only client, it should be optional.
|
|
libucontext is a lightweight implementation of ucontext for platforms
that do not have a built-in implementation. This allows us to use the
same code to support libucontext as ucontext.
|
|
Signed-off-by: Victor Toso <victortoso@redhat.com>
|
|
by passing an open file descriptor in order to support the modern
Android USB device permissioning scheme.
During the process, a handle obtained by a call to
libusb_wrap_sys_device() is stored in the SpiceUsbDevice instance.
A call to libusb_open() is skipped if there is already a handle
present in the SpiceUsbDevice instance.
Finally, on Android, the option LIBUSB_OPTION_NO_DEVICE_DISCOVERY
must be set prior to the call to libusb_init() as per libusb
documentation.
Acked-by: Frediano Ziglio <freddy77@gmail.com>
|
|
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
|
|
This brings in the following changes:
Frediano Ziglio (2):
build: Correctly check for Python modules
ci: Set WINEPATH during Windows build
This fixes https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/152.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
|
|
Adds support for capturing and forwarding the side mouse buttons some mouses
have, typically used in web browsers for previous/next website in history.
(Those are presented by GDK as buttons 8 and 9.)
spice-vdagent requires a corresponding patch to handle the buttons.
At the spice and protocol level, the required changes were previously merged:
* https://gitlab.freedesktop.org/spice/spice/-/issues/45
* https://gitlab.freedesktop.org/spice/spice/-/merge_requests/140
* https://gitlab.freedesktop.org/spice/spice-protocol/-/merge_requests/22
This commit is a rebased and revised version of the patch by Kevin Pouget:
https://www.spinics.net/lists/spice-devel/msg42582.html
(I have confirmed with him that it's OK that I submit the updated patches.)
Co-Authored-By: Kevin Pouget <kpouget@redhat.com>
Co-Authored-By: Joan Bruguera <joanbrugueram@gmail.com>
|
|
This will pass hostname.
This fixes https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/137.
You can easily verify the change with a network capture program running
something like
remote-viewer spice+tls://www.spice-space.org:443
you will see the hostname in the initial exchange.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Victor Toso <victortoso@redhat.com>
|
|
Use proper ioctls for MacOS.
Import new spice-common to solve an issue detecting Python3.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Victor Toso <victortoso@redhat.com>
|
|
Resolve some portability issue, like MacOS.
Macros from <endian.h> were used but not all systems have
this header.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Victor Toso <victortoso@redhat.com>
|
|
See also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
gdk_monitor_get_geometry() may return 0-size, and leads to crash:
https://bugzilla.redhat.com/show_bug.cgi?id=1941627
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
This fixes a regression from 032ca202f839fe1c49cddfd2b0459f9fecc23c86
where a check on whether the usbids file contained anything but the
wrong variable was checked. This is visible on windows when trying to
share a USB device as devices won't get named based on the usbids file.
Same thing on linux if we can't read the name from the sysfs.
`usbids_vendor_info` is only initialized to something not NULL after it
was checked to be different from NULL which is obviously wrong. The
patch wanted to check that the `usbids_vendor_count` was different from
0 instead.
Acked-by: Frediano Ziglio <freddy77@gmail.com>
|
|
Note: that unusual function seems problematic for GI in general, we may want a simple pointer instead..
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Help bindings by setting those functions as DisplayChannel methods.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Internally, spice-widget has separate try_keyboard_ungrab() and
try_mouse_ungrab() functions to ungrab the keyboard and mouse
respectively. Both of these functions are called when the grab
sequence is pressed.
spice-widget exposes try_mouse_ungrab() as spice_display_mouse_ungrab()
to allow callers to explicitly ungrab. However, it does not currently
expose try_keyboard_ungrab(), so callers can only ungrab the mouse and
cannot ungrab the keyboard.
Correct this by exposing try_keyboard_ungrab() as
spice_display_keyboard_ungrab().
Fixes #73
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
gir fails to compute the size of the array, which results in invalid
class size. Deprecate usage of SPICE_RESERVED_PADDING, which isn't that
useful anyway.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
We are about to modify the struct fields, let's make sure we don't break
the ABI.
Once check-abi is added to our CI, this shouldn't be needed, and can
probably be reverted.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
As it is just a getter for allow_scaling.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
The GSource added by gst_bus_add_watch() apparently holds
a reference to the GstBus. This can be seen by running
GST_DEBUG="GST_TRACER:7" GST_TRACERS="leaks" spicy:
GST_TRACER :0:: object-alive, type-name=(string)GstBus, address=(gpointer)0x1e76db0, description=(string)<bus6>, ref-count=(uint)1, trace=(string);
(note that gst_deinit() must be called for this output to be shown,
which doesn't happen in virt-viewer; see 0381e62)
To fix this, save the source's id returned by gst_bus_add_watch()
and remove the source when the pipe is unreferenced.
Signed-off-by: Jakub Janků <jjanku@redhat.com>
|
|
SpiceWidget holds a strong reference on the SpiceSession.
If the windows are not destroyed, the session isn't freed either.
session_disconnect() does destroy all the channels, but other
objects aren't released until the session's dispose
(audio manager, usb manager, webdav).
Signed-off-by: Jakub Janků <jjanku@redhat.com>
|
|
Signed-off-by: Jakub Janků <jjanku@redhat.com>
|
|
Show the current GL scanout, if any already.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
This avoids a critical warning. The function will eventually be called again on realize.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Bumping libtool current & age as new symbol was added to
libspice-client-glib-2.0.so:
spice_main_channel_update_display_mm()
Signed-off-by: Victor Toso <victortoso@redhat.com>
|
|
Since commit b30598293b1c48b9dc0eddfde5a9fc996a83939c ("spice-widget:
fix widget size request on HiDPI when scaling is disabled"), the
widget requested size is divided by the scale factor.
Multiply it back to get the guest display size (a more precise version
would retrive the associated channel and get the "width" and "height"
property from it)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
This reverts commit cbdda3334724f5bb7afe9e21ce0e972e53e71fdc.
This commit doesn't actually do anything useful.
|
|
This reverts commit 18dfbb9e7974d153a1758aef58208591111de80e.
The motivation behind the new API isn't clear enough.
The guest display size can be retrieved through the "width" and "height"
properties of the associated display channel.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Fix the following issue:
Error: RESOURCE_LEAK
src/spice-util.c:235: alloc_fn: Storage is returned
from allocation function "whc_new".
src/spice-util.c:235: var_assign: Assigning: "ctx" =
storage returned from "whc_new(instance_obj, gobject)".
src/spice-util.c:237: leaked_storage: Variable "ctx"
going out of scope leaks the storage it points to.
235| WeakHandlerCtx *ctx = whc_new (instance_obj, gobject);
236|
237|-> g_return_val_if_fail (G_TYPE_CHECK_INSTANCE (instance), 0);
238| g_return_val_if_fail (detailed_signal != NULL, 0);
239| g_return_val_if_fail (c_handler != NULL, 0);
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
This may fix the following static analyzer issue:
src/usb-backend.c:1507: large_shift: In expression "1 << address", left
shifting by more than 31 bits has undefined behavior.
The shift amount, "address", is 32.
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
If not ENABLE_RECORDER, then duration is assigned a value
but is never used - as the compiler optimizes it out.
Fixes the following clang warning:
src/channel-display-gst.c:443:21: warning: Value stored to
'duration' during its initialization is never read
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
Fixes the following clang warning:
src/usbutil.c:148:52: warning: Use of zero-allocated memory
...
product_info[product_count].product_id = id;
^
146| while (isspace(line[0]))
147| line++;
148|-> product_info[product_count].product_id = id;
149| snprintf(product_info[product_count].name,
150| PRODUCT_NAME_LEN, "%s", line);
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
Fix the following static analyzer warning:
src/usb-device-widget.c:224: leaked_storage: Failing to save or free
storage allocated by "g_path_get_basename(filename)" leaks it.
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
This brings in the following changes:
Frediano Ziglio (10):
proto: Add support for side mouse buttons
quic: Constify a parameter
quic: Fix typo in comment
agent: Extend agent_check_message to support VDAgentMonitorsConfig extension
quic: Check we have some data to start decoding quic image
quic: Check image size in quic_decode_begin
quic: Check RLE lengths
quic: Avoid possible buffer overflow in find_bucket
test-quic: Add fuzzer capabilities to the test
test-quic: Add test cases for quic fuzzer
Marc-André Lureau (1):
agent: fix vdagent monitor flag filtering
In particular some security related changes are imported.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <uril@redhat.com>
|
|
After commit 3e20f17b90598e740c4e274b81d99f28187da800 (cfr
"usb-redir: extend USB backend to support emulated devices")
this option stopped working, as devices are not redirected.
Data for device to guest were not written during initialisation.
With this fix both spice-usbredir-redirect-on-connect and
spice-share-cd are working (even together).
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1874740.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <uril@redhat.com>
|
|
Document a behaviour in the code asked a couple of times.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Bump meson requirement to >= 0.53 for summary().
Remove some debug message()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
|
|
host_data and cert_subject_data fields from SPICE messages could be
not NUL terminated so using g_strdup can lead to some read overflow.
This bug was discovered by Uri Lublin.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <uril@redhat.com>
|
|
After commit ab42be2b00d12d0bc98c6ddea08a7f969e83b2ac ("channel-main:
Copy SpiceMigrationDstInfo into spice_migrate") host_data and
cert_subject_data fields in spice_migrate structure are proper
terminated C strings so:
- check pointer instead of related field;
- you don't need to terminate again.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <uril@redhat.com>
|
|
The message could disappear while the structure is used.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <uril@redhat.com>
|