minix/drivers/virtio_net
Aurelien Jarno f0c391e09b virtio-net: acknowledge used features
According to the virtio specifications, the host present the supported
features to the guest, and the guest should answer woth the features it
supports. This allows the host to disable support for features that the
guest is not going to use.

Minix tells to the host it doesn't support any extended features, while
it uses at least VIRTIO_NET_F_MAC and VIRTIO_NET_F_CTRL_VQ. For the
latter it seems it only allocate the queue while not using it later.
However starting with QEMU 1.4.0, with multiqueue support added, the
control queue is not allocated on the host side if the guest doesn't
tell it supports this feature. This cause virtio-net to crash on the
Minix side.

This patch fixes that by correctly telling the features that are
used by the Minix guest for more than printing a debug message. This
fixes virtio-net on QEMU 1.4.x.

Change-Id: I8bbf757c09d24e0f5fe5835531a1c9203b714bd7
2013-09-11 18:34:11 +02:00
..
Makefile virtio: virtio-net driver 2013-01-23 09:03:03 +00:00
virtio_net.c virtio-net: acknowledge used features 2013-09-11 18:34:11 +02:00
virtio_net.conf virtio: virtio-net driver 2013-01-23 09:03:03 +00:00
virtio_net.h virtio: virtio-net driver 2013-01-23 09:03:03 +00:00