tests: add test to check VirtQueue object
commit4426f06102d31c4062957034edeb417f34c67885
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 29 Nov 2017 17:44:28 +0000 (29 23:14 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 5 Dec 2017 17:13:45 +0000 (5 19:13 +0200)
tree45e4ad113b6e2faacc3ef4407bc9a0486215be2f
parent939dd2d350b966016f2a1fa126242c094e71cd82
tests: add test to check VirtQueue object

An uninitialised VirtQueue object or one with Vring.align field
set to zero(0) could lead to arithmetic exceptions. Add a unit
test to validate it.

Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/virtio-blk-test.c