Re: [PATCH v6 12/23] virt: Introduce steal monitor driver
From: Shrikanth Hegde
Date: Mon Jul 06 2026 - 04:33:46 EST
On 7/3/26 11:57 PM, Yury Norov wrote:
On Fri, Jul 03, 2026 at 02:20:32PM -0400, Yury Norov wrote:
On Wed, Jul 01, 2026 at 07:46:43PM +0530, Shrikanth Hegde wrote:
Introduce a new driver in virt named steal_monitor. This driver
will compute the steal time and drive the policy decisions of preferred
CPU state.
More on it can be found in the Documentation/driver-api/steal-monitor.rst
Introduce the skeleton code first.
There is no new kconfig. It depends on CONFIG_PREFERRED_CPU.
- If CONFIG_PREFERRED_CPU=y, it gets compiled as a module. It is not
loaded by default.
What if I've got my own monitor, and don't need this one? Please add a
way to not compile it, even if CONFIG_PREFERRED_CPU is enabled.
You mean make a new config like VIRT_MONITOR depend on CONFIG_PREFERRED_CPU and
make it as default n?
Can we defer this until such a new monitor is needed?
We will in state where CONFIG_PREFERRED_CPU=y & VIRT_MONITOR=n.