From c999f1260f196a8375d0047c08eac0a044225514 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 4 Jan 2011 19:30:06 +0200 Subject: [PATCH] kvm: Make virtio block device read-only Signed-off-by: Pekka Enberg --- tools/kvm/blk-virtio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/kvm/blk-virtio.c b/tools/kvm/blk-virtio.c index c484ca243813..9b7190e1c508 100644 --- a/tools/kvm/blk-virtio.c +++ b/tools/kvm/blk-virtio.c @@ -33,6 +33,7 @@ static struct device device = { .blk_size = 4096, }, .host_features = (1UL << VIRTIO_BLK_F_GEOMETRY) + | (1UL << VIRTIO_BLK_F_RO) | (1UL << VIRTIO_BLK_F_BLK_SIZE), }; -- 2.39.5