summary refs log tree commit diff stats
path: root/docs/devel/secure-coding-practices.rst
diff options
context:
space:
mode:
authorYury Kotov <yury-kotov@yandex-team.ru>2019-09-09 16:13:34 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2019-09-16 17:13:07 +0200
commitbd1f7ff4b27444740786274c41caf3e9b9c35bba (patch)
tree691a6d3cb12041fe2185f5d1e00e6e2c555aea98 /docs/devel/secure-coding-practices.rst
parent3dcc9c6ec4ea60fd1464b35aa82199483f24ba75 (diff)
downloadfocaccia-qemu-bd1f7ff4b27444740786274c41caf3e9b9c35bba.tar.gz
focaccia-qemu-bd1f7ff4b27444740786274c41caf3e9b9c35bba.zip
cpus: Fix throttling during vm_stop
Throttling thread sleeps in VCPU thread. For high throttle percentage
this sleep is more than 10ms. E.g. for 60% - 15ms, for 99% - 990ms.
vm_stop() kicks all VCPUs and waits for them. It's called at the end of
migration and because of the long sleep the migration downtime might be
more than 100ms even for downtime-limit 1ms.
Use qemu_cond_timedwait for high percentage to wake up during vm_stop.

Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190909131335.16848-3-yury-kotov@yandex-team.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/devel/secure-coding-practices.rst')
0 files changed, 0 insertions, 0 deletions