]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildUSBControllerDevStr: Format via JSON properties.
authorPeter Krempa <pkrempa@redhat.com>
Tue, 5 Oct 2021 11:46:03 +0000 (13:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 09:10:44 +0000 (11:10 +0200)
commit4a8319225ce17cb8a34422f3d5103e905b672dbd
tree6e5f24fce6d276d67eca6f6fddd60a97c0a8b3e4
parent3e8d38237d774a6354814a47b3401cbacee4e72b
qemuBuildUSBControllerDevStr: Format via JSON properties.

Internally format the PCI controller properties into JSON, but convert
it back to a string as preparation for upcoming refactors.

The following types are declared for the properties we use by QEMU:

'nec-usb-xhci'
  p2=<uint32>            -  (default: 4)
  p3=<uint32>            -  (default: 4)

'ich9-usb-uhci6'
  masterbus=<str>
  firstport=<uint32>     -  (default: 0)

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c