virtio-balloon: reset the statistic timer to load device
commitfecb48f7444edd29d2d6f048ce6460e1a23d0204
authorPavel Butsykin <pbutsykin@virtuozzo.com>
Tue, 29 Mar 2016 14:00:49 +0000 (29 17:00 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 16:57:33 +0000 (7 19:57 +0300)
tree182db61f902ebd19965accc604c8c75d7c27269f
parent3d100d0fa9ee4826425ea1c2a120a0f661d8e739
virtio-balloon: reset the statistic timer to load device

If before loading snapshot we had set the timer of statistics, then after
applying snapshot the expiry time would be irrelevant for the restored
state of the virtual clocks. A simple fix is just to restart the timer
after loading snapshot.

For the user it may look like a long delay of statistics update after switch
to the snapshot.

Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-balloon.c