[PATCH 00/18] qemu: command: Convert '-compat' and '-audiodev' to use JSON

Peter Krempa posted 18 patches 2 years, 5 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1636986086.git.pkrempa@redhat.com
src/libvirt_private.syms                      |   2 -
src/qemu/qemu_agent.c                         |  10 +-
src/qemu/qemu_block.c                         | 378 ++++----
src/qemu/qemu_command.c                       | 890 +++++++++---------
src/qemu/qemu_migration_cookie.c              |  25 +-
src/qemu/qemu_migration_params.c              |   8 +-
src/qemu/qemu_monitor.c                       |  20 +-
src/qemu/qemu_monitor_json.c                  |  51 +-
src/util/virjson.c                            |  50 +-
src/util/virjson.h                            |   8 +-
tests/qemublocktest.c                         |   2 +-
...fault-cpu-kvm-virt-4.2.aarch64-latest.args |   2 +-
...fault-cpu-tcg-virt-4.2.aarch64-latest.args |   2 +-
.../aarch64-features-sve.aarch64-latest.args  |   2 +-
...arch64-os-firmware-efi.aarch64-latest.args |   2 +-
.../aarch64-tpm.aarch64-latest.args           |   2 +-
.../aarch64-virt-graphics.aarch64-latest.args |   2 +-
.../aarch64-virt-headless.aarch64-latest.args |   2 +-
.../audio-alsa-best.x86_64-latest.args        |   2 +-
.../audio-alsa-full.x86_64-latest.args        |   2 +-
.../audio-alsa-minimal.x86_64-latest.args     |   2 +-
.../audio-coreaudio-best.x86_64-latest.args   |   2 +-
.../audio-coreaudio-full.x86_64-latest.args   |   2 +-
...audio-coreaudio-minimal.x86_64-latest.args |   2 +-
...udio-default-nographics.x86_64-latest.args |   2 +-
.../audio-default-sdl.x86_64-latest.args      |   2 +-
.../audio-default-spice.x86_64-latest.args    |   2 +-
.../audio-default-vnc.x86_64-latest.args      |   2 +-
.../audio-file-best.x86_64-latest.args        |   2 +-
.../audio-file-full.x86_64-latest.args        |   2 +-
.../audio-file-minimal.x86_64-latest.args     |   2 +-
.../audio-jack-full.x86_64-latest.args        |   2 +-
.../audio-jack-minimal.x86_64-latest.args     |   2 +-
.../audio-many-backends.x86_64-latest.args    |   6 +-
.../audio-none-best.x86_64-latest.args        |   2 +-
.../audio-none-full.x86_64-latest.args        |   2 +-
.../audio-none-minimal.x86_64-latest.args     |   2 +-
.../audio-oss-best.x86_64-latest.args         |   2 +-
.../audio-oss-full.x86_64-latest.args         |   2 +-
.../audio-oss-minimal.x86_64-latest.args      |   2 +-
.../audio-pulseaudio-best.x86_64-latest.args  |   2 +-
.../audio-pulseaudio-full.x86_64-latest.args  |   2 +-
...udio-pulseaudio-minimal.x86_64-latest.args |   2 +-
.../audio-sdl-best.x86_64-latest.args         |   2 +-
.../audio-sdl-full.x86_64-latest.args         |   2 +-
.../audio-sdl-minimal.x86_64-latest.args      |   2 +-
.../audio-spice-best.x86_64-latest.args       |   2 +-
.../audio-spice-full.x86_64-latest.args       |   2 +-
.../audio-spice-minimal.x86_64-latest.args    |   2 +-
.../blkdeviotune-group-num.x86_64-latest.args |   2 +-
...blkdeviotune-max-length.x86_64-latest.args |   2 +-
.../blkdeviotune-max.x86_64-latest.args       |   2 +-
.../channel-unix-guestfwd.x86_64-latest.args  |   2 +-
.../clock-timer-armvtimer.aarch64-latest.args |   2 +-
.../console-sclp.s390x-latest.args            |   2 +-
.../console-virtio-unix.x86_64-latest.args    |   2 +-
.../controller-virtio-scsi.x86_64-latest.args |   2 +-
...-Icelake-Server-pconfig.x86_64-latest.args |   2 +-
.../cpu-host-model.x86_64-4.2.0.args          |   2 +-
.../cpu-host-model.x86_64-5.0.0.args          |   2 +-
.../cpu-host-model.x86_64-5.1.0.args          |   2 +-
.../cpu-host-model.x86_64-5.2.0.args          |   2 +-
.../cpu-host-model.x86_64-6.0.0.args          |   2 +-
.../cpu-host-model.x86_64-6.1.0.args          |   2 +-
.../cpu-host-model.x86_64-latest.args         |   2 +-
.../cpu-translation.x86_64-latest.args        |   2 +-
.../cputune-cpuset-big-id.x86_64-latest.args  |   2 +-
...ult-video-type-aarch64.aarch64-latest.args |   2 +-
...default-video-type-ppc64.ppc64-latest.args |   2 +-
...ult-video-type-riscv64.riscv64-latest.args |   2 +-
...default-video-type-s390x.s390x-latest.args |   2 +-
.../devices-acpi-index.x86_64-latest.args     |   2 +-
.../disk-aio-io_uring.x86_64-latest.args      |   2 +-
.../disk-aio.x86_64-latest.args               |   2 +-
.../disk-arm-virtio-sd.aarch64-latest.args    |   2 +-
...-backing-chains-noindex.x86_64-latest.args |   2 +-
.../disk-blockio.x86_64-latest.args           |   2 +-
.../disk-boot-cdrom.x86_64-latest.args        |   2 +-
.../disk-boot-disk.x86_64-latest.args         |   2 +-
.../disk-cache.x86_64-latest.args             |   2 +-
.../disk-cdrom-bus-other.x86_64-latest.args   |   2 +-
...m-empty-network-invalid.x86_64-latest.args |   2 +-
.../disk-cdrom-network.x86_64-latest.args     |   2 +-
.../disk-cdrom-tray.x86_64-latest.args        |   2 +-
.../disk-cdrom.x86_64-latest.args             |   2 +-
.../disk-copy_on_read.x86_64-latest.args      |   2 +-
.../disk-detect-zeroes.x86_64-latest.args     |   2 +-
.../disk-discard.x86_64-latest.args           |   2 +-
.../disk-error-policy-s390x.s390x-latest.args |   2 +-
.../disk-error-policy.x86_64-latest.args      |   2 +-
.../disk-floppy-q35-2_11.x86_64-latest.args   |   2 +-
.../disk-floppy-q35-2_9.x86_64-latest.args    |   2 +-
.../disk-floppy-tray.x86_64-latest.args       |   2 +-
.../disk-floppy.x86_64-latest.args            |   2 +-
.../disk-fmt-qcow.x86_64-latest.args          |   2 +-
.../disk-geometry.x86_64-latest.args          |   2 +-
.../disk-ide-split.x86_64-latest.args         |   2 +-
.../disk-ide-wwn.x86_64-latest.args           |   2 +-
.../disk-ioeventfd.x86_64-latest.args         |   2 +-
.../disk-metadata-cache.x86_64-latest.args    |   2 +-
.../disk-network-gluster.x86_64-latest.args   |   2 +-
.../disk-network-http.x86_64-latest.args      |   2 +-
.../disk-network-iscsi.x86_64-latest.args     |   2 +-
.../disk-network-nbd.x86_64-latest.args       |   2 +-
.../disk-network-nfs.x86_64-latest.args       |   2 +-
...-network-rbd-encryption.x86_64-latest.args |   2 +-
...sk-network-rbd-no-colon.x86_64-latest.args |   2 +-
.../disk-network-rbd.x86_64-latest.args       |   2 +-
.../disk-network-sheepdog.x86_64-6.0.0.args   |   2 +-
...isk-network-source-auth.x86_64-latest.args |   2 +-
...disk-network-tlsx509-nbd.x86_64-5.2.0.args |   2 +-
...isk-network-tlsx509-nbd.x86_64-latest.args |   2 +-
...isk-network-tlsx509-vxhs.x86_64-5.0.0.args |   2 +-
.../disk-no-boot.x86_64-latest.args           |   2 +-
.../disk-nvme.x86_64-latest.args              |   2 +-
.../disk-order.x86_64-latest.args             |   2 +-
.../disk-readonly-disk.x86_64-latest.args     |   2 +-
.../disk-rotation.x86_64-latest.args          |   2 +-
.../disk-sata-device.x86_64-latest.args       |   2 +-
.../disk-scsi-device-auto.x86_64-latest.args  |   2 +-
.../disk-scsi-disk-split.x86_64-latest.args   |   2 +-
.../disk-scsi-disk-vpd.x86_64-latest.args     |   2 +-
.../disk-scsi-disk-wwn.x86_64-latest.args     |   2 +-
...sk-scsi-lun-passthrough.x86_64-latest.args |   2 +-
.../disk-scsi.x86_64-latest.args              |   2 +-
.../disk-serial.x86_64-latest.args            |   2 +-
.../disk-shared.x86_64-latest.args            |   2 +-
.../disk-slices.x86_64-latest.args            |   2 +-
.../disk-snapshot.x86_64-latest.args          |   2 +-
.../disk-source-pool-mode.x86_64-latest.args  |   2 +-
.../disk-source-pool.x86_64-latest.args       |   2 +-
.../disk-transient.x86_64-latest.args         |   2 +-
...sk-usb-device-removable.x86_64-latest.args |   2 +-
.../disk-usb-device.x86_64-latest.args        |   2 +-
.../disk-vhostuser.x86_64-latest.args         |   2 +-
.../disk-virtio-ccw-many.s390x-latest.args    |   2 +-
.../disk-virtio-ccw.s390x-latest.args         |   2 +-
.../disk-virtio-queues.x86_64-latest.args     |   2 +-
.../disk-virtio-s390-zpci.s390x-latest.args   |   2 +-
...virtio-scsi-reservations.x86_64-5.2.0.args |   2 +-
...irtio-scsi-reservations.x86_64-latest.args |   2 +-
.../disk-virtio.x86_64-latest.args            |   2 +-
.../encrypted-disk-usage.x86_64-latest.args   |   2 +-
.../encrypted-disk.x86_64-latest.args         |   2 +-
.../eoi-disabled.x86_64-latest.args           |   2 +-
.../eoi-enabled.x86_64-latest.args            |   2 +-
.../event_idx.x86_64-latest.args              |   2 +-
.../fips-enabled.x86_64-5.1.0.args            |   2 +-
.../fips-enabled.x86_64-latest.args           |   2 +-
.../floppy-drive-fat.x86_64-latest.args       |   2 +-
.../fs9p-ccw.s390x-latest.args                |   2 +-
.../qemuxml2argvdata/fs9p.x86_64-latest.args  |   2 +-
.../genid-auto.x86_64-latest.args             |   2 +-
.../qemuxml2argvdata/genid.x86_64-latest.args |   2 +-
...s-spice-agent-file-xfer.x86_64-latest.args |   2 +-
...aphics-spice-agentmouse.x86_64-latest.args |   2 +-
...s-spice-auto-socket-cfg.x86_64-latest.args |   2 +-
...phics-spice-auto-socket.x86_64-latest.args |   2 +-
...phics-spice-compression.x86_64-latest.args |   2 +-
...hics-spice-egl-headless.x86_64-latest.args |   2 +-
...pice-gl-auto-rendernode.x86_64-latest.args |   2 +-
.../graphics-spice-no-args.x86_64-latest.args |   2 +-
.../graphics-spice-qxl-vga.x86_64-latest.args |   2 +-
.../graphics-spice-sasl.x86_64-latest.args    |   2 +-
.../graphics-spice-socket.x86_64-latest.args  |   2 +-
.../graphics-spice-timeout.x86_64-latest.args |   2 +-
...raphics-spice-usb-redir.x86_64-latest.args |   2 +-
.../graphics-spice.x86_64-latest.args         |   2 +-
...ics-vnc-auto-socket-cfg.x86_64-latest.args |   2 +-
...raphics-vnc-auto-socket.x86_64-latest.args |   2 +-
...aphics-vnc-egl-headless.x86_64-latest.args |   2 +-
...hics-vnc-no-listen-attr.x86_64-latest.args |   2 +-
.../graphics-vnc-none.x86_64-latest.args      |   2 +-
.../graphics-vnc-policy.x86_64-latest.args    |   2 +-
.../graphics-vnc-power.x86_64-latest.args     |   2 +-
...remove-generated-socket.x86_64-latest.args |   2 +-
.../graphics-vnc-sasl.x86_64-latest.args      |   2 +-
...-vnc-socket-new-cmdline.x86_64-latest.args |   2 +-
.../graphics-vnc-socket.x86_64-latest.args    |   2 +-
.../graphics-vnc-tls-secret.x86_64-5.2.0.args |   2 +-
...graphics-vnc-tls-secret.x86_64-latest.args |   2 +-
.../graphics-vnc-tls.x86_64-latest.args       |   2 +-
.../graphics-vnc-websocket.x86_64-latest.args |   2 +-
.../graphics-vnc.x86_64-latest.args           |   2 +-
...tdev-mdev-display-ramfb.x86_64-latest.args |   2 +-
...play-spice-egl-headless.x86_64-latest.args |   2 +-
...ev-display-spice-opengl.x86_64-latest.args |   2 +-
...isplay-vnc-egl-headless.x86_64-latest.args |   2 +-
...ostdev-mdev-display-vnc.x86_64-latest.args |   2 +-
.../hostdev-scsi-lsi.x86_64-latest.args       |   2 +-
...ostdev-scsi-virtio-scsi.x86_64-latest.args |   2 +-
...tdev-subsys-mdev-vfio-ap.s390x-latest.args |   2 +-
...ubsys-mdev-vfio-ccw-boot.s390x-latest.args |   2 +-
.../hugepages-memaccess3.x86_64-latest.args   |   2 +-
.../hugepages-nvdimm.x86_64-latest.args       |   2 +-
.../hyperv-off.x86_64-latest.args             |   2 +-
.../hyperv-panic.x86_64-latest.args           |   2 +-
.../hyperv-stimer-direct.x86_64-latest.args   |   2 +-
.../hyperv.x86_64-latest.args                 |   2 +-
.../input-linux.x86_64-latest.args            |   2 +-
.../intel-iommu-aw-bits.x86_64-latest.args    |   2 +-
...ntel-iommu-caching-mode.x86_64-latest.args |   2 +-
...ntel-iommu-device-iotlb.x86_64-latest.args |   2 +-
.../intel-iommu-eim.x86_64-latest.args        |   2 +-
.../intel-iommu.x86_64-latest.args            |   2 +-
.../iommu-smmuv3.aarch64-latest.args          |   2 +-
...othreads-virtio-scsi-ccw.s390x-latest.args |   2 +-
...othreads-virtio-scsi-pci.x86_64-5.2.0.args |   2 +-
...threads-virtio-scsi-pci.x86_64-latest.args |   2 +-
.../kvmclock+eoi-disabled.x86_64-latest.args  |   2 +-
.../launch-security-s390-pv.s390x-latest.args |   2 +-
.../launch-security-sev.x86_64-6.0.0.args     |   2 +-
.../luks-disks-source-qcow2.x86_64-5.2.0.args |   2 +-
...luks-disks-source-qcow2.x86_64-latest.args |   2 +-
.../luks-disks-source.x86_64-latest.args      |   2 +-
.../luks-disks.x86_64-latest.args             |   2 +-
...memory-default-hugepage.x86_64-latest.args |   2 +-
.../memfd-memory-numa.x86_64-latest.args      |   2 +-
...y-hotplug-nvdimm-access.x86_64-latest.args |   2 +-
...ory-hotplug-nvdimm-align.x86_64-5.2.0.args |   2 +-
...ry-hotplug-nvdimm-align.x86_64-latest.args |   2 +-
...ory-hotplug-nvdimm-label.x86_64-5.2.0.args |   2 +-
...ry-hotplug-nvdimm-label.x86_64-latest.args |   2 +-
...mory-hotplug-nvdimm-pmem.x86_64-5.2.0.args |   2 +-
...ory-hotplug-nvdimm-pmem.x86_64-latest.args |   2 +-
...-hotplug-nvdimm-readonly.x86_64-5.2.0.args |   2 +-
...hotplug-nvdimm-readonly.x86_64-latest.args |   2 +-
.../memory-hotplug-nvdimm.x86_64-latest.args  |   2 +-
...mory-hotplug-virtio-mem.x86_64-latest.args |   2 +-
...mory-hotplug-virtio-pmem.x86_64-5.2.0.args |   2 +-
...ory-hotplug-virtio-pmem.x86_64-latest.args |   2 +-
.../misc-no-reboot.x86_64-5.2.0.args          |   2 +-
.../misc-no-reboot.x86_64-latest.args         |   2 +-
.../mlock-off.x86_64-latest.args              |   2 +-
.../mlock-on.x86_64-latest.args               |   2 +-
.../net-vdpa.x86_64-latest.args               |   2 +-
.../net-vhostuser.x86_64-latest.args          |   2 +-
.../numatune-hmat.x86_64-latest.args          |   2 +-
...emnode-restrictive-mode.x86_64-latest.args |   2 +-
.../numatune-memnode.x86_64-5.2.0.args        |   2 +-
.../numatune-memnode.x86_64-latest.args       |   2 +-
.../numatune-system-memory.x86_64-latest.args |   2 +-
.../os-firmware-bios.x86_64-latest.args       |   2 +-
...re-efi-no-enrolled-keys.x86_64-latest.args |   2 +-
...os-firmware-efi-secboot.x86_64-latest.args |   2 +-
.../os-firmware-efi.x86_64-latest.args        |   2 +-
.../panic-double.x86_64-latest.args           |   2 +-
.../panic-no-address.x86_64-latest.args       |   2 +-
.../qemuxml2argvdata/panic.x86_64-latest.args |   2 +-
.../parallel-unix-chardev.x86_64-latest.args  |   2 +-
...pi-root-hotplug-disable.x86_64-latest.args |   2 +-
...cpi-root-hotplug-enable.x86_64-latest.args |   2 +-
...e-expander-bus-aarch64.aarch64-latest.args |   2 +-
...cie-root-port-nohotplug.x86_64-latest.args |   2 +-
...ault-cpu-kvm-pseries-2.7.ppc64-latest.args |   2 +-
...ault-cpu-kvm-pseries-3.1.ppc64-latest.args |   2 +-
...ault-cpu-kvm-pseries-4.2.ppc64-latest.args |   2 +-
...ault-cpu-tcg-pseries-2.7.ppc64-latest.args |   2 +-
...ault-cpu-tcg-pseries-3.1.ppc64-latest.args |   2 +-
...ault-cpu-tcg-pseries-4.2.ppc64-latest.args |   2 +-
.../ppc64-pseries-graphics.ppc64-latest.args  |   2 +-
.../ppc64-pseries-headless.ppc64-latest.args  |   2 +-
.../ppc64-tpmproxy-single.ppc64-latest.args   |   2 +-
.../ppc64-tpmproxy-with-tpm.ppc64-latest.args |   2 +-
.../pv-spinlock-disabled.x86_64-latest.args   |   2 +-
.../pv-spinlock-enabled.x86_64-latest.args    |   2 +-
.../qemu-ns.x86_64-latest.args                |   4 +-
.../riscv64-virt-graphics.riscv64-latest.args |   2 +-
.../riscv64-virt-headless.riscv64-latest.args |   2 +-
...low-bogus-usb-controller.s390x-latest.args |   2 +-
...390-allow-bogus-usb-none.s390x-latest.args |   2 +-
...t-cpu-kvm-ccw-virtio-2.7.s390x-latest.args |   2 +-
...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args |   2 +-
...t-cpu-tcg-ccw-virtio-2.7.s390x-latest.args |   2 +-
...t-cpu-tcg-ccw-virtio-4.2.s390x-latest.args |   2 +-
.../s390x-ccw-graphics.s390x-latest.args      |   2 +-
.../s390x-ccw-headless.s390x-latest.args      |   2 +-
.../serial-unix-chardev.x86_64-latest.args    |   2 +-
...rtcard-passthrough-unix.x86_64-latest.args |   2 +-
.../tpm-emulator-spapr.ppc64-latest.args      |   2 +-
.../tpm-emulator-tpm2-enc.x86_64-latest.args  |   2 +-
...pm-emulator-tpm2-pstate.x86_64-latest.args |   2 +-
.../tpm-emulator-tpm2.x86_64-latest.args      |   2 +-
.../tpm-emulator.x86_64-latest.args           |   2 +-
.../tpm-passthrough-crb.x86_64-latest.args    |   2 +-
.../tpm-passthrough.x86_64-latest.args        |   2 +-
.../tseg-explicit-size.x86_64-latest.args     |   2 +-
.../usb-redir-unix.x86_64-latest.args         |   2 +-
...vhost-user-fs-fd-memory.x86_64-latest.args |   2 +-
...vhost-user-fs-hugepages.x86_64-latest.args |   2 +-
...host-user-gpu-secondary.x86_64-latest.args |   2 +-
.../vhost-user-vga.x86_64-latest.args         |   2 +-
.../vhost-vsock-auto.x86_64-latest.args       |   2 +-
.../vhost-vsock-ccw-auto.s390x-latest.args    |   2 +-
.../vhost-vsock-ccw-iommu.s390x-latest.args   |   2 +-
.../vhost-vsock-ccw.s390x-latest.args         |   2 +-
.../vhost-vsock.x86_64-latest.args            |   2 +-
...eo-bochs-display-device.x86_64-latest.args |   2 +-
...video-qxl-device-vram64.x86_64-latest.args |   2 +-
...o-qxl-sec-device-vram64.x86_64-latest.args |   2 +-
...eo-ramfb-display-device.x86_64-latest.args |   2 +-
...video-virtio-vga-gpu-gl.x86_64-latest.args |   2 +-
.../virtio-9p-createmode.x86_64-latest.args   |   2 +-
.../virtio-9p-multidevs.x86_64-latest.args    |   2 +-
.../virtio-lun.x86_64-latest.args             |   2 +-
...virtio-non-transitional.x86_64-latest.args |   2 +-
...-options-controller-ats.x86_64-latest.args |   2 +-
...ptions-controller-iommu.x86_64-latest.args |   2 +-
...tions-controller-packed.x86_64-latest.args |   2 +-
...virtio-options-disk-ats.x86_64-latest.args |   2 +-
...rtio-options-disk-iommu.x86_64-latest.args |   2 +-
...tio-options-disk-packed.x86_64-latest.args |   2 +-
.../virtio-options-fs-ats.x86_64-latest.args  |   2 +-
...virtio-options-fs-iommu.x86_64-latest.args |   2 +-
...irtio-options-fs-packed.x86_64-latest.args |   2 +-
...irtio-options-input-ats.x86_64-latest.args |   2 +-
...tio-options-input-iommu.x86_64-latest.args |   2 +-
...io-options-input-packed.x86_64-latest.args |   2 +-
...-options-memballoon-ats.x86_64-latest.args |   2 +-
...loon-freepage-reporting.x86_64-latest.args |   2 +-
...ptions-memballoon-iommu.x86_64-latest.args |   2 +-
...tions-memballoon-packed.x86_64-latest.args |   2 +-
.../virtio-options-net-ats.x86_64-latest.args |   2 +-
...irtio-options-net-iommu.x86_64-latest.args |   2 +-
...rtio-options-net-packed.x86_64-latest.args |   2 +-
.../virtio-options-rng-ats.x86_64-latest.args |   2 +-
...irtio-options-rng-iommu.x86_64-latest.args |   2 +-
...rtio-options-rng-packed.x86_64-latest.args |   2 +-
...irtio-options-video-ats.x86_64-latest.args |   2 +-
...tio-options-video-iommu.x86_64-latest.args |   2 +-
...io-options-video-packed.x86_64-latest.args |   2 +-
.../virtio-options.x86_64-latest.args         |   2 +-
.../virtio-rng-builtin.x86_64-5.2.0.args      |   2 +-
.../virtio-rng-builtin.x86_64-latest.args     |   2 +-
.../virtio-rng-egd-unix.x86_64-5.2.0.args     |   2 +-
.../virtio-rng-egd-unix.x86_64-latest.args    |   2 +-
.../virtio-transitional.x86_64-latest.args    |   2 +-
.../watchdog-device.x86_64-latest.args        |   2 +-
.../watchdog-diag288.s390x-latest.args        |   2 +-
.../watchdog-dump.x86_64-latest.args          |   2 +-
.../watchdog-injectnmi.x86_64-latest.args     |   2 +-
.../watchdog.x86_64-latest.args               |   2 +-
...-default-cpu-kvm-pc-4.2.x86_64-latest.args |   2 +-
...default-cpu-kvm-q35-4.2.x86_64-latest.args |   2 +-
...-default-cpu-tcg-pc-4.2.x86_64-latest.args |   2 +-
...default-cpu-tcg-q35-4.2.x86_64-latest.args |   2 +-
.../x86_64-pc-graphics.x86_64-latest.args     |   2 +-
.../x86_64-pc-headless.x86_64-latest.args     |   2 +-
.../x86_64-q35-graphics.x86_64-latest.args    |   2 +-
.../x86_64-q35-headless.x86_64-latest.args    |   2 +-
tests/virjsontest.c                           |  18 +-
tools/virsh-domain.c                          |   8 +-
352 files changed, 1080 insertions(+), 1074 deletions(-)
[PATCH 00/18] qemu: command: Convert '-compat' and '-audiodev' to use JSON
Posted by Peter Krempa 2 years, 5 months ago
In line of the previous work to use the long-term stable versions of the
commandline interface.

