summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-11 08:38:20 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 20:00:37 -0600
commit323ce4fc9e1a58b3f3a8ecaa86bdc28273c60efa (patch)
tree58b0d568bb0e1eaba74f407b657ae212751cbd98 /vl.c
parentd3616970b78ae73e7221937433c32a998a2b6acd (diff)
downloadhqemu-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.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/vl.c b/vl.c
index ee2e826..3c9630c 100644
--- a/vl.c
+++ b/vl.c
@@ -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);
OpenPOWER on IntegriCloud