Re: [PATCH] net: validate that ids are well formed

2021-03-01 Thread Jason Wang
On 2021/3/1 11:07 下午, Eric Blake wrote: On 3/1/21 8:56 AM, Paolo Bonzini wrote: When a network or network device is created from the command line or HMP, QemuOpts ensures that the id passes the id_wellformed check. However, QMP skips this: $ qemu-system-x86_64 -qmp stdio -S -nic user,id=

Re: [PATCH] net: validate that ids are well formed

2021-03-01 Thread Eric Blake
On 3/1/21 8:56 AM, Paolo Bonzini wrote: > When a network or network device is created from the command line or HMP, > QemuOpts ensures that the id passes the id_wellformed check. However, > QMP skips this: > >$ qemu-system-x86_64 -qmp stdio -S -nic user,id=123/456 >qemu-system-x86_64: -ni

[PATCH] net: validate that ids are well formed

2021-03-01 Thread Paolo Bonzini
When a network or network device is created from the command line or HMP, QemuOpts ensures that the id passes the id_wellformed check. However, QMP skips this: $ qemu-system-x86_64 -qmp stdio -S -nic user,id=123/456 qemu-system-x86_64: -nic user,id=123/456: Parameter id expects an identifie