diff options
author | Christoph Hellwig <hch@lst.de> | 2010-09-12 23:43:39 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-09-21 15:39:42 +0200 |
commit | 316a7af35029d52c971f5df044eb69901d6f16ff (patch) | |
tree | 818f55ad7ef1f59b248ea52b824f8eed3385f407 /hw/virtio-blk.c | |
parent | 9f8e668eb1826434f61a63ff260d6c8b466e483a (diff) | |
download | qemu-316a7af35029d52c971f5df044eb69901d6f16ff.zip qemu-316a7af35029d52c971f5df044eb69901d6f16ff.tar.gz qemu-316a7af35029d52c971f5df044eb69901d6f16ff.tar.bz2 |
virtio-blk: propagate the required alignment
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/virtio-blk.c')
-rw-r--r-- | hw/virtio-blk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index bd6bbe6..a1df26d 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -540,6 +540,7 @@ VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf) 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; } |