Il 22/11/2012 12:58, Stefan Hajnoczi ha scritto: > Then we can pass the iovec[] array straight to > the Linux AIO functions. > > Since I knew the inhdr is only 1 byte I decided against doing something > like dynamically allocating/freeing a QEMUIOVector which could handle > spanning iovecs.
Long-term we want anyway a QEMUIOVector, to pass it to block functions. Can you introduce qemu_iovec_concat_iov that takes an iov/niov pair instead of the source QEMUIOVector? That should do quite nicely. Paolo