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)
commitaa659be3dc2aa86614bcf6960f9d4af2a4362156
tree86739e8a381966394455528f26880d5de82a436b
parentb0484ae464dcd8ee7439c4257b2f40d6b0e007dd
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