virtio-blk: Allow config-wce in dataplane
authorFam Zheng <famz@redhat.com>
Thu, 15 May 2014 11:22:06 +0000 (19:22 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:12 +0000 (09:56 +0200)
commit6d7e73d62fa32813b6f6a3575db2e9b5e0d43387
tree23ecafea16541ce74c3cd4f1ff327488ff862ea8
parentdb519cba8713fb49aa5233e8debe61dccdd3a57f
virtio-blk: Allow config-wce in dataplane

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 <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c
hw/block/virtio-blk.c