public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests
@ 2017-09-19 14:50 David Hildenbrand
  2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 1/5] s390x: add a test case for the ipm + spm instructions David Hildenbrand
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: David Hildenbrand @ 2017-09-19 14:50 UTC (permalink / raw)
  To: kvm
  Cc: Paolo Bonzini, Radim Krčmář, david, Thomas Huth,
	Cornelia Huck, Christian Borntraeger

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

-- 
2.13.5

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

end of thread, other threads:[~2017-09-20  7:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19 14:50 [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 1/5] s390x: add a test case for the ipm + spm instructions David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 2/5] s390x: add cpacf.h from Linux David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 3/5] s390x: make sure cpacf.h can be used David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 4/5] s390x: query and store STFL(E) facilitites David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 5/5] s390x: test for various MSA instructions David Hildenbrand
2017-09-20  7:25 ` [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox