summary refs log tree commit diff stats
path: root/vl.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-05-19 08:35:16 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-05-29 14:03:35 +0200
commita358a3af4558a24398a541951cad7a6c458df72b (patch)
tree97a642c37916b7dad0859ddffb438f244b65b468 /vl.c
parent3ae7eb88c472799f17beb653f4bc3fb8b124c72e (diff)
downloadfocaccia-qemu-a358a3af4558a24398a541951cad7a6c458df72b.tar.gz
focaccia-qemu-a358a3af4558a24398a541951cad7a6c458df72b.zip
usb: Deprecate the legacy -usbdevice option
The '-usbdevice' option is considered as deprecated nowadays and
we might want to remove these options in a future version of QEMU.
So mark this options as deprecated in the documenation and print out
a warning if it is used to tell the user what to use instead.
While we're at it, improve also some other minor USB-related spots
in qemu-options.hx that were not up to date anymore.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1495175716-12735-1-git-send-email-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 3465121217..88d24d6b12 100644
--- a/vl.c
+++ b/vl.c
@@ -3759,6 +3759,8 @@ int main(int argc, char **argv, char **envp)
                 qemu_opts_parse_noisily(olist, "usb=on", false);
                 break;
             case QEMU_OPTION_usbdevice:
+                error_report("'-usbdevice' is deprecated, please use "
+                             "'-device usb-...' instead");
                 olist = qemu_find_opts("machine");
                 qemu_opts_parse_noisily(olist, "usb=on", false);
                 add_device_config(DEV_USB, optarg);