Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2443591rwb; Fri, 11 Nov 2022 09:20:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf45mtRhn7qIU0q4sWnJhgP7Nnit/jQrWzW2+b5xend6Hg/oVUGJ/sGs4uery4Q2SfhCxpW1 X-Received: by 2002:a17:906:c08f:b0:7ae:70f9:114 with SMTP id f15-20020a170906c08f00b007ae70f90114mr2648736ejz.44.1668187235332; Fri, 11 Nov 2022 09:20:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668187235; cv=none; d=google.com; s=arc-20160816; b=Vo9hUCGB5k4U0HJYrf1vY8q72nQdLRxAOv4wmElbKdPILJTGbCLT/Eoi5PivFsrBN9 mdOKZilVGjzX10vtOYs2jCaZhypdnqnvQgEGOf6D4EeeEaKCeq5LBMYYPOY+VFvaykjV XTrraPU5IH9RmWmD8IAsNqMKHP5w7ecauTYj4aUkWxxu1CcLkxMIW0pG/g4cBW7tnqF4 uydIUK9TqYfMsQqynnW6WEELZfsC2DNfMro4diaOihBPuMIqQjTz86jzh2D7lO2gBoLw XF2UTVwXYRlXcbU03+U8LY5s/TMi2Mtg21sBTlHAFCdRlxJzR1eBtzx++13apQubaBZQ KxzQ== 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=gSqAR6JZt49ZNVZmihd8oAQmZj9HopS4NXqx3uuvPPo=; b=UkUKTnDn+oOdqhdpFjMNWIVvsX+OOj4YqqToY1qAReToUT0iwSJOeBEBo2u+ycVI2e yzt6oNpWdAk8ftcxMxxjuH3ECuw5cG1Cp7NDOm829ExvJ9YyTyjuN+ZpduQfRFlVw6KB n1HmTehG+KADBaG+HaTcW3pxdJHWtwLh8gc3OaLMM3GY5HrpdGdcEeUPMM36aRnyiJDI vBqhM6IdVUOqMy9jGNO0Ywk5EQ+jjI1JJjWDJrkrRoTg8MW0lgfBh4j656+xpc8XX/zJ P0klf6dzyNXGjvFJ9kCJw3HV4vfRF03qLHu9IB+WeRiSXETu4WBrpUtHbzVN+IY1VfBo zGyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=EWpPgKYE; 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 a26-20020a50c31a000000b00463cdad3915si2404962edb.521.2022.11.11.09.20.12; Fri, 11 Nov 2022 09:20:35 -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=EWpPgKYE; 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 S234182AbiKKRHM (ORCPT + 91 others); Fri, 11 Nov 2022 12:07:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233438AbiKKRGs (ORCPT ); Fri, 11 Nov 2022 12:06:48 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F002D7341C; Fri, 11 Nov 2022 09:06:46 -0800 (PST) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2ABGpFUO002277; Fri, 11 Nov 2022 17:06:46 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=gSqAR6JZt49ZNVZmihd8oAQmZj9HopS4NXqx3uuvPPo=; b=EWpPgKYEjxhGZ0Npv4sEVTOhZG/r7+2G3pO08jMuk42BGTijWK58lotxDZGKy8pmT71D F7LRCkI4MuWt0Jd3YuTPaDCuVDsqhXJzoGYyY+BqHa/j9reAKs4TF78hivYEPMx8+ovF xHscxu15JWD2itj0r9SsRY+8Ju3VOs+PDZ9kyqf/yQKsUM+8mKxrXFUMkgLe/65HmvKV 3iUw0o20Sh0xPmJHBXdPuX/S+xFzf0JKkhPXakepVkkq5SOatXHxbQFRcWmFCXKPbCxi r6iV9+6OOc6Kif/txEU9hr9uYEMV+umcXI2DQslv2u17n8V+1ANsBCt2xSUfM5xUSoOP Lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kst99gday-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:46 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2ABGuGDN016479; Fri, 11 Nov 2022 17:06:46 GMT Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kst99gd9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:45 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2ABH6h6X019270; Fri, 11 Nov 2022 17:06:43 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04fra.de.ibm.com with ESMTP id 3kngmqphy5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:43 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2ABH6eo17209534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Nov 2022 17:06:40 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 05F4C4C04A; Fri, 11 Nov 2022 17:06:40 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 75CF64C040; Fri, 11 Nov 2022 17:06:39 +0000 (GMT) Received: from localhost.localdomain (unknown [9.171.65.74]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 11 Nov 2022 17:06:39 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: borntraeger@de.ibm.com, frankja@linux.ibm.com, thuth@redhat.com, david@redhat.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, scgl@linux.ibm.com, seiden@linux.ibm.com, nrb@linux.ibm.com Subject: [PATCH v16 3/6] KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE Date: Fri, 11 Nov 2022 18:06:29 +0100 Message-Id: <20221111170632.77622-4-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111170632.77622-1-imbrenda@linux.ibm.com> References: <20221111170632.77622-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: S5tBgMTR5AbvXKX8Vt7jQpC7ZXmWAvEa X-Proofpoint-GUID: ElHj57TYTM96_xUcSJD4VDPW21Cv1W2u X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-11_08,2022-11-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 phishscore=0 mlxlogscore=698 lowpriorityscore=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxscore=0 suspectscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211110115 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Reviewed-by: Nico Boehr Reviewed-by: Steffen Eiden Reviewed-by: Janosch Frank --- 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 f0abaaf7eea4..b6cc7d2935c0 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -618,6 +618,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 = async_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 b3701b23ca18..d3f86a280858 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1178,6 +1178,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_S390_ZPCI_OP 221 #define KVM_CAP_S390_CPU_TOPOLOGY 222 #define KVM_CAP_DIRTY_LOG_RING_ACQ_REL 223 +#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 224 #ifdef KVM_CAP_IRQ_ROUTING -- 2.38.1