Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp304524pxm; Wed, 2 Mar 2022 15:55:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqY8SZRFvGnlP6iOjcdug7eOKbGzjZlU0ElYTXqO7eDsvVFUFSz9kClViB6gYpo7MLgeuw X-Received: by 2002:a17:90a:7885:b0:1be:d757:fa73 with SMTP id x5-20020a17090a788500b001bed757fa73mr2322381pjk.169.1646265336694; Wed, 02 Mar 2022 15:55:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646265336; cv=none; d=google.com; s=arc-20160816; b=c8G0z4H9E+xUeZWcXy3vDar6dpF+VwrlFWwut2Yxo/reekXF54ft+zMWwNKQ53V33R H1d+vd06DS7fJlUgbLOXK17hVgbHA4sXgJFimmJeaHZK8AkGUbsb/W/jxWX8CWa9OsI6 hDMuT8B1pkwBu25vSrwvYE/S0LOG8lPYEgMBS4TDc6yorP6rKQ5HIDWz7BKC2hDPRlXR 6pr3i+MMH+wQ3I0B+0XGXTf1qxTD2OFdA9CSqsS0ZxOhP3KvwiER3Obd9POF8U6vl8+O JIiaZ7VKqFb0jogDxrh1uw4/IbewJShiMj1LhK2xpTrUeEinUU/I0cOV7RbMYT8PYY9f 1zDA== 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=gCvvGsZ5Fbh3DNezZjk0Yd0yRAM4k6rHjjD7LRc0iKU=; b=mEK04gW01fjf8/hgcNqhp7gvu3sBHo5eZfQAOQNIeQd0+2kYRz2Y4wfLrLnq4o0XmO UwVhA8/bPyk/bS9MvYyVGWaN+ucj5+JSAPE7pTMnzUM3TICJqCqAF15xvJ4CEa5BKLM3 pXgLjfMa7RxFVFj+N+IcAcHGyuVRzov2MVSkvQk91agh/HKaBFTnFgC88C9+qsSGIc09 SXwV/oep49Cnu/1D4r9rdhfP0NOEQHrEWK6W8DYt+5kO1pMpBDYySNDlRvETd33DFTnl JE7CrftX18U1V3n7C7Jr9z9e8swdB6Pre1mZx4M35U2U297Uwfmd9l1AYwh4M0zkMYG0 9VFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ON4hcbhH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id kb17-20020a17090ae7d100b001bf0b01f820si477249pjb.132.2022.03.02.15.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:55:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ON4hcbhH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06C85BEC; Wed, 2 Mar 2022 15:16:09 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244630AbiCBSM7 (ORCPT + 99 others); Wed, 2 Mar 2022 13:12:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244467AbiCBSMk (ORCPT ); Wed, 2 Mar 2022 13:12:40 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BF60CE922; Wed, 2 Mar 2022 10:11:56 -0800 (PST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 222GaLd3003426; Wed, 2 Mar 2022 18:11:55 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=gCvvGsZ5Fbh3DNezZjk0Yd0yRAM4k6rHjjD7LRc0iKU=; b=ON4hcbhHwpoovVb7612TT5E85KKHd5e9otTF0yS7jeWCX/JDHput25BANZeldHiwY8Gm TVwIYqoPVrhSK9MMM/yC18Po11xciS5sIIl2ykQMuU7AUxAQ6ZlqD5EKk9LH6ktCHSsB tcccP6k5gG9alYcPry4T9/ElydLVTMmK6G6m2elsOBQIPMzPHPumin91p4DpcUjzNetO JWj1ijSlQTfvd5D8+xlaCLuLXWbSCLFrtYSyZOM4WZFM5PCnJTgvIomEjS8lzhW7r0RY sRAeGOTMfxcBzyylN6358rSEc+F65PAF75uzL6cCBf4Myn2LBoCkgtLtxNFBzUrFhouB Wg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ejaa4n0yc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 18:11:55 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 222Hh8nV006675; Wed, 2 Mar 2022 18:11:54 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ejaa4n0y1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 18:11:54 +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 222I9dY5011226; Wed, 2 Mar 2022 18:11:52 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06fra.de.ibm.com with ESMTP id 3efbfj6416-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Mar 2022 18:11:52 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 222I0qIa44564874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 2 Mar 2022 18:00:52 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6329A52057; Wed, 2 Mar 2022 18:11:48 +0000 (GMT) Received: from p-imbrenda.ibmuc.com (unknown [9.145.5.37]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id D24FB5204F; Wed, 2 Mar 2022 18:11:47 +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 v8 07/17] KVM: s390: pv: module parameter to fence lazy destroy Date: Wed, 2 Mar 2022 19:11:33 +0100 Message-Id: <20220302181143.188283-8-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220302181143.188283-1-imbrenda@linux.ibm.com> References: <20220302181143.188283-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: xCHB-jGnYCdJ_09uxmW6xCN1zkPQQkC4 X-Proofpoint-GUID: Z0HvK4uieyyS24avN-T-2PyLBPkbpJUJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-02_12,2022-02-26_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 clxscore=1015 phishscore=0 adultscore=0 mlxlogscore=953 lowpriorityscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2203020078 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 2296b1ff1e02..702696189505 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -207,6 +207,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