mbox series

[v2,0/3] qapi/machine: Make @dump-skeys command generic

Message ID 20250310133118.3881-1-philmd@linaro.org
Headers show
Series qapi/machine: Make @dump-skeys command generic | expand

Message

Philippe Mathieu-Daudé March 10, 2025, 1:31 p.m. UTC
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 generic SysemuCPUOps::qmp_dump_skeys() callback
(only implemented on s390x). No HMP change.

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

[*] https://lore.kernel.org/qemu-devel/20240530074544.25444-1-philmd@linaro.org/

Philippe Mathieu-Daudé (3):
  hw/s390x: Expose s390_qmp_dump_skeys() prototype
  cpus: Introduce SysemuCPUOps::qmp_dump_skeys() callback
  qapi/machine: Make @dump-skeys command generic

 qapi/machine.json                | 18 ++++++++++++++++++
 qapi/misc-target.json            | 19 -------------------
 include/hw/core/sysemu-cpu-ops.h |  6 ++++++
 include/hw/s390x/storage-keys.h  |  1 +
 hw/core/machine-qmp-cmds.c       | 13 +++++++++++++
 hw/s390x/s390-skeys.c            |  3 ++-
 target/s390x/cpu-system.c        |  2 ++
 7 files changed, 42 insertions(+), 20 deletions(-)