]> git.proxmox.com Git - mirror_qemu.git/commit
hw/nvme: Change alignment in dma functions for nvme_blk_*
authorMateusz Kozlowski <kozlowski.mateuszpl@gmail.com>
Mon, 20 Mar 2023 12:40:36 +0000 (13:40 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 27 Mar 2023 15:48:08 +0000 (17:48 +0200)
commit9b4f01812f69ad6066725338c89945bb61f41823
treeb9e2cbbb13083683faded2c88d565605c64aafba
parente3debd5e7d0ce031356024878a0a18b9d109354a
hw/nvme: Change alignment in dma functions for nvme_blk_*

Since the nvme_blk_read/write are used by both the data and metadata
portions of the IO, it can't have the 512B alignment requirement.
Without this change any metadata transfer, which length isn't a multiple
of 512B and which is bigger than 512B, will result in only a partial
transfer.

Signed-off-by: Mateusz Kozlowski <kozlowski.mateuszpl@gmail.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c