Re: [Qemu-devel] [PATCH for-2.5 1/4] block: add BlockLimits.max_iov field

2015-07-09 Thread Stefan Hajnoczi
On Thu, Jul 09, 2015 at 06:39:02AM +0200, Peter Lieven wrote: Am 08.07.2015 um 17:30 schrieb Stefan Hajnoczi: The maximum number of struct iovec elements depends on the BlockDriverState. The raw-posix protocol has a maximum of IOV_MAX but others could have different values. Instead of

[Qemu-devel] [PATCH for-2.5 1/4] block: add BlockLimits.max_iov field

2015-07-08 Thread Stefan Hajnoczi
The maximum number of struct iovec elements depends on the BlockDriverState. The raw-posix protocol has a maximum of IOV_MAX but others could have different values. Instead of assuming raw-posix and hardcoding IOV_MAX in several places, put the limit into BlockLimits. Cc: Peter Lieven

Re: [Qemu-devel] [PATCH for-2.5 1/4] block: add BlockLimits.max_iov field

2015-07-08 Thread Peter Lieven
Am 08.07.2015 um 17:30 schrieb Stefan Hajnoczi: The maximum number of struct iovec elements depends on the BlockDriverState. The raw-posix protocol has a maximum of IOV_MAX but others could have different values. Instead of assuming raw-posix and hardcoding IOV_MAX in several places, put the