Re: [Qemu-devel] [PATCH] file-posix: Incoporate max_segments in block limit

2017-03-07 Thread Fam Zheng
On Tue, 03/07 11:58, Paolo Bonzini wrote: > > > On 07/03/2017 03:17, Fam Zheng wrote: > > Linux exposes a separate limit, /sys/block/.../queue/max_segments, which > > in the worst case can be more restrictive than BLKSECTGET (as they are > > two different things). Similar to the BLKSECTGET story,

Re: [Qemu-devel] [PATCH] file-posix: Incoporate max_segments in block limit

2017-03-07 Thread Paolo Bonzini
On 07/03/2017 03:17, Fam Zheng wrote: > Linux exposes a separate limit, /sys/block/.../queue/max_segments, which > in the worst case can be more restrictive than BLKSECTGET (as they are > two different things). Similar to the BLKSECTGET story, guests don't see > this limit and send big requests w

[Qemu-devel] [PATCH] file-posix: Incoporate max_segments in block limit

2017-03-06 Thread Fam Zheng
Linux exposes a separate limit, /sys/block/.../queue/max_segments, which in the worst case can be more restrictive than BLKSECTGET (as they are two different things). Similar to the BLKSECTGET story, guests don't see this limit and send big requests will get -EINVAL error on SG_IO. Lean on the saf