Skip to content

s390x: css: adapting the I/O tests for PV

Pierre Morel kvm linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390x: pv: implement routine to share/unshare memorylib/s390x/asm/uv.h+33 -00 replies
2/3s390: define UV compatible I/O allocationlib/s390x/malloc_io.c lib/s390x/malloc_io.h s390x/Makefile+68 -02 replies
3/3s390x: css: pv: css test adaptation for PVlib/s390x/css.h lib/s390x/css_lib.c s390x/css.c+33 -330 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/3] s390x: css: adapting the I/O tests for PV

To adapt the test for PV we need to share the I/O memory with the host.

To do so we:
- implement the share/unshare ultravisor code.
- implement dedicated allocation routine which make sure that
- the I/O memory is on dedicated pages
- the I/O memory is shared if the guest is run under PV
- replace the start_single_ccw() by ccw_alloc() and start the start_ccw1_chain() directly from the test function.
This allows to correctly free the I/O memory after the interruption.

Best regards,
Pierre

Pierre Morel (3):
s390x: pv: implement routine to share/unshare memory
s390: define UV compatible I/O allocation
s390x: css: pv: css test adaptation for PV

 lib/s390x/asm/uv.h    | 33 +++++++++++++++++++++++++++
 lib/s390x/css.h       |  3 +--
 lib/s390x/css_lib.c   | 28 +++++++----------------
 lib/s390x/malloc_io.c | 53 +++++++++++++++++++++++++++++++++++++++++++
 lib/s390x/malloc_io.h | 14 ++++++++++++
 s390x/Makefile        |  1 +
 s390x/css.c           | 35 +++++++++++++++++++---------
 7 files changed, 134 insertions(+), 33 deletions(-)
 create mode 100644 lib/s390x/malloc_io.c
 create mode 100644 lib/s390x/malloc_io.h
Signature · 1 line
2.25.1