Re: [PATCH] KVM: introduce vm's max_halt_poll_ns to debugfs

cheng.lin130
2024-05-09T04:02:09Z

> From: seanjc <seanjc@google.com>
> > 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.
> Why?
If a vm's max_halt_poll_ns has been set using KVM_CAP_HALT_POLL,
the module parameter kvm.halt_poll.ns will no longer indicate the maximum
halt pooling interval for that vm. After introducing these two attributes into
debugfs, it can be used to check whether the individual configuration of the
vm is enabled and the working value.
This patch provides a way to check and modify them through the debugfs.