This patch adds basic native vectored AIO functions.
These functions should be optimized to process multiple io
requests at once.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Added scatter-gather variants of [x,xp][read,write]() and [p]read_in_full().
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This patch convert lseek() + read()/write() pairs with pread()/pwrite(). The
performance of running the following command
dd if=/dev/vda of=/dev/null
in the guest does not show significant performance differences but should be a
net win because of the reduction in system calls.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Use read()/write() instead of mmap() for virtio block device emulation to
support large disk images on 32-bit.
Reported-and-tested-by: Asias He <asias.hejun@gmail.com>
Tested-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>