Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1577108yba; Tue, 2 Apr 2019 11:30:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPIwCDvlEWuMQmRALtgVKy6/FqAleUH4imhl2wTyJtCtug5d/I3lLySb/pGREMpJnrPXEO X-Received: by 2002:a65:6283:: with SMTP id f3mr68451321pgv.125.1554229802445; Tue, 02 Apr 2019 11:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554229802; cv=none; d=google.com; s=arc-20160816; b=lFymZVEMt4IurG3zsXpcZlrQ52Yzhrf6s+LvBJUkMIon5UU/PSaekHnruocmzhDpAi mPi8Iaz79V+TnI5AYEMLL67REb1QgM5jO4XjXP20cz6Fzsx7tveNB+AaXJ6kHlqDfjDI VbHRMcsC/f1h+MG/52s8sADzYK7fL9t82bqc7lt7bIcUPMqirtm/XvZlyX8lJzKd2v1U UtBupMHa128p5IoIHeWfhmpAMlvhRGAVnTHTAT9RVtM1CJzJyFfDx04L35Ye7cgmmw9s Eg+S64WSUjH9war1itJmhPwyJY3NkE+zPrZcj/Nl/JBYYU8VeQAGvdAGI9YV2a4xWJku 20gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from; bh=BchUtFlM3UxI+Ih8XrdUBEmO140vEWzcvvQ/FQows5s=; b=f9gnikB7++5wyo5HGcW6TqDJ1z7EVdFzyeBFiY2AmbBs7jvO/oIRMXh5+6wDydelK8 5AJJQ4U/oDMX5is0wNwVYAVlPO1etx9Tqfa8maYr6el5K25dEGUVhxbmCuMxlPToOWx4 ZB24WZarK4s+jkcr8ycdllhfDPietxKdJNqwBemfqD6pf4/Tr/zYnLxvLiJi3Izivuq0 U19M79bhg5axfZdFxYeN7HCz7lyGfF93a+2a3b3kkq9WF0vGG8Ub/116LE95+3R6rDB5 B9/Wlqxmfj4NaA8xx4x8SSZLh4HyHJkjApLLyGw5xO7Q5K6Np/KtGk/C8I6Q2JUZLy84 dPiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si11429497pgi.61.2019.04.02.11.29.47; Tue, 02 Apr 2019 11:30:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731826AbfDBRrE (ORCPT + 99 others); Tue, 2 Apr 2019 13:47:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39826 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730256AbfDBRrD (ORCPT ); Tue, 2 Apr 2019 13:47:03 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x32HiKwX132437 for ; Tue, 2 Apr 2019 13:47:02 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rmc12s9aj-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 02 Apr 2019 13:47:01 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 2 Apr 2019 18:47:00 +0100 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 2 Apr 2019 18:46:57 +0100 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x32HktAe12910602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Apr 2019 17:46:55 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5FC7C112062; Tue, 2 Apr 2019 17:46:55 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5078A112061; Tue, 2 Apr 2019 17:46:55 +0000 (GMT) Received: from T470p.pok.ibm.com (unknown [9.56.58.47]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 2 Apr 2019 17:46:55 +0000 (GMT) From: Collin Walling To: pbonzini@redhat.com, david@redhat.com, cohuck@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, borntraeger@de.ibm.com, frankja@linux.ibm.com Subject: [PATCH v3 0/2] Use DIAG318 to set Control Program Name & Version Codes Date: Tue, 2 Apr 2019 13:46:34 -0400 X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19040217-0072-0000-0000-000004148296 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010862; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000284; SDB=6.01183350; UDB=6.00619517; IPR=6.00964098; MB=3.00026263; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-02 17:46:59 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19040217-0073-0000-0000-00004BAFF3D5 Message-Id: <20190402174636.15175-1-walling@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-02_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=875 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904020118 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog: v3 - kernel patch for diag 0x318 instruction call fixup - this is to support QEMU changes found here: https://lists.gnu.org/archive/html/qemu-devel/2019-04/msg00328.html - removed CPU model code - cleaned up diag318_info struct - cpnc is no longer unshadowed as it was not needed - rebased on 5.1.0-rc3 This instruction call is executed once-and-only-once during Kernel setup. The availability of this instruction depends on Read SCP Info byte 134, bit 0. Diagnose318's functionality is also emulated by KVM, which means we can enable this feature for a guest even if the host kernel cannot support it. The CPNC and CPVC are used for problem diagnosis and allows IBM to identify control program information by answering the following question: "What environment is this guest running in?" (CPNC) "What are more details regarding the OS?" (CPVC) In the future, we will implement the Control Program Version Code (CPVC) to convey more information about the OS. For now, we set this field to 0 until we come up with a solid plan. Collin Walling (2): s390/setup: diag318: remove bit check and refactor struct s390/kvm: diagnose 318 handling Documentation/virtual/kvm/devices/vm.txt | 14 ++++ arch/s390/include/asm/diag.h | 6 +- arch/s390/include/asm/kvm_host.h | 7 +- arch/s390/include/uapi/asm/kvm.h | 4 ++ arch/s390/kernel/setup.c | 12 ++-- arch/s390/kvm/diag.c | 17 +++++ arch/s390/kvm/kvm-s390.c | 83 ++++++++++++++++++++++++ arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/vsie.c | 2 + 9 files changed, 134 insertions(+), 12 deletions(-) -- 2.20.1