]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm: Fix virtio block device support some more
authorPekka Enberg <penberg@kernel.org>
Sat, 8 Jan 2011 10:06:47 +0000 (12:06 +0200)
committerPekka Enberg <penberg@kernel.org>
Sat, 8 Jan 2011 10:57:42 +0000 (12:57 +0200)
commitd2d073f1c6ab7992e6b4f329298e76a4ff43fea0
tree21a56097df491fcb22f477f0df7978cee46286a3
parent361b460f56371bd44539b6f1712b6122810996e1
kvm: Fix virtio block device support some more

This patch fixes the following issues in virtio block device support:

- Handle all requests in the virtqueue before signaling an interrupt.

- Initialize ->used vring elements properly.

- Handle non-read requests by injecting an I/O error to the guest.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/blk-virtio.c