[PATCH 053/103] qemu: command: Introduce JSON variant of qemuBuildVirtioDevStr

Ján Tomko jtomko at redhat.com
Fri Oct 8 12:25:42 UTC 2021


On a Thursday in 2021, Peter Krempa wrote:
>Add a JSON variant of the generator of properties for virtio devices.
>For convenience both the old and new are for now marked as unused, which
>will be removed once the conversion is complete.
>
>The formatted properties have following types according to QEMU.
>'virtio-blk-pci' was used as an example:
>
>  disable-legacy=<OnOffAuto> - on/off/auto (default: "auto")
>  disable-modern=<bool>  -  (default: false)
>  iommu_platform=<bool>  - on/off (default: false)
>  ats=<bool>             - on/off (default: false)
>  packed=<bool>          - on/off (default: false)
>
>Note that <OnOffAuto> is an enum type without alternates in QMP so it
>must be represented as a string in JSON.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_command.c | 58 ++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 57 insertions(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211008/b2eabda1/attachment-0001.sig>


More information about the libvir-list mailing list