ui: input-linux + spice fixes
Hi,
Here comes the ui patch queue, with input-linux and spice fixes. Most notably this changes the input-linux command line as it is switched over to -object instead of adding a new switch.
Dropped cocoa patches in v2 as Peter has picked them up.
please pull,
Gerd
The following changes since commit 2538039f2c26d66053426fb547e4f25e669baf62:
Merge remote-tracking branch 'remotes/armbru/tags/pull-ivshmem-2016-03-18' into staging (2016-03-23 12:57:44 +0000)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-ui-20160324-1
for you to fetch changes up to 569a93cbbe428bb5c583ae4bf31447eb3acc30fe:
spice: Disallow use of gl + TCP port (2016-03-24 08:04:01 +0100)
----------------------------------------------------------------
input-linux + spice fixes
----------------------------------------------------------------
Christophe Fergeau (1):
spice: Disallow use of gl + TCP port
Gerd Hoffmann (2):
input-linux: switch over to -object
input-linux: fix Coverity warning
qemu-options.hx | 9 --- ui/input-linux.c | 165 +++++++++++++++++++++++++++++++++++++++++++------------ ui/spice-core.c | 5 ++ vl.c | 10 ---- 4 files changed, 135 insertions(+), 54 deletions(-)
[Qemu-devel] [PULL 2/3] input-linux: fix Coverity warning
Message-id: [email protected]
--- ui/input-linux.c | 7 +++++++ 1 file changed, 7 insertions(+)
ui/input-linux.c +7 -0
@@ -213,6 +213,13 @@ static void input_linux_event_keyboard(void *opaque)*/ continue ; } +if (event.code >=KEY_CNT ) { +/* +* Should not happen. But better safe than sorry, +* and we make Coverity happy too. +*/ +continue ; + }/* keep track of key state */ if (!il->keydown[event.code] && event.value) { il->keydown[event.code] = true;
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 1/3] input-linux: switch over to -object
In reply to Gerd HoffmannThis patches makes input-linux use -object instead of a new command line switch. So, instead of the switch ...
-input-linux /dev/input/event$nr
... you must create an object this way:
-object input-linux,id=$name,evdev=/dev/input/event$nr
Bonus is that you can hot-add and hot-remove them via monitor now.
Message-id: [email protected]
--- qemu-options.hx | 9 ---- ui/input-linux.c | 158 +++++++++++++++++++++++++++++++++++++++++++------------ vl.c | 10 ---- 3 files changed, 123 insertions(+), 54 deletions(-)
qemu-options.hx +0 -9
@@ -1226,15 +1226,6 @@ STEXI Set the initial graphical resolution and depth (PPC, SPARC only). ETEXI -DEF("input-linux", 1, QEMU_OPTION_input_linux, - "-input-linux <evdev>\n" - " Use input device.\n", QEMU_ARCH_ALL) -STEXI -@item -input-linux @var{dev} -@findex -input-linux -Use input device. -ETEXI - DEF("vnc", HAS_ARG, QEMU_OPTION_vnc , "-vnc display start a VNC server on display\n", QEMU_ARCH_ALL) STEXI
ui/input-linux.c +123 -35
209 lines not on this page · raw message
vl.c +0 -10
@@ -3729,12 +3729,6 @@ int main(int argc, char **argv, char **envp)#endif break ; } -case QEMU_OPTION_input_linux: -if (!qemu_opts_parse_noisily (qemu_find_opts ("input-linux" ), - optarg, true)) { -exit (1 ); - } -break ;case QEMU_OPTION_no_acpi: acpi_enabled =0 ;break ;
@@ -4598,10 +4592,6 @@ int main(int argc, char **argv, char **envp) qemu_spice_display_init(); }#endif -#ifdef CONFIG_LINUX -qemu_opts_foreach (qemu_find_opts ("input-linux" ), - input_linux_init,NULL , &error_fatal); -#endif if (foreach_device_config (DEV_GDB , gdbserver_start) <0 ) {exit (1 );
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 3/3] spice: Disallow use of gl + TCP port
In reply to Gerd HoffmannFrom: Christophe Fergeau <[email protected]>
Currently, virgl support has to go through a local unix socket, trying to connect to a VM using -spice gl through spice://localhost:5900 will only result in a black screen.
This commit errors out when the user tries to start a VM with both GL support and a port/tls-port set.
This would fit better in spice-server, but currently QEMU does not call into spice-server when parsing 'gl' on its command line, so we have to do this check in QEMU instead.
Message-id: [email protected]
[ applied codestyle fix: break long line ]
--- ui/spice-core.c | 5 +++++ 1 file changed, 5 insertions(+)
ui/spice-core.c +5 -0
@@ -828,6 +828,11 @@ void qemu_spice_init(void)#ifdef HAVE_SPICE_GL if (qemu_opt_get_bool (opts,"gl" ,0 )) { +if ((port !=0 ) || (tls_port !=0 )) { +error_report ("SPICE GL support is local-only for now and " +"incompatible with -spice port/tls-port" ); +exit (1 ); + }if (egl_rendernode_init () ==0 ) { display_opengl =1 ; }
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 18 lines · Gerd Hoffmann
Hi,
Here comes the ui patch queue, with input-linux and spice fixes. Most notably this changes the input-linux command line as it is switched over to -object instead of adding a new switch.
Dropped cocoa patches in v2 as Peter has picked them up.
please pull,
GerdThe following changes since commit
2538039f2c26d66053426fb547e4f25e669baf62:Merge remote-tracking branch 'remotes/armbru/tags/pull-ivshmem-2016-03-18' into staging (2016-03-23 12:57:44 +0000)
are available in the git repository at:
Quoted 8 lines
git://git.kraxel.org/qemutags/pull-ui-20160324-1for you to fetch changes up to
569a93cbbe428bb5c583ae4bf31447eb3acc30fe:spice: Disallow use of gl + TCP port (2016-03-24 08:04:01 +0100)
----------------------------------------------------------------
input-linux + spice fixes
Applied, thanks.
-- PMM