From patchwork Tue Dec 4 13:48:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janosch Frank X-Patchwork-Id: 10711785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E2EA414BD for ; Tue, 4 Dec 2018 13:49:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3FA22A692 for ; Tue, 4 Dec 2018 13:49:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6C73288F7; Tue, 4 Dec 2018 13:49:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7462C288F7 for ; Tue, 4 Dec 2018 13:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbeLDNtc (ORCPT ); Tue, 4 Dec 2018 08:49:32 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45320 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbeLDNtc (ORCPT ); Tue, 4 Dec 2018 08:49:32 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wB4Dn6M1049989 for ; Tue, 4 Dec 2018 08:49:31 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2p5swwjx79-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 04 Dec 2018 08:49:31 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 4 Dec 2018 13:49:27 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 4 Dec 2018 13:49:24 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wB4DnNch3867060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Dec 2018 13:49:23 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4DAB5AE055; Tue, 4 Dec 2018 13:49:23 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1ACE0AE04D; Tue, 4 Dec 2018 13:49:23 +0000 (GMT) Received: from s38lp20.lnxne.boe (unknown [9.152.224.44]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 4 Dec 2018 13:49:23 +0000 (GMT) From: Janosch Frank To: kvm@vger.kernel.org Cc: qemu-s390x@nongnu.org, david@redhat.com, thuth@redhat.com Subject: [kvm-unit-tests PATCH 0/5] s390x: Add cross hypervisor and disk boot Date: Tue, 4 Dec 2018 14:48:33 +0100 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18120413-0028-0000-0000-00000325DFFA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18120413-0029-0000-0000-000023E1E8D0 Message-Id: <20181204134838.5841-1-frankja@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-04_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=904 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812040117 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With these patches kvm unit tests are now bootable under LPAR and z/VM, as well as from KVM disks. Don't forget to convert the ELF files to binary via: objcopy -O binary s390x/test.elf test.bin For this to work we added: * Initial PSW in lowcore * Switch to 64 bit and z/Arch * SCLP linemode console This is an early version, linemode currently splits lines a bit too often and I still need to polish comments and cleanup code. Janosch Frank (5): s390x: Make tests bootable from disk s390x: Switch to z/Arch if needed s390x: Add BSS clearing for non ELF boot s390x: Use interrupts in SCLP and add line mode s390x: Fix sclp-ascii.c indents lib/s390x/asm/arch_def.h | 1 + lib/s390x/asm/interrupt.h | 2 + lib/s390x/interrupt.c | 12 ++- lib/s390x/io.c | 2 +- lib/s390x/sclp-ascii.c | 220 ++++++++++++++++++++++++++++++++++++++-------- lib/s390x/sclp.c | 42 +++++++++ lib/s390x/sclp.h | 71 ++++++++++++++- s390x/cstart64.S | 40 ++++++++- s390x/flat.lds | 10 ++- 9 files changed, 357 insertions(+), 43 deletions(-)