On 31.01.2017 17:09, Alberto Garcia wrote: > Passing a request size larger than INT_MAX to any of the I/O commands > results in an error. While 'read' and 'write' handle the error > correctly, 'aio_read' and 'aio_write' hit an assertion: > > blk_aio_read_entry: Assertion `rwco->qiov->size == acb->bytes' failed. > > The reason is that the QEMU I/O code cannot handle request sizes > larger than INT_MAX, so this patch makes qemu-io check that all values > are within range. > > Signed-off-by: Alberto Garcia <be...@igalia.com> > --- > qemu-io-cmds.c | 21 ++++++++++++--------- > 1 file changed, 12 insertions(+), 9 deletions(-)
Thanks, applied to my block tree, with %s/INT_MAX/BDRV_REQUEST_MAX_BYTES/g: https://github.com/XanClic/qemu/commits/block (Maybe you should take a quick glance on whether all of the changes are really OK for you, the commit currently resides under https://github.com/XanClic/qemu/commit/beaf099368f91eb44ebd49e863c57bc0ff80659f ) Max
signature.asc
Description: OpenPGP digital signature