From patchwork Mon Dec 17 13:38:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10733487 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 1C91713AD for ; Mon, 17 Dec 2018 13:38:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D77B297E4 for ; Mon, 17 Dec 2018 13:38:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 015BE297F0; Mon, 17 Dec 2018 13:38:58 +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 AE551297E4 for ; Mon, 17 Dec 2018 13:38:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726882AbeLQNi5 (ORCPT ); Mon, 17 Dec 2018 08:38:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49464 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeLQNi5 (ORCPT ); Mon, 17 Dec 2018 08:38:57 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5815C78E4; Mon, 17 Dec 2018 13:38:56 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14853272B8; Mon, 17 Dec 2018 13:38:54 +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 v3 PATCH 0/2] s390x: try !FORCE SCLP read SCP info if FORCED is unknown Date: Mon, 17 Dec 2018 14:38:52 +0100 Message-Id: <20181217133854.19752-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 17 Dec 2018 13:38:57 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Try to mimic what the Linux kernel does when trying to read the SCP info via SCLP. See patch #2 for details. v2 -> v3: - Move cleanups to separate patch - Don't touch unrelated code, Janosch will clean these up - Don't set SCLP_CM2_VARIABLE_LENGTH_RESPONSE David Hildenbrand (2): s390x: cleanup and add SCLP defines s390x: try !FORCE SCLP read SCP info if FORCED is unknown lib/s390x/sclp.c | 23 +++++++++++++++++++++-- lib/s390x/sclp.h | 13 +++++++++---- 2 files changed, 30 insertions(+), 6 deletions(-)