From 0e066b2cc50de4b4d5ef3c9b5a39eddc3f98d060 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 11 Mar 2016 08:38:20 +0100 Subject: 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 Signed-off-by: Gerd Hoffmann Reviewed-by: Paolo Bonzini Message-id: 1457681901-30916-1-git-send-email-kraxel@redhat.com --- vl.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 40ed4d0cb9..ca49e750be 100644 --- a/vl.c +++ b/vl.c @@ -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); -- cgit 1.4.1