Re: [Qemu-devel] [PATCH 11/12] dirty-bitmap: Switch bdrv_set_dirty() to bytes

2017-04-12 Thread John Snow
On 04/12/2017 01:49 PM, Eric Blake wrote: > Both callers already had bytes available, but were scaling to > sectors. Move the scaling to internal code. In the case of > bdrv_aligned_pwritev(), we are now passing the exact offset > rather than a rounded sector-aligned value, but that's okay > as

[Qemu-devel] [PATCH 11/12] dirty-bitmap: Switch bdrv_set_dirty() to bytes

2017-04-12 Thread Eric Blake
Both callers already had bytes available, but were scaling to sectors. Move the scaling to internal code. In the case of bdrv_aligned_pwritev(), we are now passing the exact offset rather than a rounded sector-aligned value, but that's okay as long as dirty bitmap widens start/bytes to granularit