projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4621c17
)
virtio-rng: disable timer on device removal
author
Amit Shah
<amit.shah@redhat.com>
Wed, 21 Nov 2012 05:51:20 +0000
(11:21 +0530)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 26 Nov 2012 20:26:37 +0000
(14:26 -0600)
Disable the rate-limit timer on device remove (e.g. hot-unplug).
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-rng.c
patch
|
blob
|
history
diff --git
a/hw/virtio-rng.c
b/hw/virtio-rng.c
index cf5a8ff77eb533b3cd07ebf1ffa92363da0b3117..c8a6da7fbb3a41e91e94e84f7da1c9654b0fb1ec 100644
(file)
--- a/
hw/virtio-rng.c
+++ b/
hw/virtio-rng.c
@@
-194,6
+194,8
@@
void virtio_rng_exit(VirtIODevice *vdev)
{
VirtIORNG *vrng = DO_UPCAST(VirtIORNG, vdev, vdev);
+ qemu_del_timer(vrng->rate_limit_timer);
+ qemu_free_timer(vrng->rate_limit_timer);
unregister_savevm(vrng->qdev, "virtio-rng", vrng);
virtio_cleanup(vdev);
}