]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Modify disk ops usage
authorSasha Levin <levinsasha928@gmail.com>
Wed, 2 Nov 2011 05:41:07 +0000 (07:41 +0200)
committerPekka Enberg <penberg@kernel.org>
Wed, 2 Nov 2011 06:21:30 +0000 (08:21 +0200)
commitbdb9b65e55f79a8482a7179aab8548a3764b032a
treea78d3a823d74ff1cd659cfe5ecf4de84a25286e7
parent9692cb486f14364e7cc030c79a9d536a954dee0e
kvm tools: Modify disk ops usage

This patch modifies the definition and usage of ops for read only, mmap and
regular IO.

There is no longer a mix between iov and mmap, and read only no longer implies
mmap (although it will try to use it first).

This allows for more flexibility defining different ops for different
scenarios.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/core.c
tools/kvm/disk/raw.c