qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

vhdx: use QEMU_ALIGN_DOWN

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>

+1 -1
+1 -1
block/vhdx-log.c
··· 902 902 } 903 903 904 904 sector_offset = offset % VHDX_LOG_SECTOR_SIZE; 905 - file_offset = (offset / VHDX_LOG_SECTOR_SIZE) * VHDX_LOG_SECTOR_SIZE; 905 + file_offset = QEMU_ALIGN_DOWN(offset, VHDX_LOG_SECTOR_SIZE); 906 906 907 907 aligned_length = length; 908 908