Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2250413pxb; Mon, 20 Sep 2021 16:37:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuu9Xr7mXMiGNMsg16UTE3DVjUPeMUqPmRuW6PAAsA5Xg8fAVdLuf5RrAjUmUSJLBei/7L X-Received: by 2002:a6b:4e0d:: with SMTP id c13mr13788335iob.143.1632181019983; Mon, 20 Sep 2021 16:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632181019; cv=none; d=google.com; s=arc-20160816; b=YBSoM7/LPse3WdUw4EhQP0kGVIWoBaonN4dPDqvphoYH2hg0Ck5eCL+eBPzCT4skxi 78ObcZMTDCmfwAWFI9I6cDLWjdktVHKobDOv/V2HU6FozA+9PZsnOqW+Xf+Ex7yQ4qsx +PSidwesvtZ/rBZoOQewxSDARXirsEetTMPFNmQSfgSxEb8VjN7JYoj45El1Ah+vHMG6 BZOFvcoD12UIIvIeo1yx0+FxRaCE7GP0zAIO5cnRA8w803Io1HT86hFvZlwSMqwcPynK o/PbXOU0VaCQzYF0be8I8WOBaJb08z3OTQP+kt7qmct5ZYGK4vnV+12FMpPKrGicijUH Gxyw== 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=z4zZOxRhR/PP5Kejyew8pSTRSsYl0g7S4W3Khb84A1w=; b=MQ9w6YuCX2307t7xDHf9caTGRBxYno5nGR7E++a54laQR3ppYTF5OMyuomSxABQ6dF yfF3YXznT9/oE9X9XekfuWyWTXe8dRx2MonofgM/1lycvU1Qiqdy0pAjlp6CVrK2TQCx lEmehWDxEEl+DRD8U1FgLbwTl0aRLn0N99W+dCDKwvw/9w5UEEFMFcj+uZVyKxlRMEeL XVgHTr94GYdbKQMRxqVj93K8ef876et2Y3A+Erqf53eXkQ5VjwxHmsecPkeWG5iyKr8q Ch3bLIm3LHrMV8JpDcjkmmUsYuOkk+V8wxauMgHl/Faoh8e6MeZ6O0l7EsnPZ+eQNJOg a32Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=leQ7Ic4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r1si13321504ilg.125.2021.09.20.16.36.48; Mon, 20 Sep 2021 16:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=leQ7Ic4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239702AbhITN2A (ORCPT + 99 others); Mon, 20 Sep 2021 09:28:00 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:46052 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239469AbhITN0o (ORCPT ); Mon, 20 Sep 2021 09:26:44 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18KDD3uF022784; Mon, 20 Sep 2021 09:25:17 -0400 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=z4zZOxRhR/PP5Kejyew8pSTRSsYl0g7S4W3Khb84A1w=; b=leQ7Ic4LQckc84KD0iwJkwBRKnJPsrQZ363tgiGfi+/Fklpd5DlvXlbMqU+477LXADIG jLSia1YKhLi2he/twmxS4kQn8rx293OtHlEzm4jyTOYwx2QeKv3C8QyjZm6p1dPp4w6f DVWSXBZaSUDKJZgYTVtrzYr4sTmpyhagpV3u/8bR8VY/duuXLHtpcoyb+Kdg+U/50PiF AFnINkjQHScRA48Ut/Oibn0qHq9edhp3OTjW/8LFzRviHwvP9dnEr5hD8q0g4QnffcM1 5JnHAKzVx/xF5czD7vZuFrtqgi/OkBcpCIU26mtF0CE09THFFR9m1AQLHAKHCugUqWfp IQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3b5w78ac6x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Sep 2021 09:25:17 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 18KDP97a011176; Mon, 20 Sep 2021 09:25:17 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3b5w78ac5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Sep 2021 09:25:17 -0400 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 18KDD6kx029262; Mon, 20 Sep 2021 13:25:14 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 3b57cj8yas-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Sep 2021 13:25:14 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 18KDKRna50790706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Sep 2021 13:20:27 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EFAEBA4059; Mon, 20 Sep 2021 13:25:09 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D399A4057; Mon, 20 Sep 2021 13:25:09 +0000 (GMT) Received: from p-imbrenda.ibmuc.com (unknown [9.145.9.241]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 20 Sep 2021 13:25:09 +0000 (GMT) From: Claudio Imbrenda To: kvm@vger.kernel.org Cc: cohuck@redhat.com, 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, Ulrich.Weigand@de.ibm.com Subject: [PATCH v5 12/14] KVM: s390: pv: module parameter to fence lazy destroy Date: Mon, 20 Sep 2021 15:25:00 +0200 Message-Id: <20210920132502.36111-13-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210920132502.36111-1-imbrenda@linux.ibm.com> References: <20210920132502.36111-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: bengnXYFQ98JpFpiOLnuyxn05ojMpw1L X-Proofpoint-ORIG-GUID: 5n6Z8jdKoBSr31KaMOHNrnYoKCBSNCZR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-20_07,2021-09-20_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109200084 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the module parameter "lazy_destroy", to allow the lazy 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/pv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/s390/kvm/pv.c b/arch/s390/kvm/pv.c index eb13382c3d36..77a972187033 100644 --- a/arch/s390/kvm/pv.c +++ b/arch/s390/kvm/pv.c @@ -16,6 +16,10 @@ #include #include "kvm-s390.h" +static int lazy_destroy = 1; +module_param(lazy_destroy, int, 0444); +MODULE_PARM_DESC(lazy_destroy, "Deferred destroy for protected guests"); + int kvm_s390_pv_destroy_cpu(struct kvm_vcpu *vcpu, u16 *rc, u16 *rrc) { int cc; -- 2.31.1