Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp267128pxm; Wed, 2 Mar 2022 15:00:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8RdQj4Uc7xNpkloVVbOK4/cgXTu0lMn3epYJ5A2EHG+FqUgte2pCbPo5llvk1qm7DswMC X-Received: by 2002:a62:1481:0:b0:4f6:38c0:ed08 with SMTP id 123-20020a621481000000b004f638c0ed08mr9172994pfu.86.1646262056133; Wed, 02 Mar 2022 15:00:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646262056; cv=none; d=google.com; s=arc-20160816; b=Vjh4fW21UfmWw0m4vhah41QG3VE8wmQcR2v6XM2PDqTXTAhykK08G8oCrInRp8x9fG +L4+uqzCuztG1V3Kw1iUg7qG/cGKSs7oRVOAJssh8ppELgjms71iAnjmY7lvk5qPnNga iIn+piFPjyqv3PfY3d/vIbpRyZ0pL/IOTLp4OKZ2SJ8HPDWPSDaf27wkLLlDJoeNXoSO W9pLL4dkJiFqckU4aymHUcJj8O/9Wwot/UxnJgBV+V26pr6U7xZxnkyXDXWBYm1r5i8t eSLa151plrCnzjhl3se0FSGY3Zlem09fJDmqceyIS4ukT/YrwAny5fJk9Wxgi6uQwS+i oXyw== 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=MD0PugNXlc5J05XUEaZLQsaoVIm9LF19mVI4l8ZALkA=; b=C84AP/yZAUonUueOxv5SMMn7yN7pSDlVdFzyGMGTEAJOjM5GzA/Ce95jSo/bLXOVgJ kQYQiVH4RJyW9Ilm6Ma0fER5n5QJmfC2xiVVCgEiQoEyJVgn4G59FiT4h+TVx2tkKm74 PcGvSZcawo5/97Gfe0weTLwFrArV+XKmaqlRuw/morki47bNlaupxB9DcGdusOcDnT+a mPggpkVa6nu6oZWTCkwT1Yf/jUhOWIotM5MFTvOWjXbsx/vukRRGDMF+oJiIA/qeWoyB 7XpQhIy/QYDxl/grm2/X1IgP4U2KD4egROTrXaJWCYAn0DcREtZzzib/7KhLlT3gKNrP cQ2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=hwMLRCCW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y7-20020a63ad47000000b003734c341f19si379410pgo.580.2022.03.02.15.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:00:56 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=hwMLRCCW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72C79EBADA; Wed, 2 Mar 2022 14:46:57 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244508AbiCBSOU (ORCPT + 99 others); Wed, 2 Mar 2022 13:14:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244516AbiCBSMu (ORCPT ); Wed, 2 Mar 2022 13:12:50 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5013686E0B; Wed, 2 Mar 2022 10:12:01 -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 222FlekL022817; Wed, 2 Mar 2022 18:12:01 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=MD0PugNXlc5J05XUEaZLQsaoVIm9LF19mVI4l8ZALkA=; b=hwMLRCCW2ymQfF5yt3ZU6odomSJlzlmveAe/GWwEuIC0tjWOzjEFFYdi/Rq+kFUsQAPm bAPp8afcK4Gh+zIKAj+Z7/4gkHty+Q1bUC6Yl+3R7DhlBoxdZSxm0IynO5uzTu7agAMD YNA6mW7qGdr8reJZ7qZKy/4rCG9DbKAxMXTUlbmT+E1jy+gWbIHjZh4AagW0jlRsHm4y V4roX+/atkeozrOJJla0grrl0AMCke/nQm89v89D19RrcVGdEQzl/zgb5zQBtFedbcyC +1/kGIzUiziv/Jmsurlh03m6WWcLTTdDT7mVjitrjJ/fxS+Gt7JrK8AW2IxwtlxoK0Dp SA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ejbhpb4cn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 18:12:00 +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 222I1u2l016378; Wed, 2 Mar 2022 18:12:00 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ejbhpb4bq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 18:12:00 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 222I9N3V030680; Wed, 2 Mar 2022 18:11:58 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma01fra.de.ibm.com with ESMTP id 3efbu961uj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 18:11:57 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 222IBrb948890306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 2 Mar 2022 18:11:53 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 59E0D5204F; Wed, 2 Mar 2022 18:11:53 +0000 (GMT) Received: from p-imbrenda.ibmuc.com (unknown [9.145.5.37]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id D167152052; Wed, 2 Mar 2022 18:11:52 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, thuth@redhat.com, pasic@linux.ibm.com, david@redhat.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, scgl@linux.ibm.com, mimu@linux.ibm.com, nrb@linux.ibm.com Subject: [PATCH v8 16/17] KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE Date: Wed, 2 Mar 2022 19:11:42 +0100 Message-Id: <20220302181143.188283-17-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220302181143.188283-1-imbrenda@linux.ibm.com> References: <20220302181143.188283-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Q2OTim6dj1kHzByEdIKEgu_4BWRvRebb X-Proofpoint-GUID: RcaiFytvbolFGnlg5s8S01CoL3-B3w7w X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-02_12,2022-02-26_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 mlxscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 mlxlogscore=616 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2203020078 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE to signal that the KVM_PV_ASYNC_DISABLE and KVM_PV_ASYNC_DISABLE_PREPARE commands for the KVM_S390_PV_COMMAND ioctl are available. Signed-off-by: Claudio Imbrenda --- arch/s390/kvm/kvm-s390.c | 3 +++ include/uapi/linux/kvm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 2453d2d90d6c..8ee143c9a03b 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -609,6 +609,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_S390_BPB: r = test_facility(82); break; + case KVM_CAP_S390_PROTECTED_ASYNC_DISABLE: + r = lazy_destroy && is_prot_virt_host(); + break; case KVM_CAP_S390_PROTECTED: r = is_prot_virt_host(); break; diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index d150610e7a4b..d775e891dd39 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1135,6 +1135,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_XSAVE2 208 #define KVM_CAP_SYS_ATTRIBUTES 209 #define KVM_CAP_PPC_AIL_MODE_3 210 +#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 215 #ifdef KVM_CAP_IRQ_ROUTING -- 2.34.1