Skip to content

s390x: IPM/SPM and MSA tests

David Hildenbrand kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5s390x: add a test case for the ipm + spm instructionss390x/Makefile s390x/emulator.c s390x/unittests.cfg+69 -00 replies
2/5s390x: add cpacf.h from Linuxlib/s390x/asm/cpacf.h+472 -00 replies
3/5s390x: make sure cpacf.h can be usedlib/s390x/asm/cpacf.h+1 -10 replies
4/5s390x: query and store STFL(E) facilititeslib/s390x/asm/facility.h lib/s390x/io.c+51 -00 replies
5/5s390x: test for various MSA instructionss390x/emulator.c+227 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests

Developed while working on:
https://lists.gnu.org/archive/html/qemu-devel/2017-09/msg05133.html

Only the basics for MSA instructions are tested (basically everything QEMU also implements), but no real en/decryption.

All tests seem to pass under KVM.

For TCG, only the usual low address protection tests fail. To run under TCG, the feature have to be enabled explicitly for now:

./s390x-run s390x/emulator.elf \
     -cpu qemu,msa-base=on,msa3-base=on,msa4-base=on,msa5-base=on,stfle=on

David Hildenbrand (5):
s390x: add a test case for the ipm + spm instructions
s390x: add cpacf.h from Linux
s390x: make sure cpacf.h can be used
s390x: query and store STFL(E) facilitites
s390x: test for various MSA instructions

 lib/s390x/asm/cpacf.h    | 472 +++++++++++++++++++++++++++++++++++++++++++++++
 lib/s390x/asm/facility.h |  48 +++++
 lib/s390x/io.c           |   3 +
 s390x/Makefile           |   1 +
 s390x/emulator.c         | 292 +++++++++++++++++++++++++++++
 s390x/unittests.cfg      |   3 +
 6 files changed, 819 insertions(+)
 create mode 100644 lib/s390x/asm/cpacf.h
 create mode 100644 lib/s390x/asm/facility.h
 create mode 100644 s390x/emulator.c
Signature · 1 line
2.13.5