[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v5 2/4] cpu-throttle: new module, extracted from cpus.c
From: |
Alex Bennée |
Subject: |
Re: [RFC v5 2/4] cpu-throttle: new module, extracted from cpus.c |
Date: |
Tue, 16 Jun 2020 14:19:07 +0100 |
User-agent: |
mu4e 1.5.3; emacs 28.0.50 |
Claudio Fontana <cfontana@suse.de> writes:
> move the vcpu throttling functionality into its own module.
>
> This functionality is not specific to any accelerator,
> and it is used currently by migration to slow down guests to try to
> have migrations converge, and by the cocoa MacOS UI to throttle speed.
>
> cpu-throttle contains the controls to adjust and inspect throttle
> settings, start (set) and stop vcpu throttling, and the throttling
> function itself that is run periodically on vcpus to make them take a nap.
>
> Execution of the throttling function on all vcpus is triggered by a timer,
> registered at module initialization.
>
> No functionality change.
>
> Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
[RFC v5 3/4] cpu-timers, icount: new modules, Claudio Fontana, 2020/06/15