All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: kvm@vger.kernel.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	david@redhat.com, "Thomas Huth" <thuth@redhat.com>,
	"Cornelia Huck" <cohuck@redhat.com>,
	"Christian Borntraeger" <borntraeger@de.ibm.com>
Subject: [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests
Date: Tue, 19 Sep 2017 16:50:28 +0200	[thread overview]
Message-ID: <20170919145033.16959-1-david@redhat.com> (raw)

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

             reply	other threads:[~2017-09-19 14:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19 14:50 David Hildenbrand [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170919145033.16959-1-david@redhat.com \
    --to=david@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.