Jason Wang 7e0e736ecd 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>
2015-03-25 13:39:25 +01:00
2015-03-19 17:47:08 +00:00
2015-03-04 13:00:36 -05:00
2013-04-18 13:50:53 +02:00
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-03-20 10:37:03 +00:00
2015-03-19 11:39:18 +03:00
2015-03-19 11:11:55 +03:00
2015-03-09 09:14:28 +00:00
2012-09-07 09:02:44 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-02-23 10:56:09 -05:00
2015-03-16 12:10:30 -04:00
2015-03-08 06:43:32 +00:00
2013-10-11 09:34:56 -07:00
2015-03-19 11:17:27 +03:00
2015-03-18 12:07:34 +01:00
2015-02-16 17:30:19 +01:00
2013-07-23 02:41:31 +02:00
2015-03-19 11:35:52 +03:00
2015-03-17 17:11:33 +00:00
2015-03-17 14:31:15 +01:00
2015-03-12 09:13:07 +00:00
2015-02-05 17:16:14 +01:00
2015-03-20 09:50:08 +00:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
2015-03-19 17:47:08 +00:00
2015-03-19 17:47:08 +00:00
2015-03-10 11:33:35 +01:00
2013-10-11 09:34:56 -07:00
2015-01-14 10:38:57 +01:00
2015-02-12 21:21:38 -08:00
2015-03-10 09:26:22 +01:00
2015-03-24 16:34:16 +00:00
2013-10-11 09:34:56 -07:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme 531 MiB
Languages
C 82.5%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%