Skip to content

qom: add test tools (resend from "qom: dynamic properties")

Michael Roth qemu-devel 2 versions Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 0 repliesSuperseded

CHANGES SINCE V2 from the cover letter

- this one actually works :) QMP_SOCKET env variable wasn't being handled properly in the last version.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2qmp: make qmp.py easier to useQMP/qmp.py+6 -00 replies
2/2qom: add test toolsQMP/qom-get QMP/qom-list QMP/qom-set+195 -01 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAndreas Färber
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] qom: add test tools (resend from "qom: dynamic properties")

CHANGES SINCE V2:
- this one actually works :) QMP_SOCKET env variable wasn't being handled properly in the last version.

AFAICT the qom tool got dropped from Anthony's "qom: dynamic properties and composition tree" series due to some hardcoded paths for the QMP socket.

I've since ended up adding support for user-specified paths to get them working in my environment so I figured I'd resend to the list since I've seen others express interest.

Only functional change for existing users would be the need to set your QMP_SOCKET env variable to the previous default (/tmp/server.sock):

mdroth@illuin:~$ qom-set -h
environment variables:
    QMP_SOCKET=<path | addr:port>
usage:
    /home/mdroth/bin/qom-set [-h] [-s <QMP socket path | addr:port>] <path>.<property> <value>
mdroth@illuin:~$ qom-get -h
environment variables:
    QMP_SOCKET=<path | addr:port>
usage:
    /home/mdroth/bin/qom-get [-h] [-s <QMP socket path | addr:port>] <path>.<property>
mdroth@illuin:~$ qom-list -h
environment variables:
    QMP_SOCKET=<path | addr:port>
usage:
    /home/mdroth/bin/qom-list [-h] [-s <QMP socket path | addr:port>] [<path>]

mdroth@illuin:~$