|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCHv7 3/3] virtio: add features as qdev properties |
Date: | Tue, 12 Jan 2010 18:05:54 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 |
Hi,
+#define DEFINE_VIRTIO_NET_FEATURES(_state, _field) \ + DEFINE_VIRTIO_COMMON_FEATURES(_state, _field), \ + DEFINE_PROP_BIT("csum", _state, _field, VIRTIO_NET_F_CSUM, true), \ + DEFINE_PROP_BIT("guest_csum", _state, _field, VIRTIO_NET_F_GUEST_CSUM, true), \ + DEFINE_PROP_BIT("mac", _state, _field, VIRTIO_NET_F_MAC, true), \
Didn't noticed in review, sorry. This isn't going to work as all network cards already have a 'mac' property to set the mac address. Try to create a virtio nic with a non-default mac address and watch qemu fail.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |