Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5869963pxb; Mon, 14 Feb 2022 09:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpMQ+7jkung9RYes4rkCvzNzyTuUMOSwQ+VWtbZZt63jJ77dKvhAQWQj/+vtWFEUHGYw+F X-Received: by 2002:a63:950b:: with SMTP id p11mr19402pgd.365.1644859540605; Mon, 14 Feb 2022 09:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644859540; cv=none; d=google.com; s=arc-20160816; b=SWLm8iWNCx80g776Yu8/HO+fR5smLogcxKU32Z7NrlxARHlpo3T+3EHusQHqZqua63 ERoH9fp+Iy3voZ8Cp0kKQtJljXia7V5xUxcPRD1mqxKfSVMD8XXTcVn7RqsRNfAHyXsA nF1BIjXVI6JFQ+aYQZ5dZLk8aM/tR4x6uMI3uYHw4MLiYfaahz1jUVwQb2qZRcPOWP9p ZYmfldFtTFvrZU2GJESEkWIOS1DA/N7D66RQEzVyU8AjD8mulBynWpZ1jQwYQs4sW5iL YxcTF1ouiTdCZts0vrPQjrtiYniCG/5yTVLp+6zqpZaKBkv0DF5QYgWsEYT5p8y9PuwV +M8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=542JyrrlYASj0FwWw5x3m6JHNYhpRl4FEwUfuX2UgTk=; b=kZVfYQSmQ7GTCglFFV594/zFj7K+9MWz4lTeFULI3KrBYDWUzkqG/0rwubHx5sYY6/ ajm5LvQI1IDVKK7nh8Tb1hixzhTkoExyIRswjKRZT0bQadS34fIaTFt2nd6WjLDKTN7E Vo94V5cr0eX8otQsUjzD1vCiCZLtUl6mShTNCnwnkIyEmGuzdPJZ7M2eBJebtWAdddzz OqUVtEtpA4LCeQLdDTmwviTc/bjuSoL99M4eXs3ylHqkNlbD4oBjIyE3tWvpkCrFS1oo rcnnw74TVBvGz2h8JuICyf4n8JVOTDbL7CFLx3EulTEEV+HP8QUNvmhxQ/+wL7ckfuI8 IpmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eBG68axv; 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 ls13si12416709pjb.140.2022.02.14.09.25.22; Mon, 14 Feb 2022 09:25:40 -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=eBG68axv; 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 S1355131AbiBNO3e (ORCPT + 99 others); Mon, 14 Feb 2022 09:29:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbiBNO3d (ORCPT ); Mon, 14 Feb 2022 09:29:33 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F80E46668; Mon, 14 Feb 2022 06:29:25 -0800 (PST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21ED7Oqe003826; Mon, 14 Feb 2022 14:29:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=542JyrrlYASj0FwWw5x3m6JHNYhpRl4FEwUfuX2UgTk=; b=eBG68axvwXDNPzbD3IeeSXJyXuOB89KkPPjE5OeA5sdUoyNyRRHZ+8viHjbcjNSd0qcF 5ljGOjES27i3F51uVVI6mIAipPbOsGNAUxsAAvn5sgNvVY7xa/iPpXDJ6f/8/VckWVjh IZmyUeFcTOtithXsJRRKjGiUjkFQnoj/HBaUhxx5DG0ySOUHt5wNfGRVqfbKigbFXZhu c6Ud0NRss2O700BaJfVaXgpbBM5U+0OlRuchNOocD0r01YTfHM/X1ecaKeX32zhDahVd SXSthfOZcKmHdnv5yxKKC0AuRthNfjYSL6nVdP1mLSUi3fsjm8s5xnIQMzTCiQONh94A rw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e6rt177v5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Feb 2022 14:29:24 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 21EDW4ox023998; Mon, 14 Feb 2022 14:29:22 GMT Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e6rt177u7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Feb 2022 14:29:22 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21EERo9i028257; Mon, 14 Feb 2022 14:29:20 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma05fra.de.ibm.com with ESMTP id 3e64h9deuk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Feb 2022 14:29:20 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21EETHDd41746788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Feb 2022 14:29:17 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F2C504C04E; Mon, 14 Feb 2022 14:29:16 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5302B4C040; Mon, 14 Feb 2022 14:29:16 +0000 (GMT) Received: from [9.171.14.134] (unknown [9.171.14.134]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 14 Feb 2022 14:29:16 +0000 (GMT) Message-ID: Date: Mon, 14 Feb 2022 15:29:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v4 08/10] KVM: s390: Add capability for storage key extension of MEM_OP IOCTL Content-Language: en-US To: Janis Schoetterl-Glausch , Heiko Carstens , Janosch Frank Cc: 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 References: <20220211182215.2730017-1-scgl@linux.ibm.com> <20220211182215.2730017-9-scgl@linux.ibm.com> From: Christian Borntraeger In-Reply-To: <20220211182215.2730017-9-scgl@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: eatC7XqVY6vLXRYUdxC7HdHyU9MYJmYO X-Proofpoint-ORIG-GUID: g0R5qTujNCK5NDreEkA_JPIdZQvfwJ6M 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-14_06,2022-02-14_03,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 suspectscore=0 priorityscore=1501 phishscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202140086 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,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 Am 11.02.22 um 19:22 schrieb Janis Schoetterl-Glausch: > 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 Reviewed-by: Christian Borntraeger > --- > 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 >