Peter Krempa (18):
  virJSONValueObjectAdd: Convert @obj argument to double pointer
  virJSONValueObjectAddVArgs: Take double pointer
  virJSONValueObjectAddVArgs: Allocate new object if passed pointer is
    NULL
  qemu: block: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
  qemu: agent: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
  qemu: monitor_json: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  qemu: monitor: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  qemu: migration_cookie: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  qemuDiskSourceGetProps: Initialize 'ret'
  qemu: command: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  qemublocktest: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  virjsontest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
  qemu: migration_params: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  virsh: domain: Replace virJSONValueObjectCreate by
    virJSONValueObjectAdd
  Replace virJSONValueObjectCreateVArgs with virJSONValueObjectAddVArgs
  util: json: Remove virJSONValueObjectCreate(VArgs)
  qemu: command: Use JSON for parameters of -compat
  qemu: command: Use JSON for parameters of -audiodev

 src/libvirt_private.syms                      |   2 -
 src/qemu/qemu_agent.c                         |  10 +-
 src/qemu/qemu_block.c                         | 378 ++++----
 src/qemu/qemu_command.c                       | 890 +++++++++---------
 src/qemu/qemu_migration_cookie.c              |  25 +-
 src/qemu/qemu_migration_params.c              |   8 +-
 src/qemu/qemu_monitor.c                       |  20 +-
 src/qemu/qemu_monitor_json.c                  |  51 +-
 src/util/virjson.c                            |  50 +-
 src/util/virjson.h                            |   8 +-
 tests/qemublocktest.c                         |   2 +-
 ...fault-cpu-kvm-virt-4.2.aarch64-latest.args |   2 +-
 ...fault-cpu-tcg-virt-4.2.aarch64-latest.args |   2 +-
 .../aarch64-features-sve.aarch64-latest.args  |   2 +-
 ...arch64-os-firmware-efi.aarch64-latest.args |   2 +-
 .../aarch64-tpm.aarch64-latest.args           |   2 +-
 .../aarch64-virt-graphics.aarch64-latest.args |   2 +-
 .../aarch64-virt-headless.aarch64-latest.args |   2 +-
 .../audio-alsa-best.x86_64-latest.args        |   2 +-
 .../audio-alsa-full.x86_64-latest.args        |   2 +-
 .../audio-alsa-minimal.x86_64-latest.args     |   2 +-
 .../audio-coreaudio-best.x86_64-latest.args   |   2 +-
 .../audio-coreaudio-full.x86_64-latest.args   |   2 +-
 ...audio-coreaudio-minimal.x86_64-latest.args |   2 +-
 ...udio-default-nographics.x86_64-latest.args |   2 +-
 .../audio-default-sdl.x86_64-latest.args      |   2 +-
 .../audio-default-spice.x86_64-latest.args    |   2 +-
 .../audio-default-vnc.x86_64-latest.args      |   2 +-
 .../audio-file-best.x86_64-latest.args        |   2 +-
 .../audio-file-full.x86_64-latest.args        |   2 +-
 .../audio-file-minimal.x86_64-latest.args     |   2 +-
 .../audio-jack-full.x86_64-latest.args        |   2 +-
 .../audio-jack-minimal.x86_64-latest.args     |   2 +-
 .../audio-many-backends.x86_64-latest.args    |   6 +-
 .../audio-none-best.x86_64-latest.args        |   2 +-
 .../audio-none-full.x86_64-latest.args        |   2 +-
 .../audio-none-minimal.x86_64-latest.args     |   2 +-
 .../audio-oss-best.x86_64-latest.args         |   2 +-
 .../audio-oss-full.x86_64-latest.args         |   2 +-
 .../audio-oss-minimal.x86_64-latest.args      |   2 +-
 .../audio-pulseaudio-best.x86_64-latest.args  |   2 +-
 .../audio-pulseaudio-full.x86_64-latest.args  |   2 +-
 ...udio-pulseaudio-minimal.x86_64-latest.args |   2 +-
 .../audio-sdl-best.x86_64-latest.args         |   2 +-
 .../audio-sdl-full.x86_64-latest.args         |   2 +-
 .../audio-sdl-minimal.x86_64-latest.args      |   2 +-
 .../audio-spice-best.x86_64-latest.args       |   2 +-
 .../audio-spice-full.x86_64-latest.args       |   2 +-
 .../audio-spice-minimal.x86_64-latest.args    |   2 +-
 .../blkdeviotune-group-num.x86_64-latest.args |   2 +-
 ...blkdeviotune-max-length.x86_64-latest.args |   2 +-
 .../blkdeviotune-max.x86_64-latest.args       |   2 +-
 .../channel-unix-guestfwd.x86_64-latest.args  |   2 +-
 .../clock-timer-armvtimer.aarch64-latest.args |   2 +-
 .../console-sclp.s390x-latest.args            |   2 +-
 .../console-virtio-unix.x86_64-latest.args    |   2 +-
 .../controller-virtio-scsi.x86_64-latest.args |   2 +-
 ...-Icelake-Server-pconfig.x86_64-latest.args |   2 +-
 .../cpu-host-model.x86_64-4.2.0.args          |   2 +-
 .../cpu-host-model.x86_64-5.0.0.args          |   2 +-
 .../cpu-host-model.x86_64-5.1.0.args          |   2 +-
 .../cpu-host-model.x86_64-5.2.0.args          |   2 +-
 .../cpu-host-model.x86_64-6.0.0.args          |   2 +-
 .../cpu-host-model.x86_64-6.1.0.args          |   2 +-
 .../cpu-host-model.x86_64-latest.args         |   2 +-
 .../cpu-translation.x86_64-latest.args        |   2 +-
 .../cputune-cpuset-big-id.x86_64-latest.args  |   2 +-
 ...ult-video-type-aarch64.aarch64-latest.args |   2 +-
 ...default-video-type-ppc64.ppc64-latest.args |   2 +-
 ...ult-video-type-riscv64.riscv64-latest.args |   2 +-
 ...default-video-type-s390x.s390x-latest.args |   2 +-
 .../devices-acpi-index.x86_64-latest.args     |   2 +-
 .../disk-aio-io_uring.x86_64-latest.args      |   2 +-
 .../disk-aio.x86_64-latest.args               |   2 +-
 .../disk-arm-virtio-sd.aarch64-latest.args    |   2 +-
 ...-backing-chains-noindex.x86_64-latest.args |   2 +-
 .../disk-blockio.x86_64-latest.args           |   2 +-
 .../disk-boot-cdrom.x86_64-latest.args        |   2 +-
 .../disk-boot-disk.x86_64-latest.args         |   2 +-
 .../disk-cache.x86_64-latest.args             |   2 +-
 .../disk-cdrom-bus-other.x86_64-latest.args   |   2 +-
 ...m-empty-network-invalid.x86_64-latest.args |   2 +-
 .../disk-cdrom-network.x86_64-latest.args     |   2 +-
 .../disk-cdrom-tray.x86_64-latest.args        |   2 +-
 .../disk-cdrom.x86_64-latest.args             |   2 +-
 .../disk-copy_on_read.x86_64-latest.args      |   2 +-
 .../disk-detect-zeroes.x86_64-latest.args     |   2 +-
 .../disk-discard.x86_64-latest.args           |   2 +-
 .../disk-error-policy-s390x.s390x-latest.args |   2 +-
 .../disk-error-policy.x86_64-latest.args      |   2 +-
 .../disk-floppy-q35-2_11.x86_64-latest.args   |   2 +-
 .../disk-floppy-q35-2_9.x86_64-latest.args    |   2 +-
 .../disk-floppy-tray.x86_64-latest.args       |   2 +-
 .../disk-floppy.x86_64-latest.args            |   2 +-
 .../disk-fmt-qcow.x86_64-latest.args          |   2 +-
 .../disk-geometry.x86_64-latest.args          |   2 +-
 .../disk-ide-split.x86_64-latest.args         |   2 +-
 .../disk-ide-wwn.x86_64-latest.args           |   2 +-
 .../disk-ioeventfd.x86_64-latest.args         |   2 +-
 .../disk-metadata-cache.x86_64-latest.args    |   2 +-
 .../disk-network-gluster.x86_64-latest.args   |   2 +-
 .../disk-network-http.x86_64-latest.args      |   2 +-
 .../disk-network-iscsi.x86_64-latest.args     |   2 +-
 .../disk-network-nbd.x86_64-latest.args       |   2 +-
 .../disk-network-nfs.x86_64-latest.args       |   2 +-
 ...-network-rbd-encryption.x86_64-latest.args |   2 +-
 ...sk-network-rbd-no-colon.x86_64-latest.args |   2 +-
 .../disk-network-rbd.x86_64-latest.args       |   2 +-
 .../disk-network-sheepdog.x86_64-6.0.0.args   |   2 +-
 ...isk-network-source-auth.x86_64-latest.args |   2 +-
 ...disk-network-tlsx509-nbd.x86_64-5.2.0.args |   2 +-
 ...isk-network-tlsx509-nbd.x86_64-latest.args |   2 +-
 ...isk-network-tlsx509-vxhs.x86_64-5.0.0.args |   2 +-
 .../disk-no-boot.x86_64-latest.args           |   2 +-
 .../disk-nvme.x86_64-latest.args              |   2 +-
 .../disk-order.x86_64-latest.args             |   2 +-
 .../disk-readonly-disk.x86_64-latest.args     |   2 +-
 .../disk-rotation.x86_64-latest.args          |   2 +-
 .../disk-sata-device.x86_64-latest.args       |   2 +-
 .../disk-scsi-device-auto.x86_64-latest.args  |   2 +-
 .../disk-scsi-disk-split.x86_64-latest.args   |   2 +-
 .../disk-scsi-disk-vpd.x86_64-latest.args     |   2 +-
 .../disk-scsi-disk-wwn.x86_64-latest.args     |   2 +-
 ...sk-scsi-lun-passthrough.x86_64-latest.args |   2 +-
 .../disk-scsi.x86_64-latest.args              |   2 +-
 .../disk-serial.x86_64-latest.args            |   2 +-
 .../disk-shared.x86_64-latest.args            |   2 +-
 .../disk-slices.x86_64-latest.args            |   2 +-
 .../disk-snapshot.x86_64-latest.args          |   2 +-
 .../disk-source-pool-mode.x86_64-latest.args  |   2 +-
 .../disk-source-pool.x86_64-latest.args       |   2 +-
 .../disk-transient.x86_64-latest.args         |   2 +-
 ...sk-usb-device-removable.x86_64-latest.args |   2 +-
 .../disk-usb-device.x86_64-latest.args        |   2 +-
 .../disk-vhostuser.x86_64-latest.args         |   2 +-
 .../disk-virtio-ccw-many.s390x-latest.args    |   2 +-
 .../disk-virtio-ccw.s390x-latest.args         |   2 +-
 .../disk-virtio-queues.x86_64-latest.args     |   2 +-
 .../disk-virtio-s390-zpci.s390x-latest.args   |   2 +-
 ...virtio-scsi-reservations.x86_64-5.2.0.args |   2 +-
 ...irtio-scsi-reservations.x86_64-latest.args |   2 +-
 .../disk-virtio.x86_64-latest.args            |   2 +-
 .../encrypted-disk-usage.x86_64-latest.args   |   2 +-
 .../encrypted-disk.x86_64-latest.args         |   2 +-
 .../eoi-disabled.x86_64-latest.args           |   2 +-
 .../eoi-enabled.x86_64-latest.args            |   2 +-
 .../event_idx.x86_64-latest.args              |   2 +-
 .../fips-enabled.x86_64-5.1.0.args            |   2 +-
 .../fips-enabled.x86_64-latest.args           |   2 +-
 .../floppy-drive-fat.x86_64-latest.args       |   2 +-
 .../fs9p-ccw.s390x-latest.args                |   2 +-
 .../qemuxml2argvdata/fs9p.x86_64-latest.args  |   2 +-
 .../genid-auto.x86_64-latest.args             |   2 +-
 .../qemuxml2argvdata/genid.x86_64-latest.args |   2 +-
 ...s-spice-agent-file-xfer.x86_64-latest.args |   2 +-
 ...aphics-spice-agentmouse.x86_64-latest.args |   2 +-
 ...s-spice-auto-socket-cfg.x86_64-latest.args |   2 +-
 ...phics-spice-auto-socket.x86_64-latest.args |   2 +-
 ...phics-spice-compression.x86_64-latest.args |   2 +-
 ...hics-spice-egl-headless.x86_64-latest.args |   2 +-
 ...pice-gl-auto-rendernode.x86_64-latest.args |   2 +-
 .../graphics-spice-no-args.x86_64-latest.args |   2 +-
 .../graphics-spice-qxl-vga.x86_64-latest.args |   2 +-
 .../graphics-spice-sasl.x86_64-latest.args    |   2 +-
 .../graphics-spice-socket.x86_64-latest.args  |   2 +-
 .../graphics-spice-timeout.x86_64-latest.args |   2 +-
 ...raphics-spice-usb-redir.x86_64-latest.args |   2 +-
 .../graphics-spice.x86_64-latest.args         |   2 +-
 ...ics-vnc-auto-socket-cfg.x86_64-latest.args |   2 +-
 ...raphics-vnc-auto-socket.x86_64-latest.args |   2 +-
 ...aphics-vnc-egl-headless.x86_64-latest.args |   2 +-
 ...hics-vnc-no-listen-attr.x86_64-latest.args |   2 +-
 .../graphics-vnc-none.x86_64-latest.args      |   2 +-
 .../graphics-vnc-policy.x86_64-latest.args    |   2 +-
 .../graphics-vnc-power.x86_64-latest.args     |   2 +-
 ...remove-generated-socket.x86_64-latest.args |   2 +-
 .../graphics-vnc-sasl.x86_64-latest.args      |   2 +-
 ...-vnc-socket-new-cmdline.x86_64-latest.args |   2 +-
 .../graphics-vnc-socket.x86_64-latest.args    |   2 +-
 .../graphics-vnc-tls-secret.x86_64-5.2.0.args |   2 +-
 ...graphics-vnc-tls-secret.x86_64-latest.args |   2 +-
 .../graphics-vnc-tls.x86_64-latest.args       |   2 +-
 .../graphics-vnc-websocket.x86_64-latest.args |   2 +-
 .../graphics-vnc.x86_64-latest.args           |   2 +-
 ...tdev-mdev-display-ramfb.x86_64-latest.args |   2 +-
 ...play-spice-egl-headless.x86_64-latest.args |   2 +-
 ...ev-display-spice-opengl.x86_64-latest.args |   2 +-
 ...isplay-vnc-egl-headless.x86_64-latest.args |   2 +-
 ...ostdev-mdev-display-vnc.x86_64-latest.args |   2 +-
 .../hostdev-scsi-lsi.x86_64-latest.args       |   2 +-
 ...ostdev-scsi-virtio-scsi.x86_64-latest.args |   2 +-
 ...tdev-subsys-mdev-vfio-ap.s390x-latest.args |   2 +-
 ...ubsys-mdev-vfio-ccw-boot.s390x-latest.args |   2 +-
 .../hugepages-memaccess3.x86_64-latest.args   |   2 +-
 .../hugepages-nvdimm.x86_64-latest.args       |   2 +-
 .../hyperv-off.x86_64-latest.args             |   2 +-
 .../hyperv-panic.x86_64-latest.args           |   2 +-
 .../hyperv-stimer-direct.x86_64-latest.args   |   2 +-
 .../hyperv.x86_64-latest.args                 |   2 +-
 .../input-linux.x86_64-latest.args            |   2 +-
 .../intel-iommu-aw-bits.x86_64-latest.args    |   2 +-
 ...ntel-iommu-caching-mode.x86_64-latest.args |   2 +-
 ...ntel-iommu-device-iotlb.x86_64-latest.args |   2 +-
 .../intel-iommu-eim.x86_64-latest.args        |   2 +-
 .../intel-iommu.x86_64-latest.args            |   2 +-
 .../iommu-smmuv3.aarch64-latest.args          |   2 +-
 ...othreads-virtio-scsi-ccw.s390x-latest.args |   2 +-
 ...othreads-virtio-scsi-pci.x86_64-5.2.0.args |   2 +-
 ...threads-virtio-scsi-pci.x86_64-latest.args |   2 +-
 .../kvmclock+eoi-disabled.x86_64-latest.args  |   2 +-
 .../launch-security-s390-pv.s390x-latest.args |   2 +-
 .../launch-security-sev.x86_64-6.0.0.args     |   2 +-
 .../luks-disks-source-qcow2.x86_64-5.2.0.args |   2 +-
 ...luks-disks-source-qcow2.x86_64-latest.args |   2 +-
 .../luks-disks-source.x86_64-latest.args      |   2 +-
 .../luks-disks.x86_64-latest.args             |   2 +-
 ...memory-default-hugepage.x86_64-latest.args |   2 +-
 .../memfd-memory-numa.x86_64-latest.args      |   2 +-
 ...y-hotplug-nvdimm-access.x86_64-latest.args |   2 +-
 ...ory-hotplug-nvdimm-align.x86_64-5.2.0.args |   2 +-
 ...ry-hotplug-nvdimm-align.x86_64-latest.args |   2 +-
 ...ory-hotplug-nvdimm-label.x86_64-5.2.0.args |   2 +-
 ...ry-hotplug-nvdimm-label.x86_64-latest.args |   2 +-
 ...mory-hotplug-nvdimm-pmem.x86_64-5.2.0.args |   2 +-
 ...ory-hotplug-nvdimm-pmem.x86_64-latest.args |   2 +-
 ...-hotplug-nvdimm-readonly.x86_64-5.2.0.args |   2 +-
 ...hotplug-nvdimm-readonly.x86_64-latest.args |   2 +-
 .../memory-hotplug-nvdimm.x86_64-latest.args  |   2 +-
 ...mory-hotplug-virtio-mem.x86_64-latest.args |   2 +-
 ...mory-hotplug-virtio-pmem.x86_64-5.2.0.args |   2 +-
 ...ory-hotplug-virtio-pmem.x86_64-latest.args |   2 +-
 .../misc-no-reboot.x86_64-5.2.0.args          |   2 +-
 .../misc-no-reboot.x86_64-latest.args         |   2 +-
 .../mlock-off.x86_64-latest.args              |   2 +-
 .../mlock-on.x86_64-latest.args               |   2 +-
 .../net-vdpa.x86_64-latest.args               |   2 +-
 .../net-vhostuser.x86_64-latest.args          |   2 +-
 .../numatune-hmat.x86_64-latest.args          |   2 +-
 ...emnode-restrictive-mode.x86_64-latest.args |   2 +-
 .../numatune-memnode.x86_64-5.2.0.args        |   2 +-
 .../numatune-memnode.x86_64-latest.args       |   2 +-
 .../numatune-system-memory.x86_64-latest.args |   2 +-
 .../os-firmware-bios.x86_64-latest.args       |   2 +-
 ...re-efi-no-enrolled-keys.x86_64-latest.args |   2 +-
 ...os-firmware-efi-secboot.x86_64-latest.args |   2 +-
 .../os-firmware-efi.x86_64-latest.args        |   2 +-
 .../panic-double.x86_64-latest.args           |   2 +-
 .../panic-no-address.x86_64-latest.args       |   2 +-
 .../qemuxml2argvdata/panic.x86_64-latest.args |   2 +-
 .../parallel-unix-chardev.x86_64-latest.args  |   2 +-
 ...pi-root-hotplug-disable.x86_64-latest.args |   2 +-
 ...cpi-root-hotplug-enable.x86_64-latest.args |   2 +-
 ...e-expander-bus-aarch64.aarch64-latest.args |   2 +-
 ...cie-root-port-nohotplug.x86_64-latest.args |   2 +-
 ...ault-cpu-kvm-pseries-2.7.ppc64-latest.args |   2 +-
 ...ault-cpu-kvm-pseries-3.1.ppc64-latest.args |   2 +-
 ...ault-cpu-kvm-pseries-4.2.ppc64-latest.args |   2 +-
 ...ault-cpu-tcg-pseries-2.7.ppc64-latest.args |   2 +-
 ...ault-cpu-tcg-pseries-3.1.ppc64-latest.args |   2 +-
 ...ault-cpu-tcg-pseries-4.2.ppc64-latest.args |   2 +-
 .../ppc64-pseries-graphics.ppc64-latest.args  |   2 +-
 .../ppc64-pseries-headless.ppc64-latest.args  |   2 +-
 .../ppc64-tpmproxy-single.ppc64-latest.args   |   2 +-
 .../ppc64-tpmproxy-with-tpm.ppc64-latest.args |   2 +-
 .../pv-spinlock-disabled.x86_64-latest.args   |   2 +-
 .../pv-spinlock-enabled.x86_64-latest.args    |   2 +-
 .../qemu-ns.x86_64-latest.args                |   4 +-
 .../riscv64-virt-graphics.riscv64-latest.args |   2 +-
 .../riscv64-virt-headless.riscv64-latest.args |   2 +-
 ...low-bogus-usb-controller.s390x-latest.args |   2 +-
 ...390-allow-bogus-usb-none.s390x-latest.args |   2 +-
 ...t-cpu-kvm-ccw-virtio-2.7.s390x-latest.args |   2 +-
 ...t-cpu-kvm-ccw-virtio-4.2.s390x-latest.args |   2 +-
 ...t-cpu-tcg-ccw-virtio-2.7.s390x-latest.args |   2 +-
 ...t-cpu-tcg-ccw-virtio-4.2.s390x-latest.args |   2 +-
 .../s390x-ccw-graphics.s390x-latest.args      |   2 +-
 .../s390x-ccw-headless.s390x-latest.args      |   2 +-
 .../serial-unix-chardev.x86_64-latest.args    |   2 +-
 ...rtcard-passthrough-unix.x86_64-latest.args |   2 +-
 .../tpm-emulator-spapr.ppc64-latest.args      |   2 +-
 .../tpm-emulator-tpm2-enc.x86_64-latest.args  |   2 +-
 ...pm-emulator-tpm2-pstate.x86_64-latest.args |   2 +-
 .../tpm-emulator-tpm2.x86_64-latest.args      |   2 +-
 .../tpm-emulator.x86_64-latest.args           |   2 +-
 .../tpm-passthrough-crb.x86_64-latest.args    |   2 +-
 .../tpm-passthrough.x86_64-latest.args        |   2 +-
 .../tseg-explicit-size.x86_64-latest.args     |   2 +-
 .../usb-redir-unix.x86_64-latest.args         |   2 +-
 ...vhost-user-fs-fd-memory.x86_64-latest.args |   2 +-
 ...vhost-user-fs-hugepages.x86_64-latest.args |   2 +-
 ...host-user-gpu-secondary.x86_64-latest.args |   2 +-
 .../vhost-user-vga.x86_64-latest.args         |   2 +-
 .../vhost-vsock-auto.x86_64-latest.args       |   2 +-
 .../vhost-vsock-ccw-auto.s390x-latest.args    |   2 +-
 .../vhost-vsock-ccw-iommu.s390x-latest.args   |   2 +-
 .../vhost-vsock-ccw.s390x-latest.args         |   2 +-
 .../vhost-vsock.x86_64-latest.args            |   2 +-
 ...eo-bochs-display-device.x86_64-latest.args |   2 +-
 ...video-qxl-device-vram64.x86_64-latest.args |   2 +-
 ...o-qxl-sec-device-vram64.x86_64-latest.args |   2 +-
 ...eo-ramfb-display-device.x86_64-latest.args |   2 +-
 ...video-virtio-vga-gpu-gl.x86_64-latest.args |   2 +-
 .../virtio-9p-createmode.x86_64-latest.args   |   2 +-
 .../virtio-9p-multidevs.x86_64-latest.args    |   2 +-
 .../virtio-lun.x86_64-latest.args             |   2 +-
 ...virtio-non-transitional.x86_64-latest.args |   2 +-
 ...-options-controller-ats.x86_64-latest.args |   2 +-
 ...ptions-controller-iommu.x86_64-latest.args |   2 +-
 ...tions-controller-packed.x86_64-latest.args |   2 +-
 ...virtio-options-disk-ats.x86_64-latest.args |   2 +-
 ...rtio-options-disk-iommu.x86_64-latest.args |   2 +-
 ...tio-options-disk-packed.x86_64-latest.args |   2 +-
 .../virtio-options-fs-ats.x86_64-latest.args  |   2 +-
 ...virtio-options-fs-iommu.x86_64-latest.args |   2 +-
 ...irtio-options-fs-packed.x86_64-latest.args |   2 +-
 ...irtio-options-input-ats.x86_64-latest.args |   2 +-
 ...tio-options-input-iommu.x86_64-latest.args |   2 +-
 ...io-options-input-packed.x86_64-latest.args |   2 +-
 ...-options-memballoon-ats.x86_64-latest.args |   2 +-
 ...loon-freepage-reporting.x86_64-latest.args |   2 +-
 ...ptions-memballoon-iommu.x86_64-latest.args |   2 +-
 ...tions-memballoon-packed.x86_64-latest.args |   2 +-
 .../virtio-options-net-ats.x86_64-latest.args |   2 +-
 ...irtio-options-net-iommu.x86_64-latest.args |   2 +-
 ...rtio-options-net-packed.x86_64-latest.args |   2 +-
 .../virtio-options-rng-ats.x86_64-latest.args |   2 +-
 ...irtio-options-rng-iommu.x86_64-latest.args |   2 +-
 ...rtio-options-rng-packed.x86_64-latest.args |   2 +-
 ...irtio-options-video-ats.x86_64-latest.args |   2 +-
 ...tio-options-video-iommu.x86_64-latest.args |   2 +-
 ...io-options-video-packed.x86_64-latest.args |   2 +-
 .../virtio-options.x86_64-latest.args         |   2 +-
 .../virtio-rng-builtin.x86_64-5.2.0.args      |   2 +-
 .../virtio-rng-builtin.x86_64-latest.args     |   2 +-
 .../virtio-rng-egd-unix.x86_64-5.2.0.args     |   2 +-
 .../virtio-rng-egd-unix.x86_64-latest.args    |   2 +-
 .../virtio-transitional.x86_64-latest.args    |   2 +-
 .../watchdog-device.x86_64-latest.args        |   2 +-
 .../watchdog-diag288.s390x-latest.args        |   2 +-
 .../watchdog-dump.x86_64-latest.args          |   2 +-
 .../watchdog-injectnmi.x86_64-latest.args     |   2 +-
 .../watchdog.x86_64-latest.args               |   2 +-
 ...-default-cpu-kvm-pc-4.2.x86_64-latest.args |   2 +-
 ...default-cpu-kvm-q35-4.2.x86_64-latest.args |   2 +-
 ...-default-cpu-tcg-pc-4.2.x86_64-latest.args |   2 +-
 ...default-cpu-tcg-q35-4.2.x86_64-latest.args |   2 +-
 .../x86_64-pc-graphics.x86_64-latest.args     |   2 +-
 .../x86_64-pc-headless.x86_64-latest.args     |   2 +-
 .../x86_64-q35-graphics.x86_64-latest.args    |   2 +-
 .../x86_64-q35-headless.x86_64-latest.args    |   2 +-
 tests/virjsontest.c                           |  18 +-
 tools/virsh-domain.c                          |   8 +-
 352 files changed, 1080 insertions(+), 1074 deletions(-)

