]> git.proxmox.com Git - mirror_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)
committerJohn Snow <jsnow@redhat.com>
Thu, 27 Oct 2016 20:29:13 +0000 (16:29 -0400)
commit99868af3d0a75cf6a515a9aa81bf0d7bcb39eadb
treed5763d2625f5f74ecd5e750b76c5017ce67d39eb
parent835f3d24b42fcbeca5c49048994a4e5d0fe905c5
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>
dma-helpers.c
hw/block/nvme.c
hw/ide/ahci.c
hw/ide/core.c
hw/scsi/scsi-disk.c
include/sysemu/dma.h