qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] block: introduce max_hw_iov for use in scsi-generic


From: Halil Pasic
Subject: Re: [PATCH] block: introduce max_hw_iov for use in scsi-generic
Date: Thu, 23 Sep 2021 18:47:40 +0200

On Thu, 23 Sep 2021 16:28:11 +0200
Halil Pasic <pasic@linux.ibm.com> wrote:

> Can't we use some of the established constants instead of hard coding a
> qemu specific IOV_MAX?
> 
> POSIX.1 seems to guarantee the availability of IOV_MAX in <limits.h>
> according to: https://man7.org/linux/man-pages/man2/readv.2.html
> and <sys/uio.h> may have UIO_MAXIOV defined.

Never mind, the 
#define IOV_MAX 1024
in osdep.h is conditional and I guess we already use IOV_MAX from limit
when CONFIG_IOVEC is defined, i.e. when we don't emulate the interface.

Sorry for the noise.

Regards,
Halil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]