]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/core/cpu.h
softmmu/dirtylimit: Implement virtual CPU throttle
authorHyman Huang(黄勇) <huangy81@chinatelecom.cn>
Sat, 25 Jun 2022 17:38:35 +0000 (01:38 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 20 Jul 2022 11:15:08 +0000 (12:15 +0100)
commitbaa609832e1849915b62be2abfbdc1d0e5909a7b
tree3a679a7051cd4547dabd3afcf1b777bdb1aae60f
parent4a06a7cc053deae16864359a5149bcb4442f8d2a
softmmu/dirtylimit: Implement virtual CPU throttle

Setup a negative feedback system when vCPU thread
handling KVM_EXIT_DIRTY_RING_FULL exit by introducing
throttle_us_per_full field in struct CPUState. Sleep
throttle_us_per_full microseconds to throttle vCPU
if dirtylimit is in service.

Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <977e808e03a1cef5151cae75984658b6821be618.1656177590.git.huangy81@chinatelecom.cn>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
accel/kvm/kvm-all.c
include/hw/core/cpu.h
include/sysemu/dirtylimit.h
softmmu/dirtylimit.c
softmmu/trace-events