From patchwork Wed Aug 12 09:27:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Hartmayer X-Patchwork-Id: 11710525 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C4712722 for ; Wed, 12 Aug 2020 09:27:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ABA7F2087C for ; Wed, 12 Aug 2020 09:27:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="qtj/ccKb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727898AbgHLJ1U (ORCPT ); Wed, 12 Aug 2020 05:27:20 -0400 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 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07C92vOC018455; Wed, 12 Aug 2020 05:27:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=+gTdxR6U0oFG7t/4d1maDhtNhplafuqA41t3kWJWwc0=; b=qtj/ccKbF3lukVNEVvP0RiqFsGhx9LpsvuxpuN1J6nTDDH/yU3OcURLYin1VyNb9dhy/ q7vHkN+u8HzT3IsJFaiQR7WH+IbLGQczr47gXlIcTw7FbOL0DuUXbIczHCqA3cRS2Sk1 OpcfDvd3NOsMDolACvAh64flOCKG0CbYAfnw3Djz7JyxSJS7wHELxszsGg1FnhkpBE2A tM3+gZjkKrUbd19U9YRqjSNZPU5gfc19WPfE+o4KqRXsad9/kG1ZgSK3jsQ0pkRIeq9N wzkEuqQhWNwtpc2J5ttkVJ+zOlF/rRUjiW8m/cs2QECV0trZR0TofWPLwnAqrYz+xMG4 bQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 32uytmnk1w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Aug 2020 05:27:19 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 07C93scV022544; Wed, 12 Aug 2020 05:27:19 -0400 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 32uytmnk13-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Aug 2020 05:27:19 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 07C9Kq94022264; Wed, 12 Aug 2020 09:27:16 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03fra.de.ibm.com with ESMTP id 32skp82m0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Aug 2020 09:27:16 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 07C9RDPX18743664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Aug 2020 09:27:13 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AAFB75206B; Wed, 12 Aug 2020 09:27:13 +0000 (GMT) Received: from marcibm.ibmuc.com (unknown [9.145.75.196]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4BDCE52059; Wed, 12 Aug 2020 09:27:13 +0000 (GMT) From: Marc Hartmayer To: Cc: Thomas Huth , David Hildenbrand , Janosch Frank , Cornelia Huck , Andrew Jones , Paolo Bonzini , Christian Borntraeger , linux-s390@vger.kernel.org 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> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-12_02:2020-08-11,2020-08-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 phishscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1011 malwarescore=0 priorityscore=1501 bulkscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008120064 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@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