]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm,virtio: do not publish read only feature to guest
authorAsias He <asias.hejun@gmail.com>
Sun, 9 Jan 2011 08:48:39 +0000 (16:48 +0800)
committerPekka Enberg <penberg@kernel.org>
Sun, 9 Jan 2011 08:55:50 +0000 (10:55 +0200)
We support write operations now.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/blk-virtio.c

index 3f79f81b6eb0a3294ca845c15e9c985661a68c2d..3720c83d855af4c584f0a0105a753e129c694b76 100644 (file)
@@ -60,7 +60,7 @@ static struct device device = {
         * node kernel will compute disk geometry by own, the
         * same applies to VIRTIO_BLK_F_BLK_SIZE
         */
-       .host_features          = (1UL << VIRTIO_BLK_F_RO),
+       .host_features          = 0,
 };
 
 static bool virtio_blk_config_in(void *data, unsigned long offset, int size, uint32_t count)