[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240508184743778PSWkv_r8dMoye7WmZ7enP@zte.com.cn>
Date: Wed, 8 May 2024 18:47:43 +0800 (CST)
From: <cheng.lin130@....com.cn>
To: <pbonzini@...hat.com>
Cc: <kvm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<jiang.yong5@....com.cn>, <wang.liang82@....com.cn>,
<jiang.xuexin@....com.cn>
Subject: [PATCH] KVM: introduce vm's max_halt_poll_ns to debugfs
From: Cheng Lin <cheng.lin130@....com.cn>
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 <cheng.lin130@....com.cn>
---
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
Powered by blists - more mailing lists