Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3990735iog; Tue, 28 Jun 2022 07:00:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u2OGEs3jGpaSWYfm4Js5WqtrQJKgUfb94swP3/DR/D+4JVaeP9J/nEYgHx/Ty2LNmXHwPF X-Received: by 2002:a17:90b:3d0f:b0:1ed:3b8c:7cb1 with SMTP id pt15-20020a17090b3d0f00b001ed3b8c7cb1mr22303260pjb.44.1656424809764; Tue, 28 Jun 2022 07:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656424809; cv=none; d=google.com; s=arc-20160816; b=Cet/1PG3enrqCsjXvhX8CJKFvK991WYdkVIx6VvKdHGv7MjZ6AhlV89Xoau07eIXO8 99iOmO0Ai4g8ibYTKB2kPCPDZWCnZ2y3ppuOrW2PAP86w3GgsYyjz7it1Le6O9cX0El2 geyBpieKU7+d/PqmXywOH/0PN+Yxvr7+HO3G3C6hD2hzesOr1VdXR2d+L7hZJS9mL4Pr mH41e+um3V9dGTBD3pFV6gqhJh1PoEsIPlYZR0qg5PJ6HBNfsYUZ+/QGaL39mOWdkqMu gzpZ2FtK8799/MvhVOqdKzD4oIvsEH/Qpb6T/6FE1iQPgDL37MhpvtDHBb4YIsMT0a8L QINQ== 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=gh4tKYtm1pvr7YsD9ohPt8+vLTu/8Zmo4iRootKKYOE=; b=Z1bSzm/02cGpGvZ2uMsV9EL0beLB41IZ95XlSovHyLJTCNenOg+zlvScc1MfzH42Nh W+yRDhlDDI0PqH6dNOdDzP+yWENZcVHMbXI4R+U6OG8vdPcdz+2HsRSwjbteWpv7oOG7 4mbZZrf3IVSidjGgKSVY13f8PoR8GlKveHL59eAFQNn4ZS29lZeCyldRa5UBviS1JbB3 HK2JFRlE710cdk3hMluZvjmW0jjE6UD/6mOEQMIGTLjHUnp7I8TnoH9Z6v79eKRjq2f3 /SQdBHjBe0hm+Mf8BmAUewIjR+QhJyO5hBR3FTNAaryiD1o6SDh3Xnx/canpR/0zQ6gE 3Fag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=WFJs+d5n; 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 i7-20020a170902c94700b001678898e70bsi21479817pla.223.2022.06.28.06.59.57; Tue, 28 Jun 2022 07:00:09 -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=WFJs+d5n; 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 S1345443AbiF1N6Y (ORCPT + 99 others); Tue, 28 Jun 2022 09:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346941AbiF1N4l (ORCPT ); Tue, 28 Jun 2022 09:56:41 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E51F0338BD; Tue, 28 Jun 2022 06:56:34 -0700 (PDT) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25SDiUZx014336; Tue, 28 Jun 2022 13:56:34 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=gh4tKYtm1pvr7YsD9ohPt8+vLTu/8Zmo4iRootKKYOE=; b=WFJs+d5n6tUdApuBL41/ClcrPhQK/wCba52dLX2ZjINIrO2HNCKTywloCbOGHCQW9RVA CFXGcK/92VVjsU/tvNJB2LCxobErUlWg4RscSYpb0r2FRwPV/XNbQEv9oTqig4vwSfir ncISXL5vpadHBN1LqC+OEgd4zgJMHBwj8DS0WoXzFOYdy9yLVgUc0Mkpi9d33uTJCNm0 cAHjj7sHgv+Tq9W5glJkuORSy1TYOnF+m5FV3QFi9+gIWWZssTjoWCH1QFjUHaTpsAUW lIswHwdfodO8V2p5fNE3VPpdDYtHyJRqq6CdNN3cAYSslW7GLW4JF9kYX0uskxPRiRF9 VA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h02swge78-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jun 2022 13:56:33 +0000 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 25SDkRDH022795; Tue, 28 Jun 2022 13:56:32 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h02swge66-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jun 2022 13:56:32 +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 25SDofGZ029788; Tue, 28 Jun 2022 13:56:31 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06fra.de.ibm.com with ESMTP id 3gwsmhuq8m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jun 2022 13:56:30 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25SDuSsE18284952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Jun 2022 13:56:28 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E7FAF4C040; Tue, 28 Jun 2022 13:56:27 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85AC24C04A; Tue, 28 Jun 2022 13:56:27 +0000 (GMT) Received: from p-imbrenda.boeblingen.de.ibm.com (unknown [9.152.224.40]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 28 Jun 2022 13:56: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 v12 18/18] KVM: s390: pv: module parameter to fence asynchronous destroy Date: Tue, 28 Jun 2022 15:56:19 +0200 Message-Id: <20220628135619.32410-19-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220628135619.32410-1-imbrenda@linux.ibm.com> References: <20220628135619.32410-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: tu0dYUrB7JaQ3qli1Xxm1Yl42h86qgYx X-Proofpoint-ORIG-GUID: E3ralzxKz22Vh-ucH_mO3Kkf92k1Dc0C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-28_07,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 suspectscore=0 clxscore=1015 mlxscore=0 adultscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206280057 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, 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 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 --- 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 0b1e45668682..3f16553ca39b 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -207,7 +207,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 -- 2.36.1