diff options
| author | John Snow | 2016-09-23 03:45:51 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-09-29 14:13:37 +0200 |
| commit | 22af08eacf6b5aa0e6c0581e547380b3eb4f95e9 (patch) | |
| tree | 96ed961aa4ea94be347ad9a984509308fd2d5dc2 /include | |
| parent | block: reintroduce bdrv_flush_all (diff) | |
| download | qemu-22af08eacf6b5aa0e6c0581e547380b3eb4f95e9.tar.gz qemu-22af08eacf6b5aa0e6c0581e547380b3eb4f95e9.tar.xz qemu-22af08eacf6b5aa0e6c0581e547380b3eb4f95e9.zip | |
qemu: use bdrv_flush_all for vm_stop et al
Reimplement bdrv_flush_all for vm_stop. In contrast to blk_flush_all,
bdrv_flush_all does not have device model restrictions. This allows
us to flush and halt unconditionally without error.
This allows us to do things like migrate when we have a device with
an open tray, but has a node that may need to be flushed, or nodes
that aren't currently attached to any device and need to be flushed.
Specifically, this allows us to migrate when we have a CDROM with
an open tray.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
