diff options
author | Fam Zheng <famz@redhat.com> | 2015-11-23 10:28:04 +0800 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2015-12-02 10:44:06 -0500 |
commit | 176c36997fd4a94a7b919468d8967e0ad81fdf9c (patch) | |
tree | dc9869b8486c34bb076523735178bec2e4d8bd1a /hmp.c | |
parent | 9d7b969ea6d9663a94760c6c131481b366f4d38a (diff) | |
download | qemu-176c36997fd4a94a7b919468d8967e0ad81fdf9c.zip qemu-176c36997fd4a94a7b919468d8967e0ad81fdf9c.tar.gz qemu-176c36997fd4a94a7b919468d8967e0ad81fdf9c.tar.bz2 |
mirror: Quiesce source during "mirror_exit"
With dataplane, the ioeventfd events could be dispatched after
mirror_run releases the dirty bitmap, but before mirror_exit actually
does the device switch, because the iothread will still be running, and
it will cause silent data loss.
Fix this by adding a bdrv_drained_begin/end pair around the window, so
that no new external request will be handled.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'hmp.c')
0 files changed, 0 insertions, 0 deletions