Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp464940pxb; Wed, 18 Aug 2021 06:33:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypojLpMVtLSeCx7j4pr1uG1UEsgJW+j5eO4f5LpkHSnvauolcly0V4XqpZ/bL441lZfLd/ X-Received: by 2002:a17:906:6dcb:: with SMTP id j11mr9733001ejt.202.1629293592531; Wed, 18 Aug 2021 06:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629293592; cv=none; d=google.com; s=arc-20160816; b=NCLVllSN3GO6NlQ9dhJpxIoCl5Hkc0YPdeGP03iUH7Xp9wIv8eccnCJTdaSVl9Iv/+ eJIlnHqR477+0bcBHmgSlLwacGuD+7bTDiA9nNeIj1CqJ6N/Td3M1fKk6VUSXatYoWMt DuMIrWATjBHFOwPnXvUAyeQdZbgCEpknim26E1E00r6Idx/TImr61hERupgU9WBYAe0x 02EEfy6obqBjUfFLaLVBuCeEYCCdwlCsIcStOJihzJGIYx6nB1YVt8IToWVny0+x0EpO nO5+9Mx5J5IvRoixJuPmC6C0ilahyb5J9lxW7KEIoBmGeWbD4VMh7Byhem4KSNi4wIN6 oJ/A== 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=x5PZeyPBaek7Iqe5TwKkxZbOU0aAnyskveP1evgWngU=; b=Te/5iM4XHxBecxKVG4O4yVqmqlrDmbCG9ZwVE4VK8PdQXedUvyGvZqcxILBQaJSpw6 yYalFqnHOA1D5kj7RBRLI6dkmzhg8FKaPZbSB9T5uQd+XS793nv0ItmnmZGgh73IZc/J Sh56iIO347ddhIVgQNnCtPpNKCu5ohi7/PG9y9HZLJR8F1/kl3HgZBVOf0V/4WRz5jsG v0exfSjGiAI5zrNV0iNWBSK9/C6GPLqnQkzYxcwlNtxYDzv0+rl3X8dOCPXNwhdhu/A3 qqx2keaqK830Z/oDPaL6B/ntE7Wg4L86cM1tc4/mMcM8sLfl4oJcjiHpE9+3/vwdCgIH txfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Iygeeugp; 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 s15si5596477ejc.168.2021.08.18.06.32.48; Wed, 18 Aug 2021 06:33:12 -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=Iygeeugp; 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 S238156AbhHRN2a (ORCPT + 99 others); Wed, 18 Aug 2021 09:28:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:22378 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237277AbhHRN1L (ORCPT ); Wed, 18 Aug 2021 09:27:11 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17ID3aAc024965; Wed, 18 Aug 2021 09:26:37 -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=x5PZeyPBaek7Iqe5TwKkxZbOU0aAnyskveP1evgWngU=; b=Iygeeugp4HpuMX/LxTyBIOEzHYdPqxAfsTkJ8aGvohZkhVrqT+NwzJndqDc9yn8r3xbE tb9jc7idr6HRw0jWlXrI1mQy9DojAWiLf7KhAZVZGUO6ywzJ/agUsWRpF9JwjL2ELDA3 AhwmHb94B/d7oS8qw7q4vVZ1F0Eo2VaiL/X9hdD4PqTR5LAJVUplX1gtEhiho1j/iRSL Gex9hMM0M78mNuOYXGp0vDC+FwVu/Pqs6TcJShQg2j0vhP8GQzzBEvm3Zr40OslKQBxB sJ+oYRiaTGXFPlav8u61tAbNWdvaj81vSumBqhEFd4FCOFi/JLDSWvByLaP64rQZoGef YA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3agcf6e9x6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Aug 2021 09:26:36 -0400 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 17ID5dWn035650; Wed, 18 Aug 2021 09:26:36 -0400 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 3agcf6e9wa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Aug 2021 09:26:36 -0400 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 17IDDZVu022548; Wed, 18 Aug 2021 13:26:33 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma04fra.de.ibm.com with ESMTP id 3ae5f8dqx3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Aug 2021 13:26:33 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 17IDQTU051118488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Aug 2021 13:26:29 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 35DCE4C04A; Wed, 18 Aug 2021 13:26:29 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9195B4C050; Wed, 18 Aug 2021 13:26:28 +0000 (GMT) Received: from p-imbrenda.bredband2.com (unknown [9.145.14.177]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 Aug 2021 13:26:28 +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 v4 12/14] KVM: s390: pv: module parameter to fence lazy destroy Date: Wed, 18 Aug 2021 15:26:18 +0200 Message-Id: <20210818132620.46770-13-imbrenda@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210818132620.46770-1-imbrenda@linux.ibm.com> References: <20210818132620.46770-1-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: hbKQPKnC9-aTZoZwi3LfyNV5n3UwfQtF X-Proofpoint-GUID: 03YDx1XvMeXfnB4mBFolQBMlbnLMExs9 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-18_04:2021-08-17,2021-08-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 mlxscore=0 suspectscore=0 phishscore=0 adultscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108180082 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 ee11ff6afc4f..e29109af7956 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