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>
15 lines
253 B
Makefile
15 lines
253 B
Makefile
softmmu-main-y = softmmu/main.o
|
|
|
|
obj-y += arch_init.o
|
|
obj-y += cpus.o
|
|
obj-y += cpu-throttle.o
|
|
obj-y += balloon.o
|
|
obj-y += ioport.o
|
|
obj-y += memory.o
|
|
obj-y += memory_mapping.o
|
|
|
|
obj-y += qtest.o
|
|
|
|
obj-y += vl.o
|
|
vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
|