Skip to content

qapi/machine: Make @dump-skeys command generic

Philippe Mathieu-Daudé qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 7 repliesIn review
  2. v23 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Use machine interface (Daniel)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/s390x/skeys: Declare QOM types using DEFINE_TYPES() macrohw/s390x/s390-skeys.c+17 -222 replies
2/4hw/s390x/skeys: Introduce TYPE_DUMP_SKEYS_INTERFACEhw/s390x/s390-skeys.c include/hw/s390x/storage-keys.h+20 -02 replies
3/4hw/s390x/ccw: Have CCW machine implement a qmp_dump_skeys() callbackhw/s390x/s390-skeys.c hw/s390x/s390-virtio-ccw.c include/hw/s390x/storage-keys.h+10 -12 replies
4/4qapi/machine: Make @dump-skeys command generichw/core/machine-qmp-cmds.c hw/s390x/s390-skeys.c qapi/machine.json +1 more+33 -241 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchThomas HuthEric Farman
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/4] qapi/machine: Make @dump-skeys command generic

We are trying to unify all qemu-system-FOO to a single binary. In order to do that we need to remove QAPI target specific code.

Introduce the TYPE_DUMP_SKEYS_INTERFACE type which provide the qmp_dump_skeys() callback, have it implemented on the CCW machine. Machines not supporting this interface report a QMP GenericError. No HMP change.

Since v2:
- Use machine interface (Daniel)

Since v1 [*]:
- No QMP rename / deprecation

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (4):
hw/s390x/skeys: Declare QOM types using DEFINE_TYPES() macro hw/s390x/skeys: Introduce TYPE_DUMP_SKEYS_INTERFACE hw/s390x/ccw: Have CCW machine implement a qmp_dump_skeys() callback qapi/machine: Make @dump-skeys command generic

 qapi/machine.json               | 18 +++++++++++++
 qapi/misc-target.json           | 19 -------------
 include/hw/s390x/storage-keys.h | 16 +++++++++++
 hw/core/machine-qmp-cmds.c      | 14 ++++++++++
 hw/s390x/s390-skeys.c           | 47 +++++++++++++++++----------------
 hw/s390x/s390-virtio-ccw.c      |  3 +++
 6 files changed, 75 insertions(+), 42 deletions(-)
Signature · 1 line
2.47.1