]> git.ipfire.org Git - thirdparty/qemu.git/commit
dma-helpers: explicitly pass alignment into DMA helpers
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 27 Oct 2016 20:29:13 +0000 (16:29 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Dec 2016 15:27:59 +0000 (09:27 -0600)
commit8d5f2a75702b1975f8f2f2b866bde0b60493e3c3
tree27f6ae9841c32d8ef24217d6500882ac9620165a
parent5f20161cf30a7f4e543578177887c9c02747ce27
dma-helpers: explicitly pass alignment into DMA helpers

The hard-coded default alignment is BDRV_SECTOR_SIZE, however this is not
necessarily the case for all platforms. Use this as the default alignment for
all current callers.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Message-id: 1476445266-27503-2-git-send-email-mark.cave-ayland@ilande.co.uk
Signed-off-by: John Snow <jsnow@redhat.com>
(cherry picked from commit 99868af3d0a75cf6a515a9aa81bf0d7bcb39eadb)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
dma-helpers.c
hw/block/nvme.c
hw/ide/ahci.c
hw/ide/core.c
hw/scsi/scsi-disk.c
include/sysemu/dma.h