diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-11 08:38:20 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 20:00:37 -0600 |
commit | 323ce4fc9e1a58b3f3a8ecaa86bdc28273c60efa (patch) | |
tree | 58b0d568bb0e1eaba74f407b657ae212751cbd98 /vl.c | |
parent | d3616970b78ae73e7221937433c32a998a2b6acd (diff) | |
download | hqemu-323ce4fc9e1a58b3f3a8ecaa86bdc28273c60efa.zip hqemu-323ce4fc9e1a58b3f3a8ecaa86bdc28273c60efa.tar.gz |
input-linux: switch over to -object
This 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.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1457681901-30916-1-git-send-email-kraxel@redhat.com
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -3733,12 +3733,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; @@ -4602,10 +4596,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); |