Re: [Qemu-devel] [PATCH v3 7/7] qcow2: always operate caches in writeback mode

2012-06-10 Thread Paolo Bonzini
> Maybe we should add flushes in the right places in > higher level functions like bdrv_snapshot_create(). Yes, that would be better. Paolo

Re: [Qemu-devel] [PATCH v3 7/7] qcow2: always operate caches in writeback mode

2012-06-08 Thread Kevin Wolf
Am 06.06.2012 00:04, schrieb Paolo Bonzini: > Writethrough does not need special-casing anymore in the qcow2 caches. > The block layer adds flushes after every guest-initiated data write, > and these will also flush the qcow2 caches to the OS. > > Signed-off-by: Paolo Bonzini > diff --git a/bloc

[Qemu-devel] [PATCH v3 7/7] qcow2: always operate caches in writeback mode

2012-06-05 Thread Paolo Bonzini
Writethrough does not need special-casing anymore in the qcow2 caches. The block layer adds flushes after every guest-initiated data write, and these will also flush the qcow2 caches to the OS. Signed-off-by: Paolo Bonzini --- block/qcow2-cache.c| 25 ++--- block/qcow2-