virtio-blk: add volatile writecache feature
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Sep 2009 17:02:23 +0000 (19:02 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:19:46 +0000 (10:19 -0500)
commitf1e4874e6aabc94615e98800eb654dcc9790b53d
tree86739e8a381966394455528f26880d5de82a436b
parente484bd82157664772f5f145568de4865db842c05
virtio-blk: add volatile writecache feature

Add a new VIRTIO_BLK_F_WCACHE feature to virtio-blk to indicate that we have
a volatile write cache that needs controlled flushing.  Implement a
VIRTIO_BLK_T_FLUSH operation to flush it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-blk.c
hw/virtio-blk.h