Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp866455rwi; Mon, 10 Oct 2022 08:10:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZloLurwPy/LUYQ35gkHCArCL3z3kFZfYlofEnaRFxCRtVHhdkSN34Zsicen4o+KnoluGr X-Received: by 2002:a17:906:d54d:b0:786:6f5:e0c1 with SMTP id cr13-20020a170906d54d00b0078606f5e0c1mr15008379ejc.293.1665414653503; Mon, 10 Oct 2022 08:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665414653; cv=none; d=google.com; s=arc-20160816; b=hRvBcl1hnZYx5fpFx8nQ5oA+NWv6X4F4hw9Ln5bNkAsicFOpQQksZetIqyHpDCoGvK AyUx93s9ax6hoHMjzxehrK8O2mKTfUH+t3JL+0QnxpMRUEtRPXRyzxiVYa8Y55ZTU2J3 vtDmnyhITxBtuGWYBq9mV4ee6dy0E8XB+M9sC7IRKnOlr4Ot7RZB9MTzK8lhfaSfSN7G uQGymkAPtDIjnyWbxFlvYTKxyPYgOZIJdH+5w19LUNlufhYjTsj+XIcBMSufym4Jl0Bi 4UvgM9JDgQLVz5yXguzUWOcneGxnCEtNqSge6Be4sUPnuWQhhq3zAF9iO8WNeE9UBKt4 8MSA== 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=tVzF3OnfiJmIRl2NMjESrl/0+Lw3fClzEhm6Xcc9cK8=; b=T/CC15qCb3yRwPgHeMv3pxaodB7d+xz2ulwgBal5hYXNc/ut9ly108ZzJ5/zsgyoWq CbnhKPSDgYcqrjXHYHRNwuqGQS1UxbDpu1wS9YzQfkr/ST/NGNqmDgteclglI+AKd2aG qA8Jgsq9I5x5C7Z5A8IWzJom4QdFdVJnHAvsVE7t7c6ru4m4vqnaBTE07bFyfe0ubN8k JY9d5xsuHXhjLnQDM4AZ0pKK1+aUxuANC5AFr/j9T2kVgK9lbzHrFyw6ryF/z2dEqkel O62e5IfLthjm5WXmZIK0Efsj46a4ufOPKN3lK9jekV9tPd0SMzagytW1Mp2awxJzwz5H zndQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=N3eEAED+; 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 a3-20020a17090640c300b0078307781936si9824923ejk.359.2022.10.10.08.10.20; Mon, 10 Oct 2022 08:10:53 -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=N3eEAED+; 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 S229988AbiJJOzc (ORCPT + 99 others); Mon, 10 Oct 2022 10:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbiJJOyy (ORCPT ); Mon, 10 Oct 2022 10:54:54 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31996FF8; Mon, 10 Oct 2022 07:54:52 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29AEesAl025507; Mon, 10 Oct 2022 14:54:51 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=tVzF3OnfiJmIRl2NMjESrl/0+Lw3fClzEhm6Xcc9cK8=; b=N3eEAED+kzaK/0wjvcCrM5dZFQ62p7O79WhT9vas25Dcd8hUPohuI1q9Yul9JGNynmdr lx85dDD2XMV/ku837yUogBck8qr4+ZFvdKWxtBWZE9a89UL0D0/oOj+2QFp6V0fLGhnO zPJFN1WtD0C1XzraHvpx53mJxu/7JDyIypVfyL8O3Eb8IsG0vypssjBcazbc90raNElJ 7T6fxDyzREfstfan8UTMBTQRzre2+k38U8h0S7ae2ER3UBtw1kCt/3NYneFM9JCSgTtw CuNUxYLIRkExUdFPedcRtuwIqHc6tRyd8/3IAKJHS60MgLaau5g+2wbxW0OUaEaz7pAl lg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3k3k7vg612-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 14:54:51 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29AEWjAv017752; Mon, 10 Oct 2022 14:54:50 GMT Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3k3k7vg60f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 14:54:50 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 29AEowR0023153; Mon, 10 Oct 2022 14:54:48 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma05fra.de.ibm.com with ESMTP id 3k30u9j657-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Oct 2022 14:54:48 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 29AEsjN84194820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Oct 2022 14:54:45 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 32D7C52051; Mon, 10 Oct 2022 14:54:45 +0000 (GMT) Received: from p-imbrenda.boeblingen.de.ibm.com (unknown [9.152.224.242]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id D186952052; Mon, 10 Oct 2022 14:54:44 +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 v15 6/6] KVM: s390: pv: module parameter to fence asynchronous destroy Date: Mon, 10 Oct 2022 16:54:42 +0200 Message-Id: <20221010145442.85867-7-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221010145442.85867-1-imbrenda@linux.ibm.com> References: <20221010145442.85867-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: fDybC6RGejcEVCMgjVxAKuWmKwDwhSY7 X-Proofpoint-GUID: KvY1zL-FxOMBuAvJmAGPtfw1qqE5Nn1N X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-10_08,2022-10-10_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210100086 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 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 --- 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 372230b92448..c75754215c8e 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 -- 2.37.3