qemu-e2k/hw/virtio
Prasad J Pandit 758ead31c7 virtio: check VirtQueue Vring object is set
A guest could attempt to use an uninitialised VirtQueue object
or unset Vring.align leading to a arithmetic exception. Add check
to avoid it.

Reported-by: Zhangboxian <zhangboxian@huawei.com>
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>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
2017-12-01 19:05:58 +02:00
..
Makefile.objs
trace-events
vhost-backend.c
vhost-stub.c
vhost-user.c vhost-user: fix legacy cross-endian configurations 2017-08-02 00:13:25 +03:00
vhost-vsock.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
vhost.c vhost: fix error check in vhost_verify_ring_mappings() 2017-12-01 19:05:58 +02:00
virtio-balloon.c Convert single line fprintf(.../n) to warn_report() 2017-09-19 14:09:34 +02:00
virtio-bus.c
virtio-crypto-pci.c
virtio-crypto.c
virtio-mmio.c
virtio-pci.c virtio-pci: Replace modern_as with direct access to modern_bar 2017-10-15 05:54:44 +03:00
virtio-pci.h virtio-pci: Replace modern_as with direct access to modern_bar 2017-10-15 05:54:44 +03:00
virtio-rng.c
virtio.c virtio: check VirtQueue Vring object is set 2017-12-01 19:05:58 +02:00