Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1643407pxb; Thu, 14 Apr 2022 10:40:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmwqVdYI56HDlbHayi9EnhHqCHFSblyuP0Im2upZGAKEP8Dfuqn5Bse2tufncWDAxluInd X-Received: by 2002:a65:6956:0:b0:399:1f0e:6172 with SMTP id w22-20020a656956000000b003991f0e6172mr3143901pgq.286.1649958047470; Thu, 14 Apr 2022 10:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649958047; cv=none; d=google.com; s=arc-20160816; b=Bfh1cyoGeq6OzsK1NwtlXHo+WHVr/21QFFUdDW9PmImxvwmGkXjXx5XQaTIHcTZqcA yFnoufXbpYieOOddWhoqeI7MYdw1UqxTUdo1Y2lj222RS0dmC8QCWrOptj165gk4RO1s uAtPy6GjYNcDx/1FaBQ9+2Phvp9A996zTLbqp/ziD4OVGHBU9p5wLKWb+RREyeDbfM3N KMII43JKVFJdqpjXbHBo2u6Ax97m2D35vGpJ0iAbnL/s3rhtVgimh4GiVF17SesBeXeU J/sxL5KVlTjSLrkm8HzsUwcRYyaf56EZPs5xzk/3AOSP6VcIsnF9NSLde4T+GEvdBkrd RdWg== 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=qa2CU2jpp57ZWywYlbFZvBiY/7Z14iEDrqnT+3npkUw=; b=aHZpivfMaWWDxZCwCSQAM+kEv/djOzp8ahju6gwtVw/SkzPpfjTSKwWP9uRfua1Ny/ 2c65P4UwfmFIuRA0adD5QayG8aFYif5z+e3+8EuMlWTl8AOLGi8ncuk1r6Xd4oB4Q+hD ogaRdXMrehE7qLEEuEdjTaZQI8Ps3DpgFvoETVPQ6Ql0byuqbqVT6G6tEKKHKK2jVrQh 9iUEMpewyO+vv8acrYMLaM0UXeF2fS4Uh5uqInnp2GuLQRpnR4Porm8jxBDXDbhj3P6S ek9uPwf9c5VLMjaqWxDWByyUTohwqkmK4xGFUaks6HhIbRUSEOyXf2VGOMw6lN8V2Dr3 lCmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=A9XJ2B4E; 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 z2-20020a056a00240200b004fa3a8e0040si518777pfh.247.2022.04.14.10.40.32; Thu, 14 Apr 2022 10:40:47 -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=A9XJ2B4E; 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 S240345AbiDNIH0 (ORCPT + 99 others); Thu, 14 Apr 2022 04:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240760AbiDNIGF (ORCPT ); Thu, 14 Apr 2022 04:06:05 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27BE84ECC9; Thu, 14 Apr 2022 01:03:34 -0700 (PDT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23E7vtkd018321; Thu, 14 Apr 2022 08:03:33 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=qa2CU2jpp57ZWywYlbFZvBiY/7Z14iEDrqnT+3npkUw=; b=A9XJ2B4EUvkgkuauG+Nb9qYlhzM6VzyywoVCXTCwWPcxsmeiMu20VHDFrqZkGFK35C8a rGN3P6z/8+rgQ5ijpPx70SwF7vg/0yFm5mfFgpyZFF/osjdikd9Ms5ObdOAs1mkSbEMX QW2EtVNnZMd+tKhd6469+s9PwC9Ann8KMqa2xVDiI1eRqWX50d/dH6Wg9H5Ym3W5iQWq JGB86N+MVMfjwmY+KvMlVnZ4dDh2jS7jySBoCtTcGL1cWwxzyAHFUGmJkQxuzdyBSgZc jaXqNswvq8LI9rvsp9m5VEOg2A58daXewyeBvcQ0geF4eKRxBbvWTnlpzT1i2itNc+UD bQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3fefpgg3tb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 08:03:33 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 23E7xHCp020926; Thu, 14 Apr 2022 08:03:32 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com with ESMTP id 3fefpgg3st-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 08:03:32 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23E7loBs007269; Thu, 14 Apr 2022 08:03:30 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma02fra.de.ibm.com with ESMTP id 3fb1s8pg2y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 08:03:30 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23E83RWl39256328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Apr 2022 08:03:27 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AACD2AE053; Thu, 14 Apr 2022 08:03:27 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 26855AE055; Thu, 14 Apr 2022 08:03:27 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.1.140]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 14 Apr 2022 08:03:27 +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 v10 17/19] KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE Date: Thu, 14 Apr 2022 10:03:08 +0200 Message-Id: <20220414080311.1084834-18-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220414080311.1084834-1-imbrenda@linux.ibm.com> References: <20220414080311.1084834-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: n82bRvzsuR9J01JdNIE4jUU2U0FGpWom X-Proofpoint-ORIG-GUID: xMlgCpbLDRws6UeQyCpjwfVQ7eKR5XCO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-14_02,2022-04-13_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 impostorscore=0 spamscore=0 suspectscore=0 phishscore=0 mlxlogscore=627 malwarescore=0 adultscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204140044 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3,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 e00283b48a47..8b04ee2095dd 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 0abad46d5910..f9df3848031e 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1144,6 +1144,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_S390_MEM_OP_EXTENSION 211 #define KVM_CAP_PMU_CAPABILITY 212 #define KVM_CAP_DISABLE_QUIRKS2 213 +#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 225 #ifdef KVM_CAP_IRQ_ROUTING -- 2.34.1