qemu/migration
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
..
block-dirty-bitmap.c migration: forbid bitmap migration by generated node-name 2020-05-28 13:15:22 -05:00
block.c
block.h
channel.c
channel.h
colo-failover.c
colo.c migration/colo.c: Move colo_notify_compares_event to the right place 2020-06-01 18:44:27 +01:00
exec.c
exec.h
fd.c
fd.h
global_state.c
Makefile.objs
migration.c cpu-throttle: new module, extracted from cpus.c 2020-07-10 18:04:49 -04:00
migration.h migration/colo.c: Use event instead of semaphore 2020-06-01 18:44:27 +01:00
multifd-zlib.c
multifd-zstd.c
multifd.c migration: fix multifd_send_pages() next channel 2020-06-17 17:48:39 +01:00
multifd.h
page_cache.c
page_cache.h
postcopy-ram.c virtio,acpi: features, fixes, cleanups. 2020-07-07 17:37:44 +01:00
postcopy-ram.h
qemu-file-channel.c
qemu-file-channel.h
qemu-file.c osdep: Make MIN/MAX evaluate arguments only once 2020-06-26 09:39:39 -04:00
qemu-file.h
qjson.c
qjson.h
ram.c cpu-throttle: new module, extracted from cpus.c 2020-07-10 18:04:49 -04:00
ram.h migration/colo.c: Flush ram cache only after receiving device state 2020-06-01 18:44:27 +01:00
rdma.c virtio,acpi: features, fixes, cleanups. 2020-07-07 17:37:44 +01:00
rdma.h
savevm.c migration/colo: Use ram_block_discard_disable() 2020-07-02 05:54:59 -04:00
savevm.h
socket.c
socket.h
tls.c
tls.h
trace-events
vmstate-types.c
vmstate.c
xbzrle.c
xbzrle.h