[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/10] qemu-options: update to show preferred boolean syntax
From: |
Peter Maydell |
Subject: |
Re: [PATCH 02/10] qemu-options: update to show preferred boolean syntax for -chardev |
Date: |
Tue, 16 Feb 2021 21:08:39 +0000 |
On Tue, 16 Feb 2021 at 19:10, Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> The preferred syntax is to use "foo=on|off", rather than a bare
> "foo" or "nofoo".
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> - "-chardev
> socket,id=id[,host=host],port=port[,to=to][,ipv4][,ipv6][,nodelay][,reconnect=seconds]\n"
> - "
> [,server][,nowait][,telnet][,websocket][,reconnect=seconds][,mux=on|off]\n"
> + "-chardev
> socket,id=id[,host=host],port=port[,to=to][,ipv4=on|off][,ipv6=on|off][,delay=on|off][,reconnect=seconds]\n"
Watch out, 'nodelay' is a special case, where the option name itself
starts with 'no':
{ 'struct': 'ChardevSocket',
'data': { 'addr': 'SocketAddressLegacy',
'*tls-creds': 'str',
'*tls-authz' : 'str',
'*server': 'bool',
'*wait': 'bool',
'*nodelay': 'bool',
'*telnet': 'bool',
'*tn3270': 'bool',
'*websocket': 'bool',
'*reconnect': 'int' },
'base': 'ChardevCommon' }
(because it's setting the TCP_NODELAY option).
This probably applies elsewhere, eg I suspect the 'nodelay' in
patch 1 also should remain.
-- PMM
- [PATCH 00/10] qemu-options: always use key=on|off syntax for bool option docs, Daniel P . Berrangé, 2021/02/16
- [PATCH 01/10] gdbstub: use preferred boolean option syntax, Daniel P . Berrangé, 2021/02/16
- [PATCH 02/10] qemu-options: update to show preferred boolean syntax for -chardev, Daniel P . Berrangé, 2021/02/16
- Re: [PATCH 02/10] qemu-options: update to show preferred boolean syntax for -chardev,
Peter Maydell <=
- [PATCH 03/10] qemu-options: update to show preferred boolean syntax for -spice, Daniel P . Berrangé, 2021/02/16
- [PATCH 05/10] qemu-options: update to show preferred boolean syntax for -incoming, Daniel P . Berrangé, 2021/02/16
- [PATCH 04/10] qemu-options: update to show preferred boolean syntax for -netdev, Daniel P . Berrangé, 2021/02/16
- [PATCH 08/10] docs: update to show preferred boolean syntax for -vnc, Daniel P . Berrangé, 2021/02/16
- [PATCH 06/10] qemu-options: update to show preferred boolean syntax for -vnc, Daniel P . Berrangé, 2021/02/16
- [PATCH 07/10] docs: update to show preferred boolean syntax for -chardev, Daniel P . Berrangé, 2021/02/16
- [PATCH 09/10] docs: update to show preferred boolean syntax for -cpu, Daniel P . Berrangé, 2021/02/16
- [PATCH 10/10] target/i386: update to show preferred boolean syntax for -cpu, Daniel P . Berrangé, 2021/02/16