From: David Hildenbrand Subject: [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests Date: Tue, 19 Sep 2017 16:50:28 +0200 Message-ID: <20170919145033.16959-1-david@redhat.com> Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , david@redhat.com, Thomas Huth , Cornelia Huck , Christian Borntraeger To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52022 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750892AbdISOui (ORCPT ); Tue, 19 Sep 2017 10:50:38 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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