Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp410888lqo; Wed, 8 May 2024 03:48:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtSRo4Q4wfj9QXNewQrJ76okeE3KaZNrqiQuPhvis1xaw1BzgmXBfeTpOFaJDuIn5aBBSO3DxxaMxCJDOehmenUmuk02Vyg4zzWEFPfA== X-Google-Smtp-Source: AGHT+IGsHlkITJOZMzDu62SAoW70phsVkR3WQocbUzeLTH2FFToQ7UXWbGTUCKxRBWm9EFaqEtWY X-Received: by 2002:a05:622a:1a0d:b0:43c:5d37:5a97 with SMTP id d75a77b69052e-43dbed30d10mr29011771cf.31.1715165287503; Wed, 08 May 2024 03:48:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715165287; cv=pass; d=google.com; s=arc-20160816; b=Dyd89lPqcmlMGj3DJgoCvpkj1oBDQuOy/lCRCayBh/t+4UTi7JfRW2h4tdmCKBgcJ2 dF7okjPp707k9do51P23uhEj4S1ld8lkikccDbS/MsI+09rneKKc3Qwr9onnHuap7Qqp a3umJbqlGsCNALeq3uMZLdrlmO5Y6x4aUd5h78pekZkLSIrqrCIqZFt9+4psmET3KDYN yylO4Vkms3PxCxDHvnAMp60Db4FNB12PjfKIXqf9/PfujtQWmnmBJ8cshR2SGF+KA3VW 86fx8O+gHhM9kFil9vEUxgx1bd/PgapyfKBfwOH/vwANG18yqBCSWu4Zz8RISMi4/RcR tibA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date; bh=pfIM8+igVaUBxFGzKL9eKejpZzgjYug43TrI0ABYQoI=; fh=oxzqdVwjLCgsQgvtswIr4zvv0DLhNH4/tZm5CS1r59s=; b=x3INCFwEAc8Dcdz89hUyfmPNxA1E32OuuaYpq9fA2TTvQyr5Y8irtEC+NxuyQNBS4I bMvJQN4aEu7m2IK4UrNsyDup0diPd6DXJXVLiYlZTqq3LbpQF/hyZ03gKnDy2j9L4gMP x8nXyGZnxTDDs181E2Efvc0GohzxQmibEvFpC/Bnl6CRCVBm6QL/FW4JHPBty7HJaT9f kDkwGrMMrDAJMoCRO/1ceit3Yi2ZBsXdTJ/ztp3J1DUm+w3vRAFjTOqBOjqyx2kXlPsw DEVSORjVDFYgy7kQdns4ex5HWzTylWgCrG1z98OonWkTrZb3+uOsXrgVv8mYlUmFuyfA 2MSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zte.com.cn dmarc=pass fromdomain=zte.com.cn); spf=pass (google.com: domain of linux-kernel+bounces-173081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q19-20020a05622a04d300b004367c34191fsi13888739qtx.548.2024.05.08.03.48.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 03:48:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zte.com.cn dmarc=pass fromdomain=zte.com.cn); spf=pass (google.com: domain of linux-kernel+bounces-173081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3638B1C20E2B for ; Wed, 8 May 2024 10:48:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3A878175F; Wed, 8 May 2024 10:47:59 +0000 (UTC) Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A62F2836D; Wed, 8 May 2024 10:47:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.216.63.40 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715165279; cv=none; b=MATLTSxwd6RsElsAnXWmxvsqIRljMrD1isVvTCcvI8X6dUdhQ7zaBQOu17xNG9eiHY7+rifV8/zOze1OUzqr8txcknP9ubWAtR2exQ4hre2TWzLbMACEpb2od1+BvPv/VrANOc9Bl64uPGPlUPv+uLbyGkvp6pYMtYveDf9UA70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715165279; c=relaxed/simple; bh=+MeneR5VBNEb2SdP/icWDmNsj1Rc5U6B2Yd4fQBwbcc=; h=Date:Message-ID:Mime-Version:From:To:Cc:Subject:Content-Type; b=qL9VJj3FoFNDXDtY8bZjFtkxHb7+1YRhiYDkaT0GBnLRQNME0hIMZ7h47rSVWdCYfDIvXCBiN4s1Y8J84+9rM70L3I6cU+fhalJyOvyEk6QkICJstuKQC79E+dII5cgJBzyd+9R+Bqt/KrTThGjwNCuPeWF3bg/17/P5tJiWCcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn; spf=pass smtp.mailfrom=zte.com.cn; arc=none smtp.client-ip=63.216.63.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4VZBgN4rRBz8XrSC; Wed, 8 May 2024 18:47:44 +0800 (CST) Received: from szxlzmapp02.zte.com.cn ([10.5.231.79]) by mse-fl1.zte.com.cn with SMTP id 448AleAv005282; Wed, 8 May 2024 18:47:40 +0800 (+08) (envelope-from cheng.lin130@zte.com.cn) Received: from mapi (szxlzmapp04[null]) by mapi (Zmail) with MAPI id mid14; Wed, 8 May 2024 18:47:43 +0800 (CST) Date: Wed, 8 May 2024 18:47:43 +0800 (CST) X-Zmail-TransId: 2b06663b584fffffffff84b-63ef0 X-Mailer: Zmail v1.0 Message-ID: <20240508184743778PSWkv_r8dMoye7WmZ7enP@zte.com.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?UTF-8?B?W1BBVENIXSBLVk06IGludHJvZHVjZSB2bSdzIG1heF9oYWx0X3BvbGxfbnMgdG8gZGVidWdmcw==?= Content-Type: text/plain; charset="UTF-8" X-MAIL:mse-fl1.zte.com.cn 448AleAv005282 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 663B5850.000/4VZBgN4rRBz8XrSC From: Cheng Lin Introduce vm's max_halt_poll_ns and override_halt_poll_ns to debugfs. Provide a way to check and modify them. Signed-off-by: Cheng Lin --- virt/kvm/kvm_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index ff0a20565..60dae952c 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1151,6 +1151,11 @@ static int kvm_create_vm_debugfs(struct kvm *kvm, const char *fdname) &stat_fops_per_vm); } + debugfs_create_bool("override_halt_poll_ns", 0444, kvm->debugfs_dentry, + &kvm->override_halt_poll_ns); + debugfs_create_u32("max_halt_poll_ns", 0644, kvm->debugfs_dentry, + &kvm->max_halt_poll_ns); + kvm_arch_create_vm_debugfs(kvm); return 0; out_err: -- 2.18.1