Re: [PATCH] vhost: max s/g to match qemu

2010-09-14 Thread Michael S. Tsirkin
On Tue, Sep 14, 2010 at 11:53:05PM +0800, Jason Wang wrote: > Qemu supports up to UIO_MAXIOV s/g so we have to match that because guest > drivers may rely on this. > > Allocate indirect and log arrays dynamically to avoid using too much > contigious > memory and make the length of hdr array to ma

[PATCH] vhost: max s/g to match qemu

2010-09-14 Thread Jason Wang
Qemu supports up to UIO_MAXIOV s/g so we have to match that because guest drivers may rely on this. Allocate indirect and log arrays dynamically to avoid using too much contigious memory and make the length of hdr array to match the header length since each iovec entry has a least one byte. Test