summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-24spiceqxl_audio: Let the audio play when no client is connectedFrancois Gouget1-12/+24
Simply keep reading from the fifos in reasonably sized chunks. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-01-11server: Convert qxl->monitors_config to a QXLPHYSICAL using physical_address()Francois Gouget1-1/+1
This avoids compilation errors with -Werror on 32 bit systems and is more correct than a direct cast. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-12-11Optimize dfps mode to send updates only for the primary pixmap.Jeremy White1-4/+16
We don't need to update the screen when we use a temporary or offscreen pixmap.
2015-12-11Provide an implementation for put_image in dfps mode.Jeremy White1-3/+10
This prevents the fallback from calling prepare_access against the whole screen, which in turn keeps us from transmitting the whole screen more than necessary.
2015-11-16XSpice: auto generate temp files for the vdagent process.Jeremy White1-3/+22
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2015-11-16Revise Xspice --auto to use a temporary directory.Jeremy White1-4/+15
We will put auto session related items in that directory. Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2015-11-09XSpice: allow the udcs socket to be specified, rather than hard coded.Jeremy White1-6/+5
2015-11-09Add support for a --numheads option to the Xspice script.Jeremy White1-1/+6
2015-11-03Xspice: handle parameters with value 0, allows --port 0Jeremy White1-1/+1
As of commit f73ca7e4cc090772652611a4e2b8b95ae64319bc, you can now disable the regular port by specifying 0. This change to the Xspice script permits us to take advantage of that change.
2015-11-02Set the regular spice port only once, and then only if itJeremy White2-1/+1
is not disabled. This fixes a bug where Xspice had to listen on two ports, even in an SSL only configuration.
2015-10-26Document a number of missing XSpice vdagent options in the example xorg.conf.Jeremy White1-18/+43
Also revise the expression of the default value to be consistent.
2015-10-26Correct the XSpice AgentMouse configuration options.Jeremy White3-6/+4
Since the introduction of vdagent support in commit 294daff7ea930f338ec6d77ec3465b6f727c168e, the SpiceAgentMouse setting has not really operated correctly. That is, if SpiceVdagentEnabled was true, the value of SpiceAgentMouse was overridden. This patch corrects that. It also shifts the default; that matches qemu, and effectively preserves the current default behavior.
2015-10-26Only watch the uinput channel when an agent is connected.Jeremy White3-1/+16
Otherwise, you constantly spin loop, getting a return code of 0, and pegging CPU usage at 100%.
2015-10-26Add and remove the vdagent interface as the vdagentJeremy White1-2/+5
actually connects and disconnects. This means that we do not attempt to use agent mouse mode if there is no connected agent. It fixes a bug which would occur if an agent disconnected after session startup which would result in having no useful mouse.
2015-10-19Bug fix: libcacard headers and libraries were not correctly used.Jeremy White2-4/+3
Also shift to libspiceccid_la_CFLAGS.
2015-09-09spiceqxl: Fix formatting of a couple of function calls.Francois Gouget1-4/+2
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-09-07Xspice: Don't set defaults for the options.Francois Gouget1-8/+8
Otherwise they override Spice server's real builtin defaults, the Xorg configuration file settings, and even the XSPICE_XXX environment variables. For instance, without this patch calling Xspice _without_ the '--streaming-video' option forces this setting to 'filter', overriding the XSPICE_STREAMING_VIDEO environment variable and the SpiceStreamingVideo spiceqxl.xorg.conf setting. Note that this does not change the option defaults (the Xspice ones matched the spice server ones). Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-09-07spiceqxl: Reject invalid boolean values, just like for other options.Francois Gouget1-2/+2
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-09-07spiceqxl: Recognize the same set of boolean values as in xorg.conf.Francois Gouget1-7/+20
Issue a warning for invalid values but treat them as TRUE for backward compatibility. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-08-18uxa: fix compiler warnings (initialize width, height, [xy]Dst_copy)Uri Lublin2-3/+3
Some compiler warnings for example: uxa-glyphs.c:1045: warning: ‘width’ may be used uninitialized in this function uxa-glyphs.c:1045: warning: ‘height’ may be used uninitialized in this function uxa-render.c:1090: warning: ‘xDst_copy’ may be used uninitialized in this function uxa-render.c:1090: warning: ‘yDst_copy’ may be used uninitialized in this function I think these can never actually happen as the code protects use of those uninitialized variables, but I'd not "argue" with the compiler.
2015-08-10Xspice: Fix 'erorr' typo in error messageChristophe Fergeau1-1/+1
2015-08-10Add note about deprecated setting of mm_timeChristophe Fergeau1-0/+1
spice-server now ignores this mm_time value and sets it itself as it maintains its own timer (see spice-server commit c541d7e2 'Remove guest side video time-stamping')
2015-08-10Add missing licence headerChristophe Fergeau1-0/+22
2015-08-04Fix compilation with newer Xorg versionsChristophe Fergeau2-1/+4
Xorg 1.18 stopped exporting some xfont related symbols in its headers/shared libraries, which causes QXL to fail to build: uxa-damage.c:947:5: error: implicit declaration of function 'QueryGlyphExtents' [-Werror=implicit-function-declaration] QueryGlyphExtents(font, charinfo, n, &extents); The missing definition can be found in xfont, so this commit addes the needed configure.ac checks and includes. Note that dixfontstr.h must be included before the xfont headers or this will cause compile-time warnings on older Xorg versions (eg 1.17)
2015-08-04Use <> for system-includesChristophe Fergeau1-5/+6
These headers come from /usr/include/xorg/ so it's clearer if they are included using <>. While at it, I've reordered them alphabetically.
2015-06-22Fix drawable mm_time with KMSJavier Celaya1-0/+2
When KMS is enabled, the mm_time value of a QXLDrawable is undefined. This results in severe synchronization problems. This patch sets it to zero to force the spice-server to use the local clock.
2015-06-01Do not process watches on select() error.Jeremy White1-1/+1
This enables a kill of an Xorg process to propagate further. Without this, the read masks would be set, and we could end up blocking in an accept() call and not exiting from the signal.
2015-05-22kms: do not overwrite screen virtualX/YMarc-André Lureau1-2/+0
The pScrn->currentMode is the resolution of the first monitor, not the resolution of the whole virtual screen. This fixes restarting X when several monitors are enabled.
2015-05-22kms: initialize primary surface to screen virtual sizeMarc-André Lureau1-2/+2
The pScrn->virtualX/Y are set after drmmode_pre_init(), use that resolution instead of hard-coded 1024x768. This fixes rendering glitches when restarting X server with different primary size than actual monitor modes.
2015-04-30Use pci_io_write8 instead of outbAdam Jackson2-1/+7
This ensures better portability as some arches (eg aarch64) don't have outb. On linux pci_io_* try to open the sysfs map file corresponding to the I/O port range, which the kernel translates arch-appropriately. If there is no such file then it'll try to use port instructions if that's a thing the architecture has. So you only need one path, pciaccess exists to get the portability right for you. https://bugzilla.redhat.com/show_bug.cgi?id=1201877
2015-04-07Remove stray blank comment lineChristophe Fergeau1-1/+0
2015-04-07Remove unused variablesChristophe Fergeau2-8/+0
2015-04-02Prepare for 0.1.4 releasexf86-video-qxl-0.1.4Christophe Fergeau2-1/+8
2015-04-01build-sys: use regular variables for LIBUDEV_CFLAGSMarc-André Lureau1-1/+1
No need for hardcoded variant here.
2015-04-01build-sys: misc aligning and trailing wsMarc-André Lureau1-3/+9
2015-03-30Remove image cacheMarc-André Lureau3-108/+3
While looking for leaks, I realized that the image cache looks quite suspicious. Not only it leaks when qxl_drop_image_cache() is called, since all the allocated image_info_t references are lost. But it is also useless: "The name implies it's a cache of some sort, but data is only added to it. The only time data is looked up in that cache is when it needs to be destroyed, and this is not done correctly and causes leaks. Since the cached data is never used and since it's leaky, it's better to remove it altogether"
2015-03-30Don't leak ARGB cursor data boChristophe Fergeau1-0/+1
qxl_load_cursor_argb() owns 2 references on the cursor_bo it creates: - one from the call to bo_alloc() - the second from a call to bo_output_bo_reloc() qxl_garbage_collect() release one of these refs, but the other one is never released, so ARGB cursor bos are leaked. This can cause out of memory issues, for example when running EL6 anaconda installer on a 2TB disk image (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1199355 ). This commit release the extra ref right after calling push_cursor(). This is similar to what is done in qxl_surface_put_image().
2015-03-20build-sys: Fix indentation of trailing \ in Makefile.amChristophe Fergeau1-58/+58
Make sure they are indented with tabs and aligned.
2015-03-20build-sys: Add spiceqxl_smartcard.h to _SOURCESChristophe Fergeau1-0/+1
This file needs to be listed in Makefile.am otherwise it will not be added to the tarballs make dist generates.
2015-03-13Spice CCID: Handle server termination.Jeremy White1-0/+8
2015-03-13Support IFD_RESET, print a diagnostic for unknown power sequences.Jeremy White1-2/+5
Also add a message for apdus that come in while a reader is inactive. Remove an obviously unnecessary if stanza.
2015-03-08README.xspice: clone and install xkeyboard-configUri Lublin1-5/+2
Instead of copying /usr/share/X11/xkb
2015-03-08README.xspice: clone more repos, add some script lines and moreUri Lublin1-20/+72
This helps build on a RHEL-6 machine
2015-01-25vmc_read: rename variable "read" to "nbytes"Uri Lublin1-4/+4
This fixes the following compiler warning. spiceqxl_vdagent.c:49: warning: declaration of ‘read’ shadows a global declaration /usr/include/unistd.h:357: warning: shadowed declaration is here
2015-01-25playback_dir_changed: rename variable "index" to "offset"Uri Lublin1-8/+8
This fixes the following compiler warning. spiceqxl_audio.c: In function ‘playback_dir_changed’: spiceqxl_audio.c:386: warning: declaration of ‘index’ shadows a global declaration
2015-01-25scripts/Xspice: run vdagentd with -f command line option (fake uinput)Uri Lublin1-1/+1
From: "Charles Ricketts <githlar@gmail.com>"
2015-01-25scripts/Xspice: add default spice-vdagent executable namesUri Lublin1-0/+5
2015-01-25scripts/Xspice: better error messages for missing vdagent binariesUri Lublin1-2/+8
Also added a check for the case variables are uninitialized (or when the executables are not found and which returns None)
2015-01-25scripts/Xspice: which: warn if executable is not foundUri Lublin1-0/+3
Also handle None parameter case.
2015-01-08Enable smartcard support for XSpice.Jeremy White10-2/+782
This is done by creating a Unix domain socket to which smartcard messages are transferred, using the vscard protocol. A further system library, spiceccid, is used to provide an interface into pcsc-lite, specifically the pcsc-lite daemon, so that regular Unix applications can access the passed through smartcard information. Signed-off-by: Jeremy White <jwhite@codeweavers.com>