f0c391e09b
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 |
||
---|---|---|
.. | ||
Makefile | ||
virtio_net.c | ||
virtio_net.conf | ||
virtio_net.h |