]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm: Fix virtqueue ring index check
authorPekka Enberg <penberg@kernel.org>
Sat, 8 Jan 2011 10:18:44 +0000 (12:18 +0200)
committerPekka Enberg <penberg@kernel.org>
Sat, 8 Jan 2011 10:26:43 +0000 (12:26 +0200)
commit361b460f56371bd44539b6f1712b6122810996e1
tree51c3dae71359da844aadbab2ccea6e4ff12cedee
parent776c3480e5dd5f2a128263fb14563fca8727fd92
kvm: Fix virtqueue ring index check

This patch fixes the virtqueu ring index check that was totally wrong. The
->last_avail_idx is the index we've last seen but it doesn't need to match with
avail->idx.

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