]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-refcount.c
qcow2: Use Qcow2Cache in writeback mode during loadvm/savevm
authorKevin Wolf <kwolf@redhat.com>
Tue, 19 Jul 2011 11:01:48 +0000 (13:01 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Jul 2011 13:39:22 +0000 (15:39 +0200)
commit93913dfd8acbaddc8ef3716cd7b8a2830c99cb19
tree4bec586c8b3b30c6ab432fe1237070cfa9a93428
parent4a1d5e1fded54358ddc4d8cbd53388ca7c93499b
qcow2: Use Qcow2Cache in writeback mode during loadvm/savevm

In snapshotting there is no guest involved, so we can safely use a writeback
mode and do the flushes in the right place (i.e. at the very end). This
improves the time that creating/restoring an internal snapshot takes with an
image in writethrough mode.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cache.c
block/qcow2-refcount.c
block/qcow2.h