Home
last modified time | relevance | path

Searched hist:"7 e0e736ecdfeac6d3517513d3a702304e4f6cf59" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/net/
H A Dvirtio-net.cdiff 7e0e736ecdfeac6d3517513d3a702304e4f6cf59 Fri Mar 20 01:07:50 CDT 2015 Jason Wang <jasowang@redhat.com> virtio-net: validate backend queue numbers against bus limitation

We don't validate the backend queue numbers against bus limitation,
this will easily crash qemu if it exceeds the limitation which will
hit the abort() in virtio_del_queue(). An example is trying to
starting a virtio-net device with 256 queues. E.g:

./qemu-system-x86_64 -netdev tap,id=hn0,queues=256 -device
virtio-net-pci,netdev=hn0

Fixing this by doing the validation and fail early.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>