Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:11124 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbgHLJ1U (ORCPT ); Wed, 12 Aug 2020 05:27:20 -0400 From: Marc Hartmayer Subject: [kvm-unit-tests RFC v2 0/4] s390x: Add Protected VM support Date: Wed, 12 Aug 2020 11:27:01 +0200 Message-Id: <20200812092705.17774-1-mhartmay@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-s390-owner@vger.kernel.org List-ID: To: kvm@vger.kernel.org Cc: Thomas Huth , David Hildenbrand , Janosch Frank , Cornelia Huck , Andrew Jones , Paolo Bonzini , Christian Borntraeger , linux-s390@vger.kernel.org Add support for Protected Virtual Machine (PVM) tests. For starting a PVM guest we must be able to generate a PVM image by using the `genprotimg` tool from the s390-tools collection. This requires the ability to pass a machine-specific host-key document, so the option `--host-key-document` is added to the configure script. Sorry it took so long to send the second version :/ For everybody's convenience there is a branch: https://gitlab.com/mhartmay/kvm-unit-tests/-/tree/test_alternative Changelog: RFC v1 -> RFC v2: + Remove `pv_support` option (Janosch, David) + Add some preliminary patches: - move "testname guard" - add support for architecture dependent functions + Add support for specifying a parmline file for the PV image generation. This is necessary for the `selftest` because the kernel cmdline set on the QEMU command line is ignored for PV guests Marc Hartmayer (4): common.bash: run `cmd` only if a test case was found scripts: add support for architecture dependent functions run_tests/mkstandalone: add arch dependent function to `for_each_unittest` s390x: add Protected VM support README.md | 3 ++- configure | 8 ++++++++ run_tests.sh | 5 +---- s390x/Makefile | 17 +++++++++++++++-- s390x/selftest.parmfile | 1 + s390x/unittests.cfg | 1 + scripts/common.bash | 26 ++++++++++++++++++++++++-- scripts/mkstandalone.sh | 6 +----- scripts/s390x/func.bash | 18 ++++++++++++++++++ 9 files changed, 71 insertions(+), 14 deletions(-) create mode 100644 s390x/selftest.parmfile create mode 100644 scripts/s390x/func.bash -- 2.25.4