On 24/11/2017 08:55, P J P wrote:
> From: Prasad J Pandit <pjp@fedoraproject.org>
>
> Hello,
>
> An user could attempt to use an uninitialised VirtQueue object
> or set Vring object with undue values, raising an unexpected
> exception in Qemu. This patch set fixes this issue and also adds
> a unit test to the suite.
>
> Thank you.
> --
> Prasad J Pandit (2):
> virtio: check VirtQueue Vring object is set
> tests: add test to check VirtQueue object
>
> hw/virtio/virtio.c | 11 ++++++++---
> tests/virtio-blk-test.c | 21 +++++++++++++++++++++
> 2 files changed, 29 insertions(+), 3 deletions(-)
>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>