From: <cheng.lin130@zte.com.cn>
To: <pbonzini@redhat.com>
Cc: <kvm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<jiang.yong5@zte.com.cn>, <wang.liang82@zte.com.cn>,
<jiang.xuexin@zte.com.cn>
Subject: [PATCH] KVM: introduce vm's max_halt_poll_ns to debugfs
Date: Wed, 8 May 2024 18:47:43 +0800 (CST) [thread overview]
Message-ID: <20240508184743778PSWkv_r8dMoye7WmZ7enP@zte.com.cn> (raw)
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
next reply other threads:[~2024-05-08 10:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-08 10:47 cheng.lin130 [this message]
2024-05-08 15:58 ` [PATCH] KVM: introduce vm's max_halt_poll_ns to debugfs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240508184743778PSWkv_r8dMoye7WmZ7enP@zte.com.cn \
--to=cheng.lin130@zte.com.cn \
--cc=jiang.xuexin@zte.com.cn \
--cc=jiang.yong5@zte.com.cn \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=wang.liang82@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).