Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp22865pxb; Wed, 30 Mar 2022 21:47:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPY6bpfViXPZyOKfv3v3d1sDiE8UoizRoMOfhOh58F29czrzOCop9OokPVLr8cAAu3mpyE X-Received: by 2002:a63:b20a:0:b0:398:9e3e:d581 with SMTP id x10-20020a63b20a000000b003989e3ed581mr7433035pge.236.1648702073797; Wed, 30 Mar 2022 21:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648702073; cv=none; d=google.com; s=arc-20160816; b=tXjRidZT0YqIlU4WAkw4pnY/vJLx1Kq2RTYKnNTCsBA23FdRaUBwSeLXRw43NVbvW7 1eMq/EPjIY5k7P5AwIXWEpWqjNKGdLWBmHDIbC4NAYH+c+6Oz29aN9fPsRZ08OUpuvf5 YtWaiVYdeWNnts+Ey1+fRdrsffXA0NhJgZr8e8WawLeZvputf978yo/twsH5llc4KU0C LqDbLcjJarrSBls3+nB+/KoB+2Y0KKW3A2KlmgVoHaghfCLIVVGzta3JCptecXl3XInE V6b6Pl1obuLN6X83cqwOw1cfWKkZWxYXdMmyPIe/qz5cKU7/Urb9CTcrUUDEAfhnaZCT /7nA== 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=uUcO2tDnSZ5bc2fn5Nn5idnlvfNoiayN2wMuIEx9oyeKtcdN0+M6fTGsY3eQOZw2fn gSkxJjaE/H5oXQIV6IDUz6TCGMavJaPyi2gux4lVTeWQB2U6Okt8nInTeWGw5MBiOh1f sOhiuW0JeFJUPLNVzOGmSFIMhcDMv8ckVU5hOXHrzIYDLnJI6rtZAXlbEPh6Yhv441mE 7uhzy5iXngsNKN7fQNRcuXsA2MaB8aQtNYdEKzYoF+i2Cy0Vh5/huwoHbKRPWrJshnYe w3PYpGn3JNddY4qnyCHVmoZbncs4ODLwvprQir6uhvl7/ys46ah+cm85G12FVUDoZAQB Ksjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=na7ueVXR; 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 u20-20020a63ef14000000b00386123c9f67si22647667pgh.148.2022.03.30.21.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:47:53 -0700 (PDT) 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=na7ueVXR; 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 691D1117C8F; Wed, 30 Mar 2022 20:27:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345122AbiC3Mjb (ORCPT + 99 others); Wed, 30 Mar 2022 08:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344501AbiC3Mh2 (ORCPT ); Wed, 30 Mar 2022 08:37:28 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEE7290FDF; Wed, 30 Mar 2022 05:26:21 -0700 (PDT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22UBjIhr021727; Wed, 30 Mar 2022 12:26:21 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=na7ueVXRrsDi46ZB2qeS2A/yXtcQBi95+WEZzy3yxW/HcmeHnGS3TlkI1zqCUKMoiuzh tezOdD64iNptTrc48KqQY1Y6C1dXR380lJia2Ir3vZgfaiOsPimlDeMZ7qfjgr6IsGCx d/CV2CcaNjK2XD9vh0hGtK5BvNJFRyxp8ts9u116HRU9D301tbiVZT4NAE6Y1Rbj4afk OjX1x1XRZZECKReuFyrWXAO4zAH5RksC7bGsQR6/zUR+db8GCp8bZu76HBgzSC8QxPek W1F1pHW9eXW4sCKH0JodC6rZ0ebBad/20t1otHZAlWnqwbDUGVUs/tFQsh0mFi9IE34/ Ig== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3f40v833hu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Mar 2022 12:26:20 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22UCFlFI023656; Wed, 30 Mar 2022 12:26:20 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 3f40v833ha-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Mar 2022 12:26:20 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22UCNPSa027038; Wed, 30 Mar 2022 12:26:18 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06ams.nl.ibm.com with ESMTP id 3f3rs3khp5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Mar 2022 12:26:18 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22UCEGVC47513928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Mar 2022 12:14:16 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6179911C050; Wed, 30 Mar 2022 12:26:15 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CA0C411C054; Wed, 30 Mar 2022 12:26:14 +0000 (GMT) Received: from localhost.localdomain (unknown [9.145.13.95]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 30 Mar 2022 12:26:14 +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 v9 07/18] KVM: s390: pv: module parameter to fence lazy destroy Date: Wed, 30 Mar 2022 14:25:54 +0200 Message-Id: <20220330122605.247613-8-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220330122605.247613-1-imbrenda@linux.ibm.com> References: <20220330122605.247613-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Y-eWCGk4TJshRvqWcBF_yF_8wb4zdOIV X-Proofpoint-ORIG-GUID: JJfZTkHieRJU8QcIKLeD_I0OUP7xd5sh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-30_04,2022-03-30_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 mlxscore=0 bulkscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 mlxlogscore=980 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203300062 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