mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-19 08:02:15 -06:00
scsi-disk: propagate the required alignment
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
316a7af350
commit
73fdb1e195
1 changed files with 1 additions and 0 deletions
|
@ -1178,6 +1178,7 @@ static int scsi_disk_initfn(SCSIDevice *dev)
|
||||||
s->qdev.blocksize = s->qdev.conf.logical_block_size;
|
s->qdev.blocksize = s->qdev.conf.logical_block_size;
|
||||||
}
|
}
|
||||||
s->cluster_size = s->qdev.blocksize / 512;
|
s->cluster_size = s->qdev.blocksize / 512;
|
||||||
|
s->bs->buffer_alignment = s->qdev.blocksize;
|
||||||
|
|
||||||
s->qdev.type = TYPE_DISK;
|
s->qdev.type = TYPE_DISK;
|
||||||
qemu_add_vm_change_state_handler(scsi_dma_restart_cb, s);
|
qemu_add_vm_change_state_handler(scsi_dma_restart_cb, s);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue