Here's the second edition of the storage key migration patches. Changes from v1: - have the dump-skeys qmp command use qemu_fopen() and friends - handle failures of the skeys-obtaining commands by filling the stream with zeroes and setting an error flag
Would like to send a pull request soonish. Cornelia Huck (1): s390x: add 2.5 compat s390-ccw-virtio machine Jason J. Herne (7): s390x: Create QOM device for s390 storage keys s390x: Enable new s390-storage-keys device s390x: Dump storage keys qmp command s390x: Dump-skeys hmp support s390x: Info skeys sub-command s390x: Migrate guest storage keys (initial memory only) s390x: Disable storage key migration on old machine type MAINTAINERS | 1 + hmp-commands.hx | 18 ++ hw/s390x/Makefile.objs | 2 + hw/s390x/s390-skeys-kvm.c | 75 +++++++ hw/s390x/s390-skeys.c | 425 ++++++++++++++++++++++++++++++++++++++++ hw/s390x/s390-virtio-ccw.c | 39 +++- hw/s390x/s390-virtio.c | 11 +- hw/s390x/s390-virtio.h | 2 +- include/hw/s390x/storage-keys.h | 60 ++++++ monitor.c | 20 ++ qapi-schema.json | 13 ++ qmp-commands.hx | 25 +++ target-s390x/cpu.h | 2 - target-s390x/mem_helper.c | 46 ++++- target-s390x/mmu_helper.c | 28 ++- trace-events | 4 + 16 files changed, 745 insertions(+), 26 deletions(-) create mode 100644 hw/s390x/s390-skeys-kvm.c create mode 100644 hw/s390x/s390-skeys.c create mode 100644 include/hw/s390x/storage-keys.h -- 2.5.0