Re: [PATCH] vl: Add opts to device opts list when using JSON syntax for -device

2021-12-21 Thread MkfsSion
Sorry, the patch is not well tested and it causes duplicate devices creation. I have send another patch to the mailing list to fix the issue. On 2021/12/21 16:25, Philippe Mathieu-Daudé wrote: > Cc'ing Markus. > > On 12/20/21 09:45, MkfsSion wrote: >> When using JSON syntax for -device, -set

Re: [PATCH] vl: Add opts to device opts list when using JSON syntax for -device

2021-12-21 Thread Philippe Mathieu-Daudé
Cc'ing Markus. On 12/20/21 09:45, MkfsSion wrote: > When using JSON syntax for -device, -set option can not find device > specified in JSON by id field. The following commandline is an example: > > $ qemu-system-x86_64 -device '{"id":"foo"}' -set device.foo.bar=1 > qemu-system-x86_64: -set