Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1552073pxb; Thu, 14 Apr 2022 08:32:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaKu3if4Fp+nthrmO+0QhXuzMjj0biC5XmRkWxUjgwFke1fJhlxtY9OqKmCFJA2X7u6p+R X-Received: by 2002:a17:907:728b:b0:6e8:c6d6:e7e with SMTP id dt11-20020a170907728b00b006e8c6d60e7emr2716730ejc.611.1649950332037; Thu, 14 Apr 2022 08:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649950332; cv=none; d=google.com; s=arc-20160816; b=qQ0UCvheE6PoYafIpiJnaotMTbG4E/Au9trGXuwRAtrP7hKVqC6KVjx9hZuYccixrg E4Lpr5OjfXnYa2OzicG5QKCNdB4i7Xu0ENzFhnuKE+dUyJkr+nAdYAp/IJT8v7zWaV5n Yy86FMEfwxMJVBSp3uTHNoLiksnXiuZgVWFDHy3R5zbtJmWxFpwKiTkInWXlimmSSD4k Ih9X0JfSFCHVMg23lbNaa8bGDD5XNGW45zEBuPu6pcvaiVfwzvbh2m2/DLguWYgQbx4v 1845TGii2CDHV93kT2U7hxUEsu5O20ofhADdfL6eJ4NNmQqaPai0wp7/kUpJfcOkFpw5 mQRQ== 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=mSUR0DM9hGd9C/8IsyepDDqKTCafUiNUYpeLN3HRnEU=; b=dkFxU5XrfWwQPN1LBNhDkeU9AOmfCHCY55u0sNyfckHQD1vkcvYSzKt6OUFON3fh4K 6IeV8RejtuO/BDBt1ay1FSwwi9JKkTBrN2piOP7N+aGAJ8om1MoI6rbshPdkcRFiWoC6 bXzih088zHM8dFdXBVh1MT+8ydAOk7fbOV4gcz17hfI2+aT7+pifqx9yvN5RSkh4Xi6/ obxeHp9A9bwIt/1GoiiKr1903yUP/fqq7G7OfFnWAK1ZriOgLzgbbS1CnX4ajbAGHP9V Q3DZLW78Rux3d3fBQZQu7f6oCLMzuUUA90xF2GIUYVoMvD0Kd+PpGqpaqz3F/++jWiA7 5Nxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=cqyEKqN4; 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 j25-20020a50ed19000000b0041d983f82b8si3693540eds.44.2022.04.14.08.31.46; Thu, 14 Apr 2022 08:32:12 -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=cqyEKqN4; 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 S240935AbiDNIGv (ORCPT + 99 others); Thu, 14 Apr 2022 04:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240733AbiDNIFv (ORCPT ); Thu, 14 Apr 2022 04:05:51 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01374CD65; Thu, 14 Apr 2022 01:03:27 -0700 (PDT) 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 23E7W0sC038575; Thu, 14 Apr 2022 08:03:27 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=mSUR0DM9hGd9C/8IsyepDDqKTCafUiNUYpeLN3HRnEU=; b=cqyEKqN4pBOfKVp6vK1jkX8F+PdgGoRmfPu5b2neOu4tQPrKP9qv5oWeiZYUXNF9AZd9 4VigAeSG1QS2R5Jz7cFQpkr4GEtl5WOAH6B2M6fAOR02OQkYLMauG1sbFWUIVGrq/3Rf t2c2JwQgL2PG+MpM/6z7sK2XqfcOivylPWCsioNCT6SETjgoTkDK0PnTj6aPkQnll1rm UbyuCZeBMTRXK/r3J9iwU79idNfnCqrPvLYIF9FNaXCafStkVfFeUJWrCSZRR1R5k3bV +QG1kmVQ++yeqWhZ1zvO2CPQNBOXQLtGfjaPW0ct4vvRcSGpQYi2J3sXinN8RhdqdlTD 6g== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3febx9vbdk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 08:03:27 +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 23E7rjNF015459; Thu, 14 Apr 2022 08:03:27 GMT Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 3febx9vbd0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 08:03:26 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23E7m9HO011893; Thu, 14 Apr 2022 08:03:24 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04fra.de.ibm.com with ESMTP id 3fb1s8xfv8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 08:03:24 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23E83LLl39780840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Apr 2022 08:03:21 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9A722AE053; Thu, 14 Apr 2022 08:03:21 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1288EAE04D; Thu, 14 Apr 2022 08:03:21 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.1.140]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 14 Apr 2022 08:03:20 +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 v10 07/19] KVM: s390: pv: module parameter to fence lazy destroy Date: Thu, 14 Apr 2022 10:02:58 +0200 Message-Id: <20220414080311.1084834-8-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220414080311.1084834-1-imbrenda@linux.ibm.com> References: <20220414080311.1084834-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: hwcRWpZgbWV1YZG6xuNzoFo08vQDBX6N X-Proofpoint-ORIG-GUID: WbH-6u9MoJ9vanrxtKaELNuhf5iE4ci9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-14_02,2022-04-13_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 mlxscore=0 bulkscore=0 mlxlogscore=971 priorityscore=1501 impostorscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204140044 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4,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 Add the module parameter "lazy_destroy", to allow the asynchronous destroy mechanism to be switched off. This might be useful for debugging purposes. The parameter is enabled by default. Signed-off-by: Claudio Imbrenda Reviewed-by: Janosch Frank --- arch/s390/kvm/kvm-s390.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 156d1c25a3c1..c7a8829e852c 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -206,6 +206,11 @@ 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"); +/* allow asynchronous deinit for protected guests */ +static int lazy_destroy = 1; +module_param(lazy_destroy, int, 0444); +MODULE_PARM_DESC(lazy_destroy, "Asynchronous destroy for protected guests"); + /* * For now we handle at most 16 double words as this is what the s390 base * kernel handles and stores in the prefix page. If we ever need to go beyond -- 2.34.1