vl: allow passing JSON to -object
commit009ff89328b1da3ea8ba316bf2be2125bc9937c5
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Mar 2021 17:35:47 +0000 (12 12:35 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 Mar 2021 09:18:17 +0000 (19 10:18 +0100)
tree3bd417d7482bd71e16dbdcf8a27a79b3f2b23106
parentbc2f4fcb1dd1a66ede126593fa091c23a94e3ab8
vl: allow passing JSON to -object

Extend the ObjectOption code that was added in the previous patch to
enable passing JSON to -object.  Even though we cannot yet add
non-scalar properties with the human-friendly comma-separated syntax,
they can now be added as JSON.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210312173547.1283477-4-pbonzini@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
softmmu/vl.c