From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58560 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231751AbhBINvb (ORCPT ); Tue, 9 Feb 2021 08:51:31 -0500 From: Janosch Frank Subject: [kvm-unit-tests PATCH 0/8] s390x: Cleanup exception register save/restore and implement backtrace Date: Tue, 9 Feb 2021 08:49:17 -0500 Message-Id: <20210209134925.22248-1-frankja@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-ID: To: kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, david@redhat.com, thuth@redhat.com, pmorel@linux.ibm.com, imbrenda@linux.ibm.com Having two sets of macros for saving and restoring registers on exceptions doesn't seem optimal to me. Therefore this patch set removes the old macros that use the lowcore as storage in favor of the stack using ones. At the same time we move over to generated offsets instead of subtracting from the stack piece by piece. Changes to the stack struct are easier that way. Additionally let's add backtrace support and print the GRs on exception so we get a bit more information when something goes wrong. Janosch Frank (8): s390x: Fix fpc store address in RESTORE_REGS_STACK s390x: Fully commit to stack save area for exceptions RFC: s390x: Define STACK_FRAME_INT_SIZE macro s390x: Introduce and use CALL_INT_HANDLER macro s390x: Provide preliminary backtrace support s390x: Print more information on program exceptions s390x: Move diag308_load_reset to stack saving s390x: Remove SAVE/RESTORE_stack lib/s390x/asm-offsets.c | 15 +++++-- lib/s390x/asm/arch_def.h | 29 ++++++++++--- lib/s390x/asm/interrupt.h | 4 +- lib/s390x/interrupt.c | 43 +++++++++++++++--- lib/s390x/stack.c | 20 ++++++--- s390x/Makefile | 1 + s390x/cpu.S | 6 ++- s390x/cstart64.S | 25 +++-------- s390x/macros.S | 91 +++++++++++++++++++-------------------- 9 files changed, 140 insertions(+), 94 deletions(-) -- 2.25.1