From patchwork Fri Feb 22 08:11:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 1046639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 445PKQ2krmz9s9T for ; Fri, 22 Feb 2019 19:15:22 +1100 (AEDT) Received: from localhost ([127.0.0.1]:46381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx5zM-0006Fs-0M for incoming@patchwork.ozlabs.org; Fri, 22 Feb 2019 03:15:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx5wA-0004Ao-Jm for qemu-devel@nongnu.org; Fri, 22 Feb 2019 03:12:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gx5w9-0006s4-Kn for qemu-devel@nongnu.org; Fri, 22 Feb 2019 03:12:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17055) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gx5w9-0006pv-BY; Fri, 22 Feb 2019 03:12:01 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B51EA309708B; Fri, 22 Feb 2019 08:11:58 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-150.ams2.redhat.com [10.36.117.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 931AC1001947; Fri, 22 Feb 2019 08:11:54 +0000 (UTC) From: David Hildenbrand To: qemu-devel@nongnu.org Date: Fri, 22 Feb 2019 09:11:50 +0100 Message-Id: <20190222081153.14206-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 22 Feb 2019 08:11:58 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v1 0/3] s390x: SIGP + IRQ preparations for TCG vector register support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Janosch Frank , David Hildenbrand , Cornelia Huck , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" These are minor preparations for vector instruction support for TCG, also touching KVM code. During SIGP STORE ADDITIONAL STATUS we have to properly convert the endianess. On machine checks, we have to also store the vector registers into the extended save area. Both changes are not used by TCG code before we implement + enable vector instructions. KVM code shares the SIGP STORE ADDITIONAL STATUS implementation. Note: Vector registers (128 bit) are modeled as two 64 bit values. Low and high 64 bit values correspond on big/little systems, however the values themself need conversion. Documentation for that will be added along with the actual vector instruction support. David Hildenbrand (3): s390x: Use cpu_to_be64 in SIGP STORE ADDITIONAL STATUS s390x: use a QEMU-style typedef + name for SIGP save area struct s390x/tcg: Save vregs to extended mchk save area target/s390x/excp_helper.c | 46 ++++++++++++++++++++++++++++++++++++-- target/s390x/helper.c | 39 ++++++++++++++++++++------------ target/s390x/internal.h | 4 +++- 3 files changed, 72 insertions(+), 17 deletions(-)