From patchwork Wed Aug 29 15:47:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10580545 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 C7BEC180E for ; Wed, 29 Aug 2018 15:47:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6DCF2B276 for ; Wed, 29 Aug 2018 15:47:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA0A02B287; Wed, 29 Aug 2018 15:47: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 5EE642B276 for ; Wed, 29 Aug 2018 15:47:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729248AbeH2Tp1 (ORCPT ); Wed, 29 Aug 2018 15:45:27 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43468 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729046AbeH2Tp0 (ORCPT ); Wed, 29 Aug 2018 15:45:26 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5FBC87A81; Wed, 29 Aug 2018 15:47:53 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-206.ams2.redhat.com [10.36.116.206]) by smtp.corp.redhat.com (Postfix) with ESMTP id BFED9A9F21; Wed, 29 Aug 2018 15:47:50 +0000 (UTC) From: David Hildenbrand To: kvm@vger.kernel.org Cc: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= , Thomas Huth , Christian Borntraeger , Cornelia Huck , Janosch Frank , David Hildenbrand Subject: [kvm-unit-tests PATCH v2 0/5] s390x: simple DXC test Date: Wed, 29 Aug 2018 17:47:45 +0200 Message-Id: <20180829154750.12876-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 29 Aug 2018 15:47:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 29 Aug 2018 15:47:54 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The DXC was not handled by TCG correctly (and I have a patch series on the QEMU list, which fixes that). Add a simple test case that forces a DATA exception and verifies that the DXC (0xff) is written to the right locations. One time with and one time without AFP. While at it, I found one bug related to storing/saving floating point registers during interrupts and added one cleanup. Tested under KVM and under TCG. v1 -> v2: - Added "s390x: fix spelling of "initial"" - Minor style + spelling fixes David Hildenbrand (5): s390x: user ctl_set/clear_bit for low address protection s390x: fix storing/loading fregs to right address s390x: fix spelling of "initial" s390x: save/restore cr0 in IRQ handlers s390x: test if the DXC is correctly stored lib/s390x/asm-offsets.c | 1 + lib/s390x/asm/arch_def.h | 4 ++- lib/s390x/asm/float.h | 51 +++++++++++++++++++++++++++++++++++++++ lib/s390x/asm/interrupt.h | 12 ++------- s390x/cstart64.S | 19 ++++++++++----- s390x/emulator.c | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 17 deletions(-) create mode 100644 lib/s390x/asm/float.h