Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp626156rwi; Mon, 10 Oct 2022 05:18:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ALJqYs3/5dTorYsfffxgTln1IPRXz7Au4nWEGbdlsj1zS6eO7Mcm4Xk9iksfTnn4qbbOr X-Received: by 2002:aa7:df04:0:b0:45b:cb0d:856a with SMTP id c4-20020aa7df04000000b0045bcb0d856amr10795258edy.180.1665404312629; Mon, 10 Oct 2022 05:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665404312; cv=none; d=google.com; s=arc-20160816; b=g/p2u7pl8/QOlgNpZuuOLKrfqUVT6gxR5gSVnBHV/o5ZS6qSWkfUP7q6pSvrCnUt2c 1WacMYQO+0mx6ppjiV/FXUWUrVagjoiOjOT54Kl01U73llA5wDALFSrRFDPOYN9WP6N2 0vjgksuRIwepOC5DUAgd1WOIIM7m2B4gKG/st0PbSPLGrBtR31P4WSVKMypbXYKVCsmz IYAqWn75Awh7G+ajWcjP1V6JYVXFh010gAsmPPL0rKgPRaIeTDCdx6+hk2IB527rF2We z7Xq/3y0iA9amhZ0cZdjY5VrdQr9EjilboCJskBWfr1yawCKAAVJBECWWUdLNUFC/LYD chEA== 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=zoe3dbF7hMJPPdpuOS+siZVnRLpogAqf5CJXltqDyU0=; b=qsPSHNtjLpD9uigl4HCeJFtXcqnehqaiFbdGkUiTfHmfJxUnQ3ge5N3nonvQ/efx3L H4KRUFFkFtoaMwpVw3m9TCMbNfFsm2iYN90HMvKA3oMg/i/s3ZRd0jaV2M7AIhScg8dZ vzMTxH6SukrVYTnkq1CI8gGBsDe9RoFQERzxwYgyCAaaeii89+tp423CvN4vUwNjQdtJ hWFH2hKDYa8Lr7BVNrebaKXvWLEW2UPYzKHLY1oBxwQTfi2NhhIrVdPwpnGgSoBi/0ui 3EQHVbhA7wts52r3AyDtAk1Ct/acAFFze/5oMZOolq54lVzn5SJxsF/S5cFsbMdMs0oV LZQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=CtN7SCto; 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 z17-20020a1709067e5100b0078c25fb3842si9151738ejr.370.2022.10.10.05.18.07; Mon, 10 Oct 2022 05:18:32 -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=CtN7SCto; 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 S231790AbiJJLqI (ORCPT + 99 others); Mon, 10 Oct 2022 07:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231438AbiJJLqC (ORCPT ); Mon, 10 Oct 2022 07:46:02 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5BD6578A1; Mon, 10 Oct 2022 04:46:01 -0700 (PDT) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29AB5YN9003340; Mon, 10 Oct 2022 11:46:01 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=zoe3dbF7hMJPPdpuOS+siZVnRLpogAqf5CJXltqDyU0=; b=CtN7SCtoHLeN6Q6DrpXuUHKZGC96GJLHYPpU7beA0nxRmsZe6khSdF5cSM+ilJRFXL95 MNjPk41xnLDdg4U0D0OHGcR/fIuz9HvRiNiHql3G5IGOmkB1FnKl7/SzxR45A3SecrTJ 4WDEXVA8jDPLNP8LeqmpsXFn5CiH1eDPhSM8JWLMJTWD2yWH5YhGJQ8AXhfIloQiPGGS +MnJ5HdGEXaHHrz8HRWElf71Gu7lcYEzNQXP+WsyJL0e/vJ3R8uS6GyjJMRT24dukBLC PJyHgK0Lr+aLO2y5GPxaNqtxuoMr2siJ1GmxPk5Bz/kVibceJGVaHA23LcZaaSfzM2KG 6A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3k3jgwu4xt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 11:46:01 +0000 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29ABfaUP014385; Mon, 10 Oct 2022 11:46:00 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3k3jgwu4wp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 11:46:00 +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 29ABbjPS005960; Mon, 10 Oct 2022 11:45:58 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma02fra.de.ibm.com with ESMTP id 3k30u920cq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 11:45:58 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 29ABjtTD39912186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Oct 2022 11:45:55 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2B88011C04C; Mon, 10 Oct 2022 11:45:55 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A42FE11C04A; Mon, 10 Oct 2022 11:45:54 +0000 (GMT) Received: from [9.171.5.210] (unknown [9.171.5.210]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 10 Oct 2022 11:45:54 +0000 (GMT) Message-ID: <748d07b8-1746-c12a-ccfb-89c8b15901d9@linux.ibm.com> Date: Mon, 10 Oct 2022 13:45:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v14 3/6] KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE Content-Language: en-US To: Claudio Imbrenda , kvm@vger.kernel.org Cc: borntraeger@de.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 References: <20220930140150.37463-1-imbrenda@linux.ibm.com> <20220930140150.37463-4-imbrenda@linux.ibm.com> From: Janosch Frank In-Reply-To: <20220930140150.37463-4-imbrenda@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OJ6F4DTEkzYYPz3S9qFPzC0oeXdeRm-Z X-Proofpoint-ORIG-GUID: CpHSoJQIEYWf6lD7_0G4sErc3Duo2ppV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-10_06,2022-10-10_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 adultscore=0 clxscore=1015 spamscore=0 impostorscore=0 mlxlogscore=876 lowpriorityscore=0 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210100069 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,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 On 9/30/22 16:01, Claudio Imbrenda wrote: > 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 > --- > 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 d0027964a6f5..7a3bd68efd85 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 02602c5c1975..9afe0084b2c5 100644 > --- a/include/uapi/linux/kvm.h > +++ b/include/uapi/linux/kvm.h > @@ -1177,6 +1177,7 @@ struct kvm_ppc_resize_hpt { > #define KVM_CAP_VM_DISABLE_NX_HUGE_PAGES 220 > #define KVM_CAP_S390_ZPCI_OP 221 > #define KVM_CAP_S390_CPU_TOPOLOGY 222 > +#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 225 I can see 223 in Paolo's next, is there a 224 that I've missed? > > #ifdef KVM_CAP_IRQ_ROUTING >