diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-11 08:38:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-24 07:58:20 +0100 |
commit | 0e066b2cc50de4b4d5ef3c9b5a39eddc3f98d060 (patch) | |
tree | 66939d1c82eb1da004f8e8daf646e407dca1464e /vl.c | |
parent | 2538039f2c26d66053426fb547e4f25e669baf62 (diff) | |
download | qemu-0e066b2cc50de4b4d5ef3c9b5a39eddc3f98d060.tar.gz qemu-0e066b2cc50de4b4d5ef3c9b5a39eddc3f98d060.tar.bz2 qemu-0e066b2cc50de4b4d5ef3c9b5a39eddc3f98d060.zip |
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
@@ -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); |