mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
virtio-rng: stop virtqueue while the CPU is stopped
If we modify the virtio-rng virqueue while the vmstate is already migrated we can have some inconsistencies between the virtqueue state and the memory content. To avoid this, stop the virtqueue while the CPU is stopped. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Amit Shah <amit@kernel.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
e8199e4895
commit
a23a6d1839
3 changed files with 30 additions and 8 deletions
|
@ -45,6 +45,8 @@ typedef struct VirtIORNG {
|
|||
QEMUTimer *rate_limit_timer;
|
||||
int64_t quota_remaining;
|
||||
bool activate_timer;
|
||||
|
||||
VMChangeStateEntry *vmstate;
|
||||
} VirtIORNG;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue