Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1956022pxb; Wed, 30 Mar 2022 13:22:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNXeFfv1x7AaaLAX2vEISZve+cTBMiWzzSY4Xvgb10efG7yqMwJjh6nQUWc48IrivhAWrY X-Received: by 2002:a17:902:8a94:b0:156:1b99:f9d6 with SMTP id p20-20020a1709028a9400b001561b99f9d6mr1462526plo.49.1648671753970; Wed, 30 Mar 2022 13:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648671753; cv=none; d=google.com; s=arc-20160816; b=qIjWw/IymCWaK55a5mUUlH9wemUexzwJGExl2RgX2aTgA57ozKgIGtbclhhNNWBIGG 8ljDxUuL/uFv7yFvapHKDXG9vdUgv77GUnbU3aAQElozYTUzAGBPT/FD6ZOU/5rHdD5O DJjk60w4Rafge3vRXR4eEXobiJubYJG1vgWU6H3u5m4tGdzxWVY+kojobEBUkl3KfFGH 8vrW0fKBHNmWgCxriiKxXtqasw2vxrXdR+/Lx1IwLtGXLk+oxPVjPrYjjD39rRyISzsQ OwYXaIdr8DjRD3jfZXehskb+ARzdHOyRoVRfNGOI54IaUYiRubd6alJLknLuKfXE/XC5 m1zg== 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=sL5MLxhIj4yz3S1IEux68sFwSsVjYeCz+ztCKtdE7hDXaHL3rD5c7BXIvryQ4itJqO f7/SZJ7A3r/Z9Z7ScdIzseJ+ip9KHQAd7/cfBJWVyXkomvinBLKSA2zdZcBV8rXJSjJD EcOV/Ukz1zojEH18Bq4G138bsJh1HASa+jSUXdYgHyBD6t/PKFPDvPHi0FZZgJHun2J9 wPuzyxakNg+XAt6J6kBtYv1tkuZCtu6YX3/5y97GKJuJ43Opn7Lw1jzeWBXdAFdxU0SE VUNUqO7i6x1lwK++Nn7CreMzrH5bggRDu8qCX7+kkeoJ+QzSR0TTxnj2oRPTQr/z2i4A E9jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eQpRSla8; 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 z134-20020a63338c000000b0038285075b9csi21591611pgz.723.2022.03.30.13.22.20; Wed, 30 Mar 2022 13:22:33 -0700 (PDT) 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=eQpRSla8; 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 S244523AbiC3Mj5 (ORCPT + 99 others); Wed, 30 Mar 2022 08:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344664AbiC3Mha (ORCPT ); Wed, 30 Mar 2022 08:37:30 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B547892335; Wed, 30 Mar 2022 05:26:27 -0700 (PDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22UCMx98001117; Wed, 30 Mar 2022 12:26: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=MD0PugNXlc5J05XUEaZLQsaoVIm9LF19mVI4l8ZALkA=; b=eQpRSla8EVGGq9ZqOzgfeYDyFsBIiD1GMGorCkwpy24F/BFqbUrhDzPvHfiAvSbmrOip CU4a97PyPLkiDegLPNLxWsyuxh/CJ/qKE+fnxyrjtnsqw5fQv+OG2FjndRy9lGJKmjse FQYaLKzPTtcvnlVylAyPI/IHBgxFKUKNRokQxSk2fepZg2pgCnJOrN1TbDszHxrkWDB/ +ig8rZ6x0UxwXbewhvLTCRQ8yb/k48MvCM6SNf+FXB3HH5c7Hnf6mtgeijlTMV3euCcI ipbPkxjL1t3FkVXvnZJ6tqDB2fSV2X1n13M5og4LKsDiEKIxaZ+JSnxW0Dd8c5BJimlj pg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3f3yqmntk7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Mar 2022 12:26:27 +0000 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22UCMs1U000422; Wed, 30 Mar 2022 12:26:26 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 3f3yqmntj9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Mar 2022 12:26:26 +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 22UCNeUT009997; Wed, 30 Mar 2022 12:26:24 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 3f1tf8y96k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Mar 2022 12:26:24 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22UCQQxY19661198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Mar 2022 12:26:26 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E08511C054; Wed, 30 Mar 2022 12:26:21 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8DCFF11C050; Wed, 30 Mar 2022 12:26:20 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.13.95]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 30 Mar 2022 12:26:20 +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 v9 16/18] KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE Date: Wed, 30 Mar 2022 14:26:03 +0200 Message-Id: <20220330122605.247613-17-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220330122605.247613-1-imbrenda@linux.ibm.com> References: <20220330122605.247613-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: gRJosofFhQigSX450_p9OywwbTMtShwO X-Proofpoint-ORIG-GUID: j-00g-GnAkI8Fgdyt5gDD5w5maah8oPd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-30_03,2022-03-30_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 suspectscore=0 adultscore=0 priorityscore=1501 mlxlogscore=639 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203300062 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 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