6e1db57b | 01-Jun-2011 |
Kevin Wolf <kwolf@redhat.com> |
qemu-char: Print strerror message on failure
The only way for chardev drivers to communicate an error was to return a NULL pointer, which resulted in an error message that said _that_ something went
qemu-char: Print strerror message on failure
The only way for chardev drivers to communicate an error was to return a NULL pointer, which resulted in an error message that said _that_ something went wrong, but not _why_.
This patch changes the interface to return 0/-errno and updates qemu_chr_open_opts to use strerror to display a more helpful error message.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
df9cb669 | 07-Jul-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
spice: add sanity check for spice ports
Make sure at least one port (port=.. or tls-port=...) is specified. Also apply range checks to the port numbers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat
spice: add sanity check for spice ports
Make sure at least one port (port=.. or tls-port=...) is specified. Also apply range checks to the port numbers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
22795174 | 15-Jun-2011 |
Alon Levy <alevy@redhat.com> |
qxl: set mm_time in vga update
This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but th
qxl: set mm_time in vga update
This fixes a problem where on windows 7 startup phase, before the qxl driver is loaded, the drawables are sufficiently large and video like to trigger a stream, but the lack of a filled mm time field triggers a warning in spice-gtk.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
fba810f1 | 15-Jun-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
spice: catch spice server initialization failures.
When the spice server initialization fails report this and exit instead of ignoring the error.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> |
2fb0c09f | 26-Jun-2011 |
Stefan Weil <weil@mail.berlios.de> |
vnc: Fix compilation with --enable-vnc-png
Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.
The breakage is caused by png
vnc: Fix compilation with --enable-vnc-png
Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.
The breakage is caused by pngconfig.h which checks whether setjmp.h was already included and fails because qemu-common.h includes setjmp.h.
The check is disabled by defining PNG_SKIP_SETJMP_CHECK.
Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
f26e428d | 18-Jun-2011 |
Roy Tam <roytam@gmail.com> |
Fix MinGW compilation when --enable-vnc-jpeg is specified
Fix conflicting types for 'INT32' in basetsd.h and jmorecfg.h by including qemu-common.h first.
Signed-off-by: Roy Tam <roytam@gmail.com> A
Fix MinGW compilation when --enable-vnc-jpeg is specified
Fix conflicting types for 'INT32' in basetsd.h and jmorecfg.h by including qemu-common.h first.
Signed-off-by: Roy Tam <roytam@gmail.com> Acked-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
show more ...
|
7fee199c | 09-Jun-2011 |
Andreas Färber <andreas.faerber@web.de> |
cocoa: Avoid warning related to multiple handleEvent: definitions
Avoid compiler confusion as to which method signature to use for the handleEvent: selector on OSX >= 10.6 by making the variable typ
cocoa: Avoid warning related to multiple handleEvent: definitions
Avoid compiler confusion as to which method signature to use for the handleEvent: selector on OSX >= 10.6 by making the variable type-safe as opposed to generic 'id' type. Requires moving the variable definition to after the class definition.
----8<---- ui/cocoa.m: In function ‘cocoa_refresh’: ui/cocoa.m:997: warning: multiple methods named ‘-handleEvent:’ found /System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h:84: warning: using ‘-(BOOL)handleEvent:(NSEvent *)theEvent’ ui/cocoa.m:272: warning: also found ‘-(void)handleEvent:(NSEvent *)event’ ----8<---
Reported-by: Alexandre Raymond <cerbere@gmail.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Tested-by: Alexandre Raymond <cerbere@gmail.com>
show more ...
|
3bbbee18 | 29-May-2011 |
Andreas Färber <andreas.faerber@web.de> |
cocoa: Provide central qemu_main() prototype
This fixes a missing prototype warning in vl.c and obsoletes the prototype in cocoa.m. Adjust callers in cocoa.m to supply third argument, which is curre
cocoa: Provide central qemu_main() prototype
This fixes a missing prototype warning in vl.c and obsoletes the prototype in cocoa.m. Adjust callers in cocoa.m to supply third argument, which is currently only used on Linux/ppc.
The prototype is designed so that it could be shared with SDL and other frontends, if desired.
Cc: Alexandre Raymond <cerbere@gmail.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
show more ...
|
9851484f | 29-May-2011 |
Alexandre Raymond <cerbere@gmail.com> |
Cocoa: avoid displaying window when command-line contains '-h' or '-help'
There was already a check in place to avoid displaying a window in certain modes such as vnc, nographic or curses.
Add a ch
Cocoa: avoid displaying window when command-line contains '-h' or '-help'
There was already a check in place to avoid displaying a window in certain modes such as vnc, nographic or curses.
Add a check for '-h' and '-help' to avoid displaying a window for a split- second before showing the usage information.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
show more ...
|
e4ebcc1a | 15-Mar-2011 |
Tristan Gingold <gingold@adacore.com> |
cocoa: do not create a spurious window for -version
When invoked with -version, qemu will exit just after displaying the version, so there is no need to create a window. Also handles --XXX options.
cocoa: do not create a spurious window for -version
When invoked with -version, qemu will exit just after displaying the version, so there is no need to create a window. Also handles --XXX options.
Signed-off-by: Tristan Gingold <gingold@adacore.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
show more ...
|
ac779fe2 | 08-Jun-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote-tracking branch 'spice/spice.v37' into staging
Conflicts: vl.c |
9bf0960a | 02-Jun-2011 |
Alexandre Raymond <cerbere@gmail.com> |
Fix compilation warning due to missing header for sigaction (followup)
This patch removes all references to signal.h when qemu-common.h is included as they become redundant.
Signed-off-by: Alexandr
Fix compilation warning due to missing header for sigaction (followup)
This patch removes all references to signal.h when qemu-common.h is included as they become redundant.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
show more ...
|
012b80d3 | 17-May-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
spice: require spice 0.6.0 or newer.
This patch raises the minimum required spice version to 0.6.0 and drops a few ifdefs.
0.6.0 is the first stable release with the current libspice-server API, th
spice: require spice 0.6.0 or newer.
This patch raises the minimum required spice version to 0.6.0 and drops a few ifdefs.
0.6.0 is the first stable release with the current libspice-server API, there shouldn't be any 0.5.x development versions deployed any more.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
48b3ed0a | 17-May-2011 |
Marc-André Lureau <marcandre.lureau@gmail.com> |
spice: add SASL support
Turn on SASL support by appending "sasl" to the spice arguments, which requires that the client use SASL to authenticate with the spice. The exact choice of authentication m
spice: add SASL support
Turn on SASL support by appending "sasl" to the spice arguments, which requires that the client use SASL to authenticate with the spice. The exact choice of authentication method used is controlled from the system / user's SASL configuration file for the 'qemu' service. This is typically found in /etc/sasl2/qemu.conf. If running QEMU as an unprivileged user, an environment variable SASL_CONF_PATH can be used to make it search alternate locations for the service config. While some SASL auth methods can also provide data encryption (eg GSSAPI), it is recommended that SASL always be combined with the 'tls' and 'x509' settings to enable use of SSL and server certificates. This ensures a data encryption preventing compromise of authentication credentials.
It requires support from spice 0.8.1.
[ kraxel: moved spell fix to separate commit ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
d4970b07 | 27-Mar-2011 |
Hans de Goede <hdegoede@redhat.com> |
spice: add option for disabling copy paste support
Some people want to be able disable spice's guest <-> client copy paste support because of security considerations.
[ kraxel: drop old-version err
spice: add option for disabling copy paste support
Some people want to be able disable spice's guest <-> client copy paste support because of security considerations.
[ kraxel: drop old-version error message ]
show more ...
|
1de9756b | 07-May-2011 |
Michael Tokarev <mjt@tls.msk.ru> |
set $SDL_VIDEODRIVER=x11 on Linux to prevent sudo kvm from fighting for video card
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Ja
set $SDL_VIDEODRIVER=x11 on Linux to prevent sudo kvm from fighting for video card
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
196a7784 | 27-Apr-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
spice: drop obsolete iothread locking
We don't use qemu internals from spice server context any more. Thus we don't also need to grab the iothread mutex from spice server context. And we don't have
spice: drop obsolete iothread locking
We don't use qemu internals from spice server context any more. Thus we don't also need to grab the iothread mutex from spice server context. And we don't have to temporarely release the lock to avoid deadlocks. Drop all the calls.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
07536094 | 27-Apr-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
spice: don't call displaystate callbacks from spice server context.
This patch moves the displaystate callback calls for setting the cursor and the mouse pointer from spice server to qemu (iothread)
spice: don't call displaystate callbacks from spice server context.
This patch moves the displaystate callback calls for setting the cursor and the mouse pointer from spice server to qemu (iothread) context. This allows us to simplify locking.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
e0c64d08 | 27-Apr-2011 |
Gerd Hoffmann <kraxel@redhat.com> |
spice: don't create updates in spice server context.
This patch moves the creation of spice screen updates from the spice server context to qemu iothread context (display refresh timer to be exact).
spice: don't create updates in spice server context.
This patch moves the creation of spice screen updates from the spice server context to qemu iothread context (display refresh timer to be exact). This way we avoid accessing qemu internals (display surface) from spice thread context which in turn allows us to simplify locking.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
14da8345 | 01-Feb-2011 |
Jes Sorensen <Jes.Sorensen@redhat.com> |
Make spice dummy functions inline to fix calls not checking return values
qemu_spice_set_passwd() and qemu_spice_set_pw_expire() dummy functions needs to be inline, in order to handle the case where
Make spice dummy functions inline to fix calls not checking return values
qemu_spice_set_passwd() and qemu_spice_set_pw_expire() dummy functions needs to be inline, in order to handle the case where they are called without checking the return value.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
2caa9e9d | 21-Mar-2011 |
Michael Tokarev <mjt@tls.msk.ru> |
vnc: tight: Fix crash after 2GB of output
fix 2Gb integer overflow in in VNC tight and zlib encodings
As found by Roland Dreier <roland@purestorage.com> (excellent catch!), when amount of VNC compr
vnc: tight: Fix crash after 2GB of output
fix 2Gb integer overflow in in VNC tight and zlib encodings
As found by Roland Dreier <roland@purestorage.com> (excellent catch!), when amount of VNC compressed data produced by zlib and sent to client exceeds 2Gb, integer overflow occurs because currently, we calculate amount of data produced at each step by comparing saved total_out with new total_out, and total_out is something which grows without bounds. Compare it with previous avail_out instead of total_out, and leave total_out alone.
The same code is used in vnc-enc-tight.c and vnc-enc-zlib.c, so fix both cases.
There, there's no actual need to save previous_out value, since capacity-offset (which is how that value is calculated) stays the same so it can be recalculated again after call to deflate(), but whole thing becomes less readable this way.
Reported-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
ee7495d3 | 14-Mar-2011 |
Leszek Grzegorek <leszek.grzegorek@gmail.com> |
vnc: added missing name->keysym pairs for Polish national characters
There are no { name, keysym } values in name2keysym[] array for Polish national characters so "-k pl" option has no effect.
Sign
vnc: added missing name->keysym pairs for Polish national characters
There are no { name, keysym } values in name2keysym[] array for Polish national characters so "-k pl" option has no effect.
Signed-off-by: Leszek Grzegorek <leszek.grzegorek@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
09cec717 | 16-Feb-2011 |
Stefan Weil <weil@mail.berlios.de> |
ui/sdl: Load optional QEMU icon
Load an optional QEMU icon file. If there is no icon file named qemu.bmp in QEMU's default search path, QEMU will run with the usual system default icon.
A matching
ui/sdl: Load optional QEMU icon
Load an optional QEMU icon file. If there is no icon file named qemu.bmp in QEMU's default search path, QEMU will run with the usual system default icon.
A matching icon file will be loaded and used by X Windows managers or MS Windows while a QEMU instance is running.
SDL requires icon files in 32x32x4 bmp format.
Cc: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
d6e58090 | 25-Mar-2011 |
Ulrich Obergfell <uobergfe@redhat.com> |
severe memory leak caused by broken palette_destroy() function
The following commit breaks the code of the function palette_destroy().
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=e31e
severe memory leak caused by broken palette_destroy() function
The following commit breaks the code of the function palette_destroy().
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=e31e3694afef58ba191cbcc6875ec243e5971268
The broken code causes a severe memory leak of 'VncPalette' structures because it never frees anything:
70 void palette_destroy(VncPalette *palette) 71 { 72 if (palette == NULL) { 73 qemu_free(palette); 74 } 75 }
Version 2 of the patch calls qemu_free() unconditionally.
Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
a0843a68 | 22-Mar-2011 |
Anthony Liguori <aliguori@us.ibm.com> |
vnc: fix build error from VNC_DIRTY_WORDS
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> |