Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4786340pxb; Sat, 12 Feb 2022 19:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBqXcXN9wy5XKttqvdumpOcr8FnMnCiLup/ON+s2umozxLIsbnJ10IvBr323tRPbQS2wu6 X-Received: by 2002:aa7:88c5:: with SMTP id k5mr8534492pff.35.1644722386742; Sat, 12 Feb 2022 19:19:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644722386; cv=none; d=google.com; s=arc-20160816; b=omRY+sgghK8kDvti4Ju1GFgxiEVeywA3QvKy4jankFwyOzSzNeZWu7Z+lzKauO5SUZ VDyUfSwr/GEcxP/oLdTykfRT1+k3kyFi8NQ4DtL1Apac1Vz+iwBP9CgEhsDSQ/cxU58R CX1yRI8LUopDNX17CpkMuS/0IRce01YonLJytc/m7pr9OF4k0Cx05se8eiKnjKMdMzT6 0rCRyeXWxqoZdHREYcqHYcLWeIQXiE2Rc44ot9gcxv6ts4WO7AD1nJQHrdmP730WlgQS KAupUeaBfhVMJE8MsEFJR5uMysDqjxU4wTq6AR3wlX9/ZpawACBSFG1uDyF+A572Lc2r bAcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N6mXra5Ie4+ZeBnaR8payp93zxPRlR66EUeezDLCiSs=; b=Ez3YqczoSYAlsG0OWztbXkVZ0VEnlWM7GcQOjpxMVrOrJS8KL4y4oV+TaYDWlDu/R9 olTcKn9lXkQXSPd10JLO7oyGwVkAlLVxFhZ0cYC9JITVDOKhe3tHpiY6a3FxNSQTylVW nrv7jl0LpteZNPcd0ZZYVCG7x/LJDChPKMlYpspUCmbL3LlcSmf4sXMrIDWxc6ep3wZu FnmwPcGZKKxiukYX7wKM2waR4vdE+serlAVb93GrieeBi5lssDZcWrVe8CNa4p3iovCt Y7KI5ZHkHjYg1vUX6Haq6uitLSf8eR6GpHrTLSHq00ntmpMVjQSmcBLnYKF0qZDQmNli BiaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sBXy5waD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13si9076972pln.344.2022.02.12.19.19.25; Sat, 12 Feb 2022 19:19:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sBXy5waD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352093AbiBKSWv (ORCPT + 93 others); Fri, 11 Feb 2022 13:22:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352584AbiBKSW3 (ORCPT ); Fri, 11 Feb 2022 13:22:29 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B971DCD3; Fri, 11 Feb 2022 10:22:27 -0800 (PST) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21BGsvZv010648; Fri, 11 Feb 2022 18:22:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=N6mXra5Ie4+ZeBnaR8payp93zxPRlR66EUeezDLCiSs=; b=sBXy5waDnVJRQeiUn+Bu8DJ20pXO/YLlUnBhqpWJtx8oLLFSEEtAY8u+sGonRkiaRCEb lue/WWKa1XYX+ve7gWV7d2zx3A4tSzI3Hxgi5INU17S2PHl8J5ZJui2iLKFIORUpAkBX /CzeoP+nr7e+n3gzwCj+HGRvCsckMcz6LlrcGXLBHwP8f0wJ8q2dOKd1dn2SM03j7u/1 PWmi3pDUQscwYslBg3K8+6sU7Zu3qyZbvYwKz/R6gug3hjlliEJn+T7VJO3RPxQ+RXBY agv++XbMB2Ag3pmYCLMMOjoD3dJf8lc/KcXfxjGrkO6NWYR89rATK/xOHaCG7tZO+VVD Bg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e5sk5n5na-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Feb 2022 18:22:27 +0000 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 21BIHm4f027653; Fri, 11 Feb 2022 18:22:26 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e5sk5n5mp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Feb 2022 18:22:26 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21BICAMf028899; Fri, 11 Feb 2022 18:22:24 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma06ams.nl.ibm.com with ESMTP id 3e1ggkv5s4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Feb 2022 18:22:24 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21BIMLg234144614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Feb 2022 18:22:21 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D1895204E; Fri, 11 Feb 2022 18:22:21 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 8E9AD52057; Fri, 11 Feb 2022 18:22:20 +0000 (GMT) From: Janis Schoetterl-Glausch To: Christian Borntraeger , Heiko Carstens , Janosch Frank Cc: Janis Schoetterl-Glausch , Alexander Gordeev , Claudio Imbrenda , David Hildenbrand , Jonathan Corbet , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Paolo Bonzini , Sven Schnelle , Vasily Gorbik Subject: [PATCH v4 08/10] KVM: s390: Add capability for storage key extension of MEM_OP IOCTL Date: Fri, 11 Feb 2022 19:22:13 +0100 Message-Id: <20220211182215.2730017-9-scgl@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220211182215.2730017-1-scgl@linux.ibm.com> References: <20220211182215.2730017-1-scgl@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: M5FY2t2cYJMoF7H3HIXVaxpG_8iuPtdU X-Proofpoint-GUID: 38QdVAVT4jJW02NM1mfQhijb_PPaCDCd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-11_05,2022-02-11_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxscore=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202110098 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Availability of the KVM_CAP_S390_MEM_OP_EXTENSION capability signals that: * The vcpu MEM_OP IOCTL supports storage key checking. * The vm MEM_OP IOCTL exists. Signed-off-by: Janis Schoetterl-Glausch Reviewed-by: Janosch Frank --- arch/s390/kvm/kvm-s390.c | 1 + include/uapi/linux/kvm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 773bccdd446c..c2c26c2aad64 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -564,6 +564,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_S390_VCPU_RESETS: case KVM_CAP_SET_GUEST_DEBUG: case KVM_CAP_S390_DIAG318: + case KVM_CAP_S390_MEM_OP_EXTENSION: r = 1; break; case KVM_CAP_SET_GUEST_DEBUG2: diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 4bc7623def87..08756eeea065 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1140,6 +1140,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_VM_GPA_BITS 207 #define KVM_CAP_XSAVE2 208 #define KVM_CAP_SYS_ATTRIBUTES 209 +#define KVM_CAP_S390_MEM_OP_EXTENSION 210 #ifdef KVM_CAP_IRQ_ROUTING -- 2.32.0