Jason Wang e9016ee2bd virtio-net: count VIRTIO_NET_F_MAC when calculating config_len
Commit 14f9b664 (hw/virtio-net.c: set config size using host features) tries to
calculate config size based on the host features. But it forgets the
VIRTIO_NET_F_MAC were always set for qemu later. This will lead a zero config
len for virtio-net device when both VIRTIO_NET_F_STATUS and VIRTIO_NET_F_MQ were
disabled form command line. Then qemu will crash when user tries to read the
config of virtio-net.

Fix this by counting VIRTIO_NET_F_MAC and make sure the config at least contains
the mac address.

Cc: Jesse Larrew <jlarrew@linux.vnet.ibm.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1366874814-2658-1-git-send-email-jasowang@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-04-30 16:04:24 -05:00
2013-04-26 13:37:51 +02:00
2013-04-30 10:30:01 -05:00
2013-04-18 13:50:53 +02:00
2013-04-23 10:37:38 -05:00
2013-04-30 09:40:11 -05:00
2013-03-26 16:16:43 -05:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00
2013-04-29 10:52:36 +02:00
2013-04-26 20:18:24 +02:00
2013-04-18 13:50:53 +02:00
2013-04-22 11:31:41 -05:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00
2013-04-29 12:16:36 -05:00
2013-04-19 08:38:05 -05:00
2013-04-19 08:38:05 -05:00
2013-03-11 13:32:03 +01:00
2013-04-30 09:52:14 -05:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00

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

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%