Skip to content

s390x: dump: Add PV dump support

Janosch Frank qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5linux header synclinux-headers/linux/kvm.h+55 -00 replies
2/5s390x: Add protected dump captarget/s390x/kvm/kvm.c target/s390x/kvm/kvm_s390x.h+8 -00 replies
3/5s390x: Introduce PV query interfacehw/s390x/pv.c hw/s390x/s390-virtio-ccw.c include/hw/s390x/pv.h+76 -00 replies
4/5s390x: Add KVM PV dump interfacehw/s390x/pv.c include/hw/s390x/pv.h+60 -01 reply
5/5s390x: pv: Add dump supportdump/dump.c include/elf.h include/sysemu/dump.h +1 more+244 -582 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] s390x: dump: Add PV dump support

This is the qemu part of the PV dump support where we take the data that the KVM PV dump API gives us and put it into the ELF file for later processing.

The encrypted PV cpu state is added as an additional note like the other architecture registers.

The storage state and completion data however are put into their own sections. The storage state data provides one part of the puzzle needed to decrypt the memory and the completion data contains the other part as well as a key derivation seed for the encrypted cpu data.

Based on:
https://lore.kernel.org/qemu-devel/[email protected]/T/#t
https://lore.kernel.org/qemu-devel/[email protected]/T/#t

Personal notes:
I still need to improve error management which will mean that the ioctl functions in hw/s390x/pv.c will need to be changed to return the rc/rrc.

Janosch Frank (5):
linux header sync
s390x: Add protected dump cap
s390x: Introduce PV query interface
s390x: Add KVM PV dump interface
s390x: pv: Add dump support

 dump/dump.c                  |  27 ----
 hw/s390x/pv.c                | 113 ++++++++++++++++
 hw/s390x/s390-virtio-ccw.c   |   5 +
 include/elf.h                |   1 +
 include/hw/s390x/pv.h        |  18 +++
 include/sysemu/dump.h        |  27 ++++
 linux-headers/linux/kvm.h    |  55 ++++++++
 target/s390x/arch_dump.c     | 247 ++++++++++++++++++++++++++++++-----
 target/s390x/kvm/kvm.c       |   7 +
 target/s390x/kvm/kvm_s390x.h |   1 +
 10 files changed, 443 insertions(+), 58 deletions(-)
Signature · 1 line
2.32.0