projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f8e668
)
virtio-blk: propagate the required alignment
author
Christoph Hellwig
<hch@lst.de>
Sun, 12 Sep 2010 21:43:39 +0000
(23:43 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 21 Sep 2010 13:39:42 +0000
(15:39 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/virtio-blk.c
patch
|
blob
|
history
diff --git
a/hw/virtio-blk.c
b/hw/virtio-blk.c
index bd6bbe6b14d7605ff37e19555e38ceb66f5f4579..a1df26dbcf311490a66ddcc8aa198a0033953797 100644
(file)
--- 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;
}