public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: introduce vm's max_halt_poll_ns to debugfs
@ 2024-05-08 10:47 cheng.lin130
  2024-05-08 15:58 ` Sean Christopherson
  0 siblings, 1 reply; 9+ messages in thread
From: cheng.lin130 @ 2024-05-08 10:47 UTC (permalink / raw)
  To: pbonzini; +Cc: kvm, linux-kernel, jiang.yong5, wang.liang82, jiang.xuexin

From: Cheng Lin <cheng.lin130@zte.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@zte.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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-05-15  4:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 10:47 [PATCH] KVM: introduce vm's max_halt_poll_ns to debugfs cheng.lin130
2024-05-08 15:58 ` Sean Christopherson
2024-05-09  2:30   ` cheng.lin130
2024-05-09 14:59     ` Sean Christopherson
2024-05-10  3:18       ` cheng.lin130
2024-05-10 14:07         ` Sean Christopherson
2024-05-11  2:34           ` cheng.lin130
2024-05-14 22:00             ` Sean Christopherson
2024-05-15  4:03               ` cheng.lin130

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox