All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] s390x: dump: Add PV dump support
@ 2022-03-10 11:25 Janosch Frank
  2022-03-10 11:25 ` [PATCH 1/5] linux header sync Janosch Frank
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Janosch Frank @ 2022-03-10 11:25 UTC (permalink / raw)
  To: qemu-devel
  Cc: thuth, borntraeger, cohuck, pasic, qemu-s390x, mhartmay,
	pbonzini, marcandre.lureau, imbrenda

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/20220310110854.2701-1-frankja@linux.ibm.com/T/#t
https://lore.kernel.org/qemu-devel/20220310111608.3362-2-frankja@linux.ibm.com/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(-)

-- 
2.32.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-05-24 12:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 11:25 [PATCH 0/5] s390x: dump: Add PV dump support Janosch Frank
2022-03-10 11:25 ` [PATCH 1/5] linux header sync Janosch Frank
2022-03-10 11:25 ` [PATCH 2/5] s390x: Add protected dump cap Janosch Frank
2022-03-10 11:25 ` [PATCH 3/5] s390x: Introduce PV query interface Janosch Frank
2022-03-10 11:25 ` [PATCH 4/5] s390x: Add KVM PV dump interface Janosch Frank
2022-05-24 12:01   ` Thomas Huth
2022-03-10 11:25 ` [PATCH 5/5] s390x: pv: Add dump support Janosch Frank
2022-03-12 14:52   ` Richard Henderson
2022-03-14 10:15     ` Janosch Frank

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.