qemu: command: Introduce JSON variant of qemuBuildVirtioDevStr
qemu: command: Introduce JSON variant of qemuBuildVirtioDevStr

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 <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>

olafhering/libvirt,olafhering/libvirt,jfehlig/libvirt,crobinso/libvirt,libvirt/libvirt,nertpinx/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,jfehlig/libvirt,jfehlig/libvirt,crobinso/libvirt,libvirt/libvirt,crobinso/libvirt,nertpinx/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,nertpinx/libvirt,zippy2/libvirt,olafhering/libvirt,crobinso/libvirt,zippy2/libvirt