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>
Showing
- accel/kvm/kvm-all.c 19 additions, 1 deletionaccel/kvm/kvm-all.c
- include/hw/core/cpu.h 6 additions, 0 deletionsinclude/hw/core/cpu.h
- include/sysemu/dirtylimit.h 15 additions, 0 deletionsinclude/sysemu/dirtylimit.h
- softmmu/dirtylimit.c 291 additions, 0 deletionssoftmmu/dirtylimit.c
- softmmu/trace-events 7 additions, 0 deletionssoftmmu/trace-events
Loading
Please register or sign in to comment