From patchwork Fri Jan 18 11:41:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janosch Frank X-Patchwork-Id: 10769797 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 4449B1390 for ; Fri, 18 Jan 2019 11:42:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3268D2D1D8 for ; Fri, 18 Jan 2019 11:42:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 267902E1F8; Fri, 18 Jan 2019 11:42:56 +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 648862D1D8 for ; Fri, 18 Jan 2019 11:42:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727280AbfARLmx (ORCPT ); Fri, 18 Jan 2019 06:42:53 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:32792 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbfARLmx (ORCPT ); Fri, 18 Jan 2019 06:42:53 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0IBdZ0M006712 for ; Fri, 18 Jan 2019 06:42:53 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q3ana8bcp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 18 Jan 2019 06:42:52 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Jan 2019 11:42:50 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 18 Jan 2019 11:42:47 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0IBgkJ738731860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Jan 2019 11:42:46 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29B714C046; Fri, 18 Jan 2019 11:42:46 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 87E574C040; Fri, 18 Jan 2019 11:42:45 +0000 (GMT) Received: from s38lp20.lnxne.boe (unknown [9.145.153.8]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 18 Jan 2019 11:42:45 +0000 (GMT) From: Janosch Frank To: kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, david@redhat.com, thuth@redhat.com Subject: [kvm-unit-tests PATCH v6 00/11] s390x: Add cross hypervisor and disk boot Date: Fri, 18 Jan 2019 12:41:53 +0100 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 19011811-4275-0000-0000-00000300ED0F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011811-4276-0000-0000-0000380F1506 Message-Id: <20190118114204.147868-1-frankja@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-18_05:,, 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901180088 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. For this to work we added: * Initial PSW in lowcore * Switch to 64 bit and z/Arch * SCLP linemode console * Binary generation in Makefile v6: * Added linemode sclp loop to print large strings * Fixed sclp read info locking * commit message fixups v5: * Cleaned up linemode * Minor fixups and squash of sclp int and lock patches * Removed time patches, added phys alloc setup v4: * Added sigp header file * Moved clearing to xgr instead of lm * Minor renames, comment additions v3: * Rebased on David's SCLP fixes * Added binary generation make command * Split up cleanup and sclp common movement * Fixed whitespace problems * Added more comments * Added linemode buffer to get rid of line splits v2: * Moved cleanup to the front and broadened patch * Split up SCLP patch into interrupt and linemode * Removed unneeded instructions * Improved comments and commit messages Janosch Frank (11): s390x: Add Sigp header file s390x: Rename and cleanup sclp-ascii.c s390x: Make tests bootable from disk s390x: Switch to z/Arch and enable 64 bit addressing mode s390x: Add BSS clearing for non ELF boot s390x: Move common sclp data and functions to sclp.c s390x: Use interrupts in SCLP and add locking s390x: Add linemode console s390x: Add linemode buffer to fix newline on every print s390x: Add binary generation to makefile s390x: Initialize the physical allocator on mem init lib/s390x/asm/arch_def.h | 1 + lib/s390x/asm/interrupt.h | 2 + lib/s390x/asm/sigp.h | 60 +++++++++++ lib/s390x/interrupt.c | 12 ++- lib/s390x/io.c | 13 +-- lib/s390x/sclp-ascii.c | 68 ------------ lib/s390x/sclp-console.c | 260 ++++++++++++++++++++++++++++++++++++++++++++++ lib/s390x/sclp.c | 83 ++++++++++++++- lib/s390x/sclp.h | 62 ++++++++++- s390x/Makefile | 13 ++- s390x/cstart64.S | 41 +++++++- s390x/flat.lds | 15 ++- 12 files changed, 536 insertions(+), 94 deletions(-) create mode 100644 lib/s390x/asm/sigp.h delete mode 100644 lib/s390x/sclp-ascii.c create mode 100644 lib/s390x/sclp-console.c