]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add VIRTIO_BLK_T_FLUSH feature to handle flush operation from VM
authorPrasad Joshi <prasadjoshi124@gmail.com>
Fri, 13 May 2011 14:02:46 +0000 (15:02 +0100)
committerPekka Enberg <penberg@kernel.org>
Sat, 14 May 2011 11:53:36 +0000 (14:53 +0300)
commitf6ab29c73f8221250d74c9038511e93001df0412
treed17fa4933aa8bfa90e7b43c4ab3413f3071414df
parent8da7d556d30bf6d838fb222dd217f7b8c811db56
kvm tools: Add VIRTIO_BLK_T_FLUSH feature to handle flush operation from VM

The virtual machine calls 'sync' when the machine
is halted. Adding the virtio flush feature will
ensure that the data is synced on to disk before
the virtual machine is halted. This is needed to
ensure the intigrity of the data.

Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/disk-image.h
tools/kvm/virtio/blk.c