[PATCH qemu-server 0/6] cmd: convert drive device to json format

Alexandre Derumier alexandre.derumier at groupe-cyllene.com
Fri Jun 27 14:42:22 CEST 2025


Some new features like multiple iothreads need json format

Folowing my previous patch serie:
https://lore.proxmox.com/pve-devel/mailman.674.1751018601.395.pve-devel@lists.proxmox.com

Alexandre Derumier (6):
  pci: add get_pci_addr
  qmphelpers: add qmp_deviceadd && qmp_devicedel
  convert drive device to json format
  convert iothread to json
  convert disk controller device to json format
  tests: cfg2cmd: convert drive devices to json format

 src/PVE/QemuServer.pm                         |  42 ++++----
 src/PVE/QemuServer/DriveDevice.pm             | 101 ++++++++++--------
 src/PVE/QemuServer/PCI.pm                     |  22 +++-
 src/PVE/QemuServer/QMPHelpers.pm              |  16 +++
 src/test/cfg2cmd/aio.conf.cmd                 |  32 +++---
 src/test/cfg2cmd/bootorder-empty.conf.cmd     |  14 +--
 src/test/cfg2cmd/bootorder-legacy.conf.cmd    |  14 +--
 src/test/cfg2cmd/bootorder.conf.cmd           |  14 +--
 ...putype-icelake-client-deprecation.conf.cmd |   6 +-
 src/test/cfg2cmd/ide.conf.cmd                 |  12 +--
 .../cfg2cmd/pinned-version-pxe-pve.conf.cmd   |   6 +-
 src/test/cfg2cmd/pinned-version-pxe.conf.cmd  |   6 +-
 src/test/cfg2cmd/pinned-version.conf.cmd      |   6 +-
 src/test/cfg2cmd/q35-ide.conf.cmd             |  12 +--
 .../q35-linux-hostpci-template.conf.cmd       |   4 +-
 src/test/cfg2cmd/seabios_serial.conf.cmd      |   6 +-
 ...imple-balloon-free-page-reporting.conf.cmd |   6 +-
 src/test/cfg2cmd/simple-btrfs.conf.cmd        |  12 +--
 src/test/cfg2cmd/simple-cifs.conf.cmd         |  12 +--
 .../cfg2cmd/simple-disk-passthrough.conf.cmd  |   8 +-
 src/test/cfg2cmd/simple-lvm.conf.cmd          |  10 +-
 src/test/cfg2cmd/simple-lvmthin.conf.cmd      |  10 +-
 src/test/cfg2cmd/simple-rbd.conf.cmd          |  20 ++--
 src/test/cfg2cmd/simple-virtio-blk.conf.cmd   |   6 +-
 .../cfg2cmd/simple-zfs-over-iscsi.conf.cmd    |  12 +--
 src/test/cfg2cmd/simple1-template.conf.cmd    |  10 +-
 src/test/cfg2cmd/simple1.conf.cmd             |   6 +-
 27 files changed, 229 insertions(+), 196 deletions(-)

-- 
2.39.5




More information about the pve-devel mailing list