The crypto read/write functions do their own fragmentation (because everything has to go through a bounce buffer); while we could advertise BLOCK_CRYPTO_MAX_IO_SIZE as our max_transfer (and let the block layer do our fragmentation for us), I'm instead choosing to document that this driver is 64-bit clean.
Signed-off-by: Eric Blake <ebl...@redhat.com> --- block/crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/crypto.c b/block/crypto.c index 33ee01bebd9..259ef2649e1 100644 --- a/block/crypto.c +++ b/block/crypto.c @@ -453,6 +453,7 @@ static void block_crypto_refresh_limits(BlockDriverState *bs, Error **errp) BlockCrypto *crypto = bs->opaque; uint64_t sector_size = qcrypto_block_get_sector_size(crypto->block); bs->bl.request_alignment = sector_size; /* No sub-sector I/O */ + bs->bl.max_transfer = INT64_MAX; } -- 2.17.2