From eb7aad6756eeba6aec6964c4d0be7fcc7a198b2a Mon Sep 17 00:00:00 2001 From: Asias He Date: Sun, 9 Jan 2011 16:48:39 +0800 Subject: [PATCH] kvm,virtio: do not publish read only feature to guest We support write operations now. Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- tools/kvm/blk-virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/blk-virtio.c b/tools/kvm/blk-virtio.c index 3f79f81b6eb0..3720c83d855a 100644 --- a/tools/kvm/blk-virtio.c +++ b/tools/kvm/blk-virtio.c @@ -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) -- 2.39.5