Alignment checks cleanup
Status from this message: Thanks, applied to my block branch:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | block: Use QEMU_IS_ALIGNEDblock/ block/ block/ +5 more | +19 | 0 replies | |
| 2/2 | block: Remove unused masksinclude/ migration/ | +1 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Juan Quintela | John Snow |
|---|---|---|
| Series | R-b | |
| 1/2 | ||
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v2 0/2] Alignment checks cleanup
While working on 4k support, I noticed that there is lot of code using BDRV_SECTOR_SIZE (512) for checking alignment. I wonder how this can work with 4k storage.
Lets start by cleaning up to make the code easier to understand:
- Use QEMU_IS_ALIGNED macro to check alignment
- Remove unneeded masks based on BDRV_SECTOR_SIZE
Nir Soffer (2):
block: Use QEMU_IS_ALIGNED
block: Remove unused masks
block/bochs.c | 4 ++-- block/cloop.c | 4 ++-- block/dmg.c | 4 ++-- block/io.c | 8 ++++---- block/qcow2-cluster.c | 4 ++-- block/qcow2.c | 4 ++-- block/vvfat.c | 8 ++++---- include/block/block.h | 2 -- migration/block.c | 2 +- qemu-img.c | 2 +- 10 files changed, 20 insertions(+), 22 deletions(-)
Signature · 1 line
2.20.1