Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1456533pxb; Tue, 8 Feb 2022 18:41:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVIlkRjsW86Ja9Mug39Rs/R2auNporZ554WDRnejkiMOxBadfwp6Et6nyPoXLGrwXLIdj0 X-Received: by 2002:a05:6402:d0:: with SMTP id i16mr301559edu.163.1644374514524; Tue, 08 Feb 2022 18:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644374514; cv=none; d=google.com; s=arc-20160816; b=SNamkpfxt4F70QnSzgogPKAgkRKkYvZFLya6NjuJK9KREvtUJhyaNSL9p///M1iJuO PZIpMzhYGJusG9w/4gb0XTUsUSrQnrBzR42q1jywdOR2toXDA8SHijgDrqHUh0PLfQwT 4oqcvCDb/FAfGEAyMtwwrGSK3qHB6fO0wSLqyprrEUzh3HTGS9+beNRqGS22Y8gjTddH pr1BzY8nL+5LQvl1kWE4o/A0VxgEBd8nq1MpXH7RgFNsqCec164cNCkt+7SnNWq0mR35 d5Ed9shNhKMRHLeOPJa3w/M5dDhVL4wkblVBZTGqx75/MfXUm4JgJ/1ndoBTfWGEaVtl u2qw== 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=IkvTyNKUAWvOEfSiehEivGTvtj5gt8FUQmKXiKTsqTM=; b=XnzUkm59ewRE7Y464XlSrOoBf/7L35Sj9OfccJjWkT5tyv24+/u3zymndSAYx4rMqr hMgiAHqgOR2/rBrtO0a5+LUb2Zr1FEFv3ENtkPKMdJR5j3Zloa2g738hYwGEnyP4xWSE KJj89NegGh3dl0qi7+by8DVOU72ZellIvVuYyp7UUxpzn4M5uLYO5q8kB+gq1oV3vRD6 S/J3ShYWxAlpdnJM/dIikXo52ZY0OVeSq5/7mRYkeoyxKNikvK5F4bI7BLa99XmKjSva L9i3U16jnpBeb8khhcjC/bYtCKOP0jRyCxXo508+/oWrUlysrhxS5MnrBbzYxSN8rZ7x tBmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="M0p4/FKe"; 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 ga33si2217608ejc.427.2022.02.08.18.41.29; Tue, 08 Feb 2022 18:41:54 -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="M0p4/FKe"; 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 S1383915AbiBGRJd (ORCPT + 99 others); Mon, 7 Feb 2022 12:09:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357993AbiBGRAN (ORCPT ); Mon, 7 Feb 2022 12:00:13 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1619CC0401D6; Mon, 7 Feb 2022 09:00:12 -0800 (PST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 217GxIWb005679; Mon, 7 Feb 2022 17:00:10 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=IkvTyNKUAWvOEfSiehEivGTvtj5gt8FUQmKXiKTsqTM=; b=M0p4/FKe6VlNfbeh4+d7/uqCckiQANlVZ2/jC6uCMJDeE/FlCRnKmu2SQU1dJH0Xx4bh Lr8IkWukq5hNPZVhhmK6sN2FpCCXLrVxuUhTXugdiJ4Vs28bKe/qUZWgDw9bB75OaJTj 8i0AhIUYT+v5rjI0dtmN8je1+M13IyAerQSzvUVA27/tXhSiWJsWuCuZRFi5S0iF621m fsw0e2uPI0Mivehnh9TL5Koa9JodS97lH4B7NbZ6tLP3oT4atUakEJa8QPRTfQo2gBZ6 L3qXeBII2Oql7ZREBIWB7tSbTibEoB/hK884B3nMYrheLQ4xyELnAlQ//YDLeVS3rmeH dg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e23199rnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Feb 2022 17:00:09 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 217H09lL018127; Mon, 7 Feb 2022 17:00:09 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e23199rmr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Feb 2022 17:00:09 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 217GqQv1008756; Mon, 7 Feb 2022 17:00:07 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma04ams.nl.ibm.com with ESMTP id 3e1gv8xuxq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Feb 2022 17:00:07 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 217H04k943385198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Feb 2022 17:00:04 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3CA62A4069; Mon, 7 Feb 2022 17:00:04 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9235A407D; Mon, 7 Feb 2022 17:00:03 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 7 Feb 2022 17:00:03 +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 v2 09/11] KVM: s390: Add capability for storage key extension of MEM_OP IOCTL Date: Mon, 7 Feb 2022 17:59:28 +0100 Message-Id: <20220207165930.1608621-10-scgl@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220207165930.1608621-1-scgl@linux.ibm.com> References: <20220207165930.1608621-1-scgl@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 7KZXbxv4gHfx1T6eJmg-YHj-lf8IO-gM X-Proofpoint-GUID: nO2oABaRt-H_M4qU82YN8dnQS0sdfOfo 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-07_06,2022-02-07_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202070103 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 --- 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 befb30923c0e..4a502cac068c 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -565,6 +565,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 ea81132a1cb1..50ce814267b3 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