From: Pekka Enberg Date: Tue, 4 Jan 2011 17:30:06 +0000 (+0200) Subject: kvm: Make virtio block device read-only X-Git-Tag: next-20110824~3^2~528^2~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c999f1260f196a8375d0047c08eac0a044225514;p=karo-tx-linux.git kvm: Make virtio block device read-only Signed-off-by: Pekka Enberg --- 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), };