diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2017-05-22 14:57:01 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-06-26 14:51:13 +0200 |
commit | dc88a467ec7214c3086094033daf2aba554337b1 (patch) | |
tree | fdf50888939286f3c8b67d851ff2a41f104ed839 /contrib | |
parent | 24575bfa8c05041db097d203c5506814db0fa110 (diff) | |
download | qemu-dc88a467ec7214c3086094033daf2aba554337b1.zip qemu-dc88a467ec7214c3086094033daf2aba554337b1.tar.gz qemu-dc88a467ec7214c3086094033daf2aba554337b1.tar.bz2 |
block: count bdrv_co_rw_vmstate() requests
Call bdrv_inc/dec_in_flight() for vmstate reads/writes. This seems
unnecessary at first glance because vmstate reads/writes are done
synchronously while the guest is stopped. But we need the bdrv_wakeup()
in bdrv_dec_in_flight() so the main loop sees request completion.
Besides, it's cleaner to count vmstate reads/writes like ordinary
read/write requests.
The bdrv_wakeup() partially fixes a 'savevm' hang with -object iothread.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions