From patchwork Fri Nov 11 17:06:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudio Imbrenda X-Patchwork-Id: 18918 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863782wru; Fri, 11 Nov 2022 09:10:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ELtkwdsD0PZm3EMAStpPUYR3XRjvOUgV5WcnoF2UKW3XPAwTJ/00UL04u4HtdztX3CO/A X-Received: by 2002:a63:6686:0:b0:44c:bfe:9b1c with SMTP id a128-20020a636686000000b0044c0bfe9b1cmr2484504pgc.103.1668186616031; Fri, 11 Nov 2022 09:10:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668186616; cv=none; d=google.com; s=arc-20160816; b=KXf1H1QFnfB//WVJNipmtv9vljRLlO17m3Lj02s6GuOB5AA8VPu4Uc45TXV4ofAoOz fwVWky1pRXeiS4lF1Bxbf3y09k1wd9ZO8s2HFDhI/JriWF6L2SLuBPIxhbi6RsJ6u/PH MtNG4mx77/U6sM54BftAV5yNSjzfVvC1QQJT5yxjboW1gtxXdLzTLTn2D17l1iHTUkm/ giZgVX6QIn1O/t6KrgyDI4Jw6lmdvI2qdKYtoi9KJsfgM4Zrcbq1Z+gWxzPSOhH1TQ0G geSzF/ezKd7+RyKGZfNEGGrdx0gJCNsZXY7Tw8qM+hg63hDajniWtNkmCxAUMjVuaDqz EzeA== 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=+1JT3i0OUmdtvKwwNNS5GNLVUJmNSC/hwxshkEqDE8E=; b=DxiDGBmaWJMTKzwjqTt6x86l5X8QLVAIcwN0vtbtVMb3/XeEgS2fdRb5Nuu3+FiUAa hy8Z/AO6zbvLiDFSlIeWBkl16Eijkr94PyV+X5MDbAtuehLYtpV6Vq9nvc7G9EQjx57W vZDrZk5xdrPkcQe4u20IM13cibSLtxMN84KniFnQS9YOMgIim6E5G49DG/QWNLfOhuFo 6X/iqwfLe51WzAPEnxHA00yegml0M22OC38eTyCP9mhgou+n5kaC61RbbWq8vn8Va4TK YFXTypQy46pJL9tD6w3ZKswPp5c0QkpDp5b+DySOUyiM32oGuTRFbnh+bbHjUZQ4ssqh wKng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eAr+Aa6a; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m73-20020a633f4c000000b004708a45ee17si2917950pga.262.2022.11.11.09.10.00; Fri, 11 Nov 2022 09:10:16 -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=eAr+Aa6a; 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 S234215AbiKKRHS (ORCPT + 99 others); Fri, 11 Nov 2022 12:07:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233768AbiKKRGt (ORCPT ); Fri, 11 Nov 2022 12:06:49 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9BA773422; Fri, 11 Nov 2022 09:06:48 -0800 (PST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2ABGrWjC027496; Fri, 11 Nov 2022 17:06:48 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=+1JT3i0OUmdtvKwwNNS5GNLVUJmNSC/hwxshkEqDE8E=; b=eAr+Aa6a7LQTNh242QtIec7PSWYzRPlvIxpriSVgtvH4bC+4f2zZbpkaek2yRpeGslZH WiRlEVbM5i+GIB+j/XmOssLe4SETfhoLHDiP4K8QsHODcDQOXzp67XsKur25HepxRrpK LE7/kDioUMM2N/2gat4Lvet8t9TEcj2SWVQKXVzr+JQ5/iUdF8htaLLmBZnSWtZgW2iq CQk4XhynqK5nAOeyBWulCIhm9Kzlwws3qP7WOg6pv1scijJaCWtBrIoiS+cT6V2CkKcn WiRbsP4p058s78EM9Ozll8Z4hGqaKBanWEwNfo53SW4SDz3uvENQnhdqIH2v9Bw3ufWu 1Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3kstag8bbm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:47 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2ABH0K6l021444; Fri, 11 Nov 2022 17:06:47 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3kstag8b9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:47 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2ABH5oLi018876; Fri, 11 Nov 2022 17:06:45 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06fra.de.ibm.com with ESMTP id 3kngq8pnnh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Nov 2022 17:06:45 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2ABH6glu1639018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Nov 2022 17:06:42 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE1FF4C044; Fri, 11 Nov 2022 17:06:41 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 689D64C040; Fri, 11 Nov 2022 17:06:41 +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:41 +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 6/6] KVM: s390: pv: module parameter to fence asynchronous destroy Date: Fri, 11 Nov 2022 18:06:32 +0100 Message-Id: <20221111170632.77622-7-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 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: UzYzXfZSFM6tpGlhzEjOUBizsTtWA5lC X-Proofpoint-ORIG-GUID: MKWqEm0Kf4MV9XEyonoyo52U1yjlp6fg 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 priorityscore=1501 mlxscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 mlxlogscore=999 clxscore=1015 suspectscore=0 adultscore=0 phishscore=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749220449086729973?= X-GMAIL-MSGID: =?utf-8?q?1749220449086729973?= Add the module parameter "async_destroy", to allow the asynchronous destroy mechanism to be switched off. This might be useful for debugging purposes. The parameter is enabled by default since the feature is opt-in anyway. Signed-off-by: Claudio Imbrenda Reviewed-by: Janosch Frank Reviewed-by: Steffen Eiden Reviewed-by: Nico Boehr --- arch/s390/kvm/kvm-s390.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index b6cc7d2935c0..8a0c884bf737 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -209,7 +209,13 @@ unsigned int diag9c_forwarding_hz; module_param(diag9c_forwarding_hz, uint, 0644); MODULE_PARM_DESC(diag9c_forwarding_hz, "Maximum diag9c forwarding per second, 0 to turn off"); -static int async_destroy; +/* + * allow asynchronous deinit for protected guests; enable by default since + * the feature is opt-in anyway + */ +static int async_destroy = 1; +module_param(async_destroy, int, 0444); +MODULE_PARM_DESC(async_destroy, "Asynchronous destroy for protected guests"); /* * For now we handle at most 16 double words as this is what the s390 base