qemu-option: warn for short-form boolean options
commitccd3b3b8112b670fdccf8a392b8419b173ffccb4
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 9 Nov 2020 09:13:39 +0000 (9 04:13 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 23 Jan 2021 20:55:08 +0000 (23 15:55 -0500)
tree71b7cbf1741f102e3db7532de3de7156dad4efad
parentafd736252f106ec54734d4e412220a978f668430
qemu-option: warn for short-form boolean options

Options such as "server" or "nowait", that are commonly found in -chardev,
are sugar for "server=on" and "wait=off".  This is quite surprising and
also does not have any notion of typing attached.  It is even possible to
do "-device e1000,noid" and get a device with "id=off".

Deprecate it and print a warning when it is encountered.  In general,
this short form for boolean options only seems to be in wide use for
-chardev and -spice.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/system/deprecated.rst
tests/test-qemu-opts.c
util/qemu-option.c