[Spice-devel] [PATCH spice-common 3/3] build: Introduce 'agent' as an alternative instrumentation library

2019-10-17 Thread Kevin Pouget
The 'agent' interface is an experimental instrumentation library for capturing and sharing Spice performance indicators with an external agent. --enable-instrumentation=[c3d-rec/agent/no] Enable instrumentation [default=no] Former configuration option '--enable-recorder=c3d' is t

[Spice-devel] [PATCH spice-common 1/3] agent-interface: introduce the core of the Agent Interface

2019-10-17 Thread Kevin Pouget
When initialized (recorder_initialization), the Agent Interface launch a GThread (handle_communications) that opens a TCP server socket and waits for Smart Local Agent connections. When a Local Agent connects to the sockets, the communication is initialized (agent_initialize_communication), the com

[Spice-devel] [PATCH spice-common 2/3] agent-interface: add configuration functions

2019-10-17 Thread Kevin Pouget
agent_interface_start: this function allows launching the agent interface (ie, its listening socket) on a given port. agent_interface_set_on_connect_cb: this function allows passing a callback function that will be triggered when a client (a Local Agent) connects to the Agent Interface socket. ag

[Spice-devel] [PATCH 4/5] drm/qxl: use DEFINE_DRM_GEM_FOPS()

2019-10-17 Thread Gerd Hoffmann
We have no qxl-specific fops any more. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index 65464630ac98..1d601f57a6ba 100644 --- a/drivers/

[Spice-devel] [PATCH 3/5] drm/qxl: drop verify_access

2019-10-17 Thread Gerd Hoffmann
Not needed any more. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_ttm.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 629ac8e77a21..54cc5a5b607e 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/

[Spice-devel] [PATCH 5/5] drm/qxl: allocate small objects top-down

2019-10-17 Thread Gerd Hoffmann
qxl uses small buffer objects for qxl commands. Allocate them top-down to reduce fragmentation. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_object.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_o

spice-devel@lists.freedesktop.org

2019-10-17 Thread Gerd Hoffmann
Wire up the new drm_gem_ttm_mmap() helper function. Use generic drm_gem_mmap() and remove qxl_mmap(). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h| 1 - drivers/gpu/drm/qxl/qxl_drv.c| 2 +- drivers/gpu/drm/qxl/qxl_object.c | 1 + drivers/gpu/drm/qxl/qxl_ttm.c| 16

[Spice-devel] [PATCH 1/5] drm/qxl: drop qxl_ttm_fault

2019-10-17 Thread Gerd Hoffmann
Not sure what this hook is supposed to do. vmf->vma->vm_private_data should never be NULL, so the extra check in qxl_ttm_fault should have no effect. Drop it. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_ttm.c | 27 +-- 1 file changed, 1 insertion(+), 26 del

Re: [Spice-devel] [PATCH -next] drm/qxl: Fix randbuild error

2019-10-17 Thread Gerd Hoffmann
On Tue, Oct 08, 2019 at 10:40:54AM +0800, YueHaibing wrote: > If DEM_QXL is y and DRM_TTM_HELPER is m, building fails: > > drivers/gpu/drm/qxl/qxl_object.o: undefined reference to > `drm_gem_ttm_print_info' > > Select DRM_TTM_HELPER to fix this. Queued up for drm-misc-next. thanks, Gerd ___

[Spice-devel] [PATCH spice-streaming-agent] gst-plugin: Allow the instantiation/configuration of multiple plugins

2019-10-17 Thread Kevin Pouget
This patch allows the instantiation and the configuration of multiple GStreamer plugins from the commandline. One plugin will be instantiated for each 'gst.codec=VALUE' found in the command line arguments. A plugin can be instantiated by codec, with the default gstreamer encoder: 'gst.codec=CODEC