]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Make raw block device work
authorAsias He <asias.hejun@gmail.com>
Thu, 12 Apr 2012 23:49:44 +0000 (07:49 +0800)
committerPekka Enberg <penberg@kernel.org>
Sun, 15 Apr 2012 16:00:52 +0000 (19:00 +0300)
commit77b064d9afaf65acdda0f4767e4b107cbbfb7c40
tree77a19b215256c2d3d6dc1adb82db74885f1fd03d
parent63091b3043df14cb53cd895e0f3e8894f2b853db
kvm tools: Make raw block device work

Previously, we use mmaped host root partition as guest's root
filesystem. As virtio-9p based root filesystem is supported,
mmaped host root partition approach is not used anymore.

It is useful to use raw block device as guest's disk backend for some
user. e.g. bypass host's fs layer.

This patch makes raw block device work as disk image, user can do
read/write on raw block device, by using DISK_IMAGE_REGULAR instead of
DISK_IMAGE_MMAP for block device

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk/blk.c