• Jason Wang's avatar
    vhost: max s/g to match qemu · e0e9b406
    Jason Wang authored
    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: default avatarJason Wang <jasowang@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    e0e9b406
vhost.c 34.6 KB