Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1683549pxb; Wed, 9 Feb 2022 02:06:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb7KEVjPhz9lQu45/fAckdldeRsThvZgvTkUIRny1Win/SXzaRrQjPU9zVf4ij+v6/jw5T X-Received: by 2002:a17:90b:4a86:: with SMTP id lp6mr1717329pjb.152.1644401176019; Wed, 09 Feb 2022 02:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401176; cv=none; d=google.com; s=arc-20160816; b=CzjVdLtDB3ApJI9eebJFVplRAx8FRfPs5ZMRkoAfrPOGRseugTQbtCd53qXIn6A7tc xKMoka4OjSoICnYUAHOAB21gpPHBfGXpTroinRUbG5BHlaPS2aTSbOBT1qFY9LKzsmfg 0MVl+l0fTtFEgSa5cEXwyyi9vcBtRd4t+bEgv1bw2sGqd+0dyGoBa1gOe8ecZZYHZUFE 3LKRwsoUe5QfO8lKvtEwIO2irFuG95UKP12e3knRlN72jASRbKhpkBdgkzQvx1Y/NA3h i5hLhFSHSX7bX15nLGTvuJhPjpF7LtrmD0Fo6kZ3/YgWS35Id2rIqxp/IjQZEEva+8le wmLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=95RuD2tXWyR+QAfVrYV3Qt/2Z/eamOXxsUZ+9wmapuA=; b=VWvdDJyRiP34122O1m3nOXRFpdpks3wxW7lQeexZciHGCNLlVn1KVnIRcGzDTnnhzG PsaKdNwPZUroJbRlNNiL4yRveySFZ1ggdDcedOs8grs6A9EcZMk/upIKWAtvo/brRgHI SR4q+OLIbefrFS/Nx9raqRCWguy4Psi8TBj5iR9G+4SUUgs64St+ga934t7LFRXT6WxQ mwOZt+IQXrQk3Ounh3ofGMc+udDbyZDNiWB7r6Kg9E6srSIyM6hN37nN+Uemihalo/UK 99FlrW+SwX0H1Pq1xkcMYLBIkdFzALO5KHtlHSxOO0NO+dOGYi6t2E4i8CpH7LUdDHhw cBcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=RnK0fvo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l10si16855056pgp.92.2022.02.09.02.06.02; Wed, 09 Feb 2022 02:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=RnK0fvo3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1384460AbiBGPng (ORCPT + 99 others); Mon, 7 Feb 2022 10:43:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381422AbiBGPko (ORCPT ); Mon, 7 Feb 2022 10:40:44 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF6C2C0401CA; Mon, 7 Feb 2022 07:40:43 -0800 (PST) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 217E5bUj009597; Mon, 7 Feb 2022 15:40:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=95RuD2tXWyR+QAfVrYV3Qt/2Z/eamOXxsUZ+9wmapuA=; b=RnK0fvo36LmgG8h+8s+Y+6culVIzGIPv7ASxYxRl1BrshbWnMTHR1M5VsYb9cIJEZ0YV T5Vsnp/ILYLaYsRhpcoSuZubgExz+TE3rjds1EoUn+oRhgLovtfHyr0PBtO7Auf2AdUI bH+nDd7ozF0aUbY4jzEOUPwgypbB+pRl8iJEHZpHGy4qV0jhL7zipH/PKfPyOGFYMRi5 ZWHtdPjs2q4dG23bfL0GTLx89JdQsQ3fTUPlFSSJWWDI1AWGwXgMs89tGlFNnzI4SbTF ZZFI4jEvInErmxdabr+6w7+ur7ZjirSP7X7tCMZgstso6q7Qx7UjHraBiGJLVgHlRtF7 Iw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e22q0yukx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Feb 2022 15:40:43 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 217FXRHs005956; Mon, 7 Feb 2022 15:40:43 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e22q0yuk7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Feb 2022 15:40:42 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 217FYTZf032444; Mon, 7 Feb 2022 15:40:40 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 3e1gv968jd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Feb 2022 15:40:40 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 217FebZ425952516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Feb 2022 15:40:37 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 31C3A42049; Mon, 7 Feb 2022 15:40:37 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C90B142042; Mon, 7 Feb 2022 15:40:36 +0000 (GMT) Received: from [9.145.9.42] (unknown [9.145.9.42]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 7 Feb 2022 15:40:36 +0000 (GMT) Message-ID: <27bf3142-77a2-599b-d057-3efc6a1fd8f4@linux.ibm.com> Date: Mon, 7 Feb 2022 16:40:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v7 16/17] KVM: s390: pv: add KVM_CAP_S390_PROT_REBOOT_ASYNC Content-Language: en-US To: Claudio Imbrenda Cc: kvm@vger.kernel.org, borntraeger@de.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 References: <20220204155349.63238-1-imbrenda@linux.ibm.com> <20220204155349.63238-17-imbrenda@linux.ibm.com> <2b9b31bf-e45a-7006-c68e-6e143665640c@linux.ibm.com> <20220207161939.1d382a02@p-imbrenda> From: Janosch Frank In-Reply-To: <20220207161939.1d382a02@p-imbrenda> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: yWuybFJguXKOGib3S5z4HiXReHCgIA9j X-Proofpoint-ORIG-GUID: e9IBxAuoD-85CARyvFiN9QqTvKC4lMC1 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-07_05,2022-02-07_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 adultscore=0 bulkscore=0 mlxscore=0 spamscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202070097 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,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 On 2/7/22 16:19, Claudio Imbrenda wrote: > On Mon, 7 Feb 2022 15:37:48 +0100 > Janosch Frank wrote: > >> On 2/4/22 16:53, Claudio Imbrenda wrote: >>> 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(); >> >> While reboot might be the best use-case for the async disable I don't >> think we should name the capability this way. >> >> KVM_CAP_S390_PROTECTED_ASYNC_DESTR ? > > then maybe > > KVM_CAP_S390_PROTECTED_ASYNC_DISABLE ? Sounds good to me > >> >> It's a bit long but the initial capability didn't abbreviate the >> protected part so it is what it is. >> >> >>> + 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 >>> >>> >> >