diff options
| author | Jason Wang | 2014-05-20 08:01:43 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 15:41:54 +0200 |
| commit | 508e1180d3e8371a902ba721d2c9e1ee04c33a15 (patch) | |
| tree | 378ce34ac117bcc20b66b10d3d7bf4fe1a669e7c /savevm.c | |
| parent | migration: export SELF_ANNOUNCE_ROUNDS (diff) | |
| download | qemu-508e1180d3e8371a902ba721d2c9e1ee04c33a15.tar.gz qemu-508e1180d3e8371a902ba721d2c9e1ee04c33a15.tar.xz qemu-508e1180d3e8371a902ba721d2c9e1ee04c33a15.zip | |
migration: introduce self_announce_delay()
This patch introduces self_announce_delay() to calculate the delay for
the next announce round. This could be used by other device e.g
virtio-net who wants to do announcing by itself.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'savevm.c')
| -rw-r--r-- | savevm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ static void qemu_announce_self_once(void *opaque) if (--count) { /* delay 50ms, 150ms, 250ms, ... */ timer_mod(timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + - 50 + (SELF_ANNOUNCE_ROUNDS - count - 1) * 100); + self_announce_delay(count)); } else { timer_del(timer); timer_free(timer); |
