[PATCH 090/103] qemuBuildControllersByTypeCommandLine: Generate via JSON

Ján Tomko jtomko at redhat.com
Mon Oct 11 16:08:58 UTC 2021


On a Thursday in 2021, Peter Krempa wrote:
>The handlers for PCI, SCSI and USB controllers already use JSON
>internally. This patch converts 'virtio-serial', 'ccid' and 'sata' to do
>the same and passes out the JSON directly so that it can be used in
>monitor code to avoid conversion.
>
>>From the controllers converted in this patch only 'virtio-serial' has
>special properties. QEMU thinks they have the following types:
>
>  max_ports=<uint32>     -  (default: 31)
>  vectors=<uint32>       -  (default: 2)
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_command.c | 122 +++++++++++++++-------------------------
> src/qemu/qemu_command.h |   9 +--
> src/qemu/qemu_hotplug.c |   8 +--
> 3 files changed, 54 insertions(+), 85 deletions(-)
>

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/20211011/85b6c6b5/attachment-0001.sig>


More information about the libvir-list mailing list