-- 
2.31.1

Re: [PATCH 00/18] qemu: command: Convert '-compat' and '-audiodev' to use JSON
Posted by Ján Tomko 2 years, 5 months ago
On a Monday in 2021, Peter Krempa wrote:
>In line of the previous work to use the long-term stable versions of the
>commandline interface.
>
>Peter Krempa (18):
>  virJSONValueObjectAdd: Convert @obj argument to double pointer
>  virJSONValueObjectAddVArgs: Take double pointer
>  virJSONValueObjectAddVArgs: Allocate new object if passed pointer is
>    NULL
>  qemu: block: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
>  qemu: agent: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
>  qemu: monitor_json: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  qemu: monitor: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  qemu: migration_cookie: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  qemuDiskSourceGetProps: Initialize 'ret'
>  qemu: command: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  qemublocktest: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  virjsontest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
>  qemu: migration_params: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  virsh: domain: Replace virJSONValueObjectCreate by
>    virJSONValueObjectAdd
>  Replace virJSONValueObjectCreateVArgs with virJSONValueObjectAddVArgs
>  util: json: Remove virJSONValueObjectCreate(VArgs)
>  qemu: command: Use JSON for parameters of -compat
>  qemu: command: Use JSON for parameters of -audiodev
>
> src/libvirt_private.syms                      |   2 -
> src/qemu/qemu_agent.c                         |  10 +-
> src/qemu/qemu_block.c                         | 378 ++++----
> src/qemu/qemu_command.c                       | 890 +++++++++---------

[..]

> .../x86_64-pc-graphics.x86_64-latest.args     |   2 +-
> .../x86_64-pc-headless.x86_64-latest.args     |   2 +-
> .../x86_64-q35-graphics.x86_64-latest.args    |   2 +-
> .../x86_64-q35-headless.x86_64-latest.args    |   2 +-
> tests/virjsontest.c                           |  18 +-
> tools/virsh-domain.c                          |   8 +-
> 352 files changed, 1080 insertions(+), 1074 deletions(-)
>

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

Jano