Signed-off-by: Christoph Hellwig <h...@lst.de>

Index: qemu/hw/virtio-blk.c
===================================================================
--- qemu.orig/hw/virtio-blk.c   2010-09-12 14:42:46.721759377 -0300
+++ qemu/hw/virtio-blk.c        2010-09-12 14:51:09.737759375 -0300
@@ -540,6 +540,7 @@ VirtIODevice *virtio_blk_init(DeviceStat
     register_savevm(dev, "virtio-blk", virtio_blk_id++, 2,
                     virtio_blk_save, virtio_blk_load, s);
     bdrv_set_removable(s->bs, 0);
+    s->bs->buffer_alignment = conf->logical_block_size;
 
     return &s->vdev;
 }

Reply via email to