Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1068878pxb; Tue, 8 Feb 2022 08:34:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZsBG+Fxt2sAaBaIHDipvTgP8jIWi6HvD/wGwSihU4AwgewHXl+LHHH6JYFZ9YRpptV7Xs X-Received: by 2002:a63:82c1:: with SMTP id w184mr4192612pgd.272.1644338084136; Tue, 08 Feb 2022 08:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644338084; cv=none; d=google.com; s=arc-20160816; b=nKfYfu0dHg2cByO3cHasYZCkC3CIc63hWjCkO+Wbu9SKbJvPFoV/h1JVVCF5ESkL+s T110b9hqDCrtom5fpWR85Ats2Io1Uq58M8jsMOIcEIsRGj5bxFqBuoZCBja9lm6Otk2X 33jmhKhLwRBXAguNyP64F6sI0jb47dcIGMD4oG5O+K8MR+FkJf+27b+iff9KeBFPhLZ2 sgksg40fBdNyT3StpV1Iyn/EjfBvETetHsypMY6v6cF1tU4ZK88ZbhRV/oP1AwecNQ0k C7l7BSLeAzHV1vRtAuzQ8y4KfRn1PrFeT805nTsLX+eSnQ86kbRjPU2Wh7ouxmnuh0JD 1fZA== 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=/6Sl30sM8A5BhmhnnOBeRQ+YoVbo7+nHsq+oYHBzaeE=; b=pd3fANA06s9MObxBjds9dO0C8JYIDwVAjl96gu17wQnZh1j2rwYlClb0mQTIdma2Mv BO3wsdnRRmAMAxATkXknK1/GMDMuFsJAtl+NlVobIR1WX326zE/qKMkGIluaYZMQBU+J UHB02Zk+dds0FWyUVygI5Jkvx6xXl5T0thtx6icTO/CqN8l+LH5vWf8D9S0yCeO5dZTP awJuSCLczbI/PxVv1XXT5uK96r3V3f3f5JSrMeDiMkIpY/2TeTqJ0KSBdkw500Cppa7m 518eCeswUA5W7e7RuNqlLjoKGIMBobYnpwXYhm2eefgoxafKIV00CbUcSDSsLFTcGp8B qvNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="FE3mCj/g"; 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 u22si14198170pfk.296.2022.02.08.08.34.29; Tue, 08 Feb 2022 08:34:44 -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="FE3mCj/g"; 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 S1376524AbiBDPy4 (ORCPT + 99 others); Fri, 4 Feb 2022 10:54:56 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:21286 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376355AbiBDPyH (ORCPT ); Fri, 4 Feb 2022 10:54:07 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 214E84XD017344; Fri, 4 Feb 2022 15:54:06 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=/6Sl30sM8A5BhmhnnOBeRQ+YoVbo7+nHsq+oYHBzaeE=; b=FE3mCj/gOJ5MBC0vn8Cy+ZYP+7ECajvEvM+4yoM2ADQqssHUlMSugG2ocaqSp6lL6ddK jBXTLSCetxUaEkBC7RIt24lu9NfVoUVWZNHMV3zXh2UyioYAxAWUN7R+cJcbMCPjx80V Asyo0o8vrEBV6akH9ovcylgBEFjZZr562ySNXOHEIkoeXhin4nU/tVZwjvssUXY0rHA3 Uc3azq55UCj3JBZ4ysaAy0SCbe3hTJVZTIZq+dwHZ+X28yz5UzeOTQLE3I4fwEN2gef7 E/wsmrhv9of8oMFX4zu5r7T/VXHJPKcyPhnetFikqRzGVRl+h8Ih/o9Nv+3c+aY/iPp4 uw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e0qx98ptu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 15:54:06 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 214Fjxe8018979; Fri, 4 Feb 2022 15:54:05 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 3e0qx98pt5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 15:54:05 +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 214FlUBJ024728; Fri, 4 Feb 2022 15:54:04 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04ams.nl.ibm.com with ESMTP id 3e0r10eb1c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 15:54:03 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 214Fs0ot44302750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Feb 2022 15:54:00 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A49D1AE059; Fri, 4 Feb 2022 15:54:00 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1AB70AE051; Fri, 4 Feb 2022 15:54:00 +0000 (GMT) Received: from p-imbrenda.bredband2.com (unknown [9.145.8.50]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 4 Feb 2022 15:54:00 +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 Subject: [PATCH v7 16/17] KVM: s390: pv: add KVM_CAP_S390_PROT_REBOOT_ASYNC Date: Fri, 4 Feb 2022 16:53:48 +0100 Message-Id: <20220204155349.63238-17-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220204155349.63238-1-imbrenda@linux.ibm.com> References: <20220204155349.63238-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: QZheY_Vjv1-owI75Kq87B9kzSaad6bVz X-Proofpoint-ORIG-GUID: cnDUwsmnlE8CZpAEEds4mNz2yse04JI_ 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-04_07,2022-02-03_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 mlxscore=0 adultscore=0 phishscore=0 malwarescore=0 impostorscore=0 spamscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=944 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202040088 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add KVM_CAP_S390_PROT_REBOOT_ASYNC 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 f7952cef1309..1e696202a569 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -608,6 +608,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_PROT_REBOOT_ASYNC: + 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 7f574c87a6ba..c41c108f6b14 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1134,6 +1134,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_PROT_REBOOT_ASYNC 215 #ifdef KVM_CAP_IRQ_ROUTING -- 2.34.1