From: Jason Wang Date: Tue, 14 Sep 2010 15:53:05 +0000 (+0800) Subject: vhost: max s/g to match qemu X-Git-Tag: v2.6.37-rc1~147^2~227^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0e9b406470b8dd75a115cf82c4791f41615c4c3;p=pandora-kernel.git vhost: max s/g to match qemu 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 with copying large files w/ and w/o migration in both linux and windows guests. Signed-off-by: Jason Wang Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed