block: add BlockLimits.max_iov field
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Jul 2015 09:56:44 +0000 (10:56 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 22 Dec 2015 08:01:07 +0000 (16:01 +0800)
commitbd44feb754bdb1354f9813ca5dfe883f3d058193
tree4a827ef93d32907b0bd9fdd3ff1cb4dcbb89bc3e
parent49cffbc6079c27432b4635d5d03ce14a249d86e2
block: add BlockLimits.max_iov field

The maximum number of struct iovec elements depends on the
BlockDriverState.  The raw-posix and iSCSI protocols have a maximum of
IOV_MAX but others could have different values.

Cc: Peter Lieven <pl@kamp.de>
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c
include/block/block_int.h