From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:26398 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437718AbfITIER (ORCPT ); Fri, 20 Sep 2019 04:04:17 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x8K7bxiF156691 for ; Fri, 20 Sep 2019 04:04:16 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2v4sh52buf-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 Sep 2019 04:04:16 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 20 Sep 2019 09:04:13 +0100 From: Janosch Frank Subject: [kvm-unit-tests PATCH v3 0/6] s390x: Add multiboot and smp Date: Fri, 20 Sep 2019 10:03:50 +0200 Message-Id: <20190920080356.1948-1-frankja@linux.ibm.com> Sender: linux-s390-owner@vger.kernel.org List-ID: To: kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, david@redhat.com, thuth@redhat.com Cross testing emulated instructions has in the past brought up some issues on all available IBM Z hypervisors. So let's upstream the last part of multiboot: sclp interrupts and line mode console. SMP tests are a great way to excercise external interruptions, cpu resets and sigp. The smp library is always initialized and provides very rudimentary CPU management for now. v3: * Simplified linemode buffering * Removed error constant use * Smaller fixes Janosch Frank (6): s390x: Use interrupts in SCLP and add locking s390x: Add linemode console s390x: Add linemode buffer to fix newline on every print s390x: Add initial smp code s390x: Prepare for external calls s390x: SMP test lib/s390x/asm/arch_def.h | 13 ++ lib/s390x/asm/interrupt.h | 5 + lib/s390x/asm/sigp.h | 28 +++- lib/s390x/interrupt.c | 27 +++- lib/s390x/io.c | 5 +- lib/s390x/sclp-console.c | 218 ++++++++++++++++++++++++++++--- lib/s390x/sclp.c | 55 +++++++- lib/s390x/sclp.h | 59 ++++++++- lib/s390x/smp.c | 263 ++++++++++++++++++++++++++++++++++++++ lib/s390x/smp.h | 51 ++++++++ s390x/Makefile | 2 + s390x/cstart64.S | 7 + s390x/smp.c | 242 +++++++++++++++++++++++++++++++++++ s390x/unittests.cfg | 4 + 14 files changed, 952 insertions(+), 27 deletions(-) create mode 100644 lib/s390x/smp.c create mode 100644 lib/s390x/smp.h create mode 100644 s390x/smp.c -- 2.17.2