qemu/softmmu
Claudio Fontana b0c3cf9407 cpu-throttle: new module, extracted from cpus.c
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>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20200629093504.3228-3-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-07-10 18:04:49 -04:00
..
arch_init.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
balloon.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
cpu-throttle.c cpu-throttle: new module, extracted from cpus.c 2020-07-10 18:04:49 -04:00
cpus.c cpu-throttle: new module, extracted from cpus.c 2020-07-10 18:04:49 -04:00
ioport.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
main.c softmmu: split off vl.c:main() into main.c 2020-02-22 08:26:47 +00:00
Makefile.objs cpu-throttle: new module, extracted from cpus.c 2020-07-10 18:04:49 -04:00
memory_mapping.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
memory.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
qtest.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
vl.c util/qemu-error: prepend guest name to error message to identify affected VM owner 2020-07-10 18:02:15 -04:00