Re: [Qemu-devel] [PATCH] virtio-blk: Allow config-wce in dataplane

2014-05-13 Thread Stefan Hajnoczi
On Tue, May 13, 2014 at 11:06:51AM +0200, Paolo Bonzini wrote: > Il 13/05/2014 09:13, Fam Zheng ha scritto: > >On Tue, 05/13 09:07, Paolo Bonzini wrote: > >>Il 13/05/2014 04:24, Fam Zheng ha scritto: > >>>Dataplane now uses block layer. Protect bdrv_set_enable_write_cache with > >>>aio_context_acqu

Re: [Qemu-devel] [PATCH] virtio-blk: Allow config-wce in dataplane

2014-05-13 Thread Paolo Bonzini
Il 13/05/2014 09:13, Fam Zheng ha scritto: On Tue, 05/13 09:07, Paolo Bonzini wrote: Il 13/05/2014 04:24, Fam Zheng ha scritto: Dataplane now uses block layer. Protect bdrv_set_enable_write_cache with aio_context_acquire and aio_context_release, so we can enable config-wce to allow guest to mod

Re: [Qemu-devel] [PATCH] virtio-blk: Allow config-wce in dataplane

2014-05-13 Thread Paolo Bonzini
Il 13/05/2014 04:24, Fam Zheng ha scritto: Dataplane now uses block layer. Protect bdrv_set_enable_write_cache with aio_context_acquire and aio_context_release, so we can enable config-wce to allow guest to modify the write cache online. Signed-off-by: Fam Zheng --- This applies on top of Stef

Re: [Qemu-devel] [PATCH] virtio-blk: Allow config-wce in dataplane

2014-05-13 Thread Fam Zheng
On Tue, 05/13 09:07, Paolo Bonzini wrote: > Il 13/05/2014 04:24, Fam Zheng ha scritto: > >Dataplane now uses block layer. Protect bdrv_set_enable_write_cache with > >aio_context_acquire and aio_context_release, so we can enable config-wce > >to allow guest to modify the write cache online. > > > >S

[Qemu-devel] [PATCH] virtio-blk: Allow config-wce in dataplane

2014-05-12 Thread Fam Zheng
Dataplane now uses block layer. Protect bdrv_set_enable_write_cache with aio_context_acquire and aio_context_release, so we can enable config-wce to allow guest to modify the write cache online. Signed-off-by: Fam Zheng --- This applies on top of Stefan's "dataplane: use QEMU block layer" series