[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 2/2] virtio-net: introduce a new control to
From: |
Rusty Russell |
Subject: |
Re: [Qemu-devel] [RFC PATCH 2/2] virtio-net: introduce a new control to set macaddr |
Date: |
Fri, 11 Jan 2013 11:13:04 +1030 |
User-agent: |
Notmuch/0.14 (http://notmuchmail.org) Emacs/23.4.1 (i686-pc-linux-gnu) |
"Michael S. Tsirkin" <address@hidden> writes:
>> + if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC)) {
>> + /* Set MAC address by writing config space */
>> vdev->config->set(vdev, offsetof(struct virtio_net_config, mac),
>> dev->dev_addr, dev->addr_len);
>> + }
>>
>
> By the way, why don't we fail the command if VIRTIO_NET_F_MAC is off?
> Rusty?
Looked back through the history for this one. I think the theory is that
if the guest doesn't set VIRTIO_NET_F_MAC, it means it doesn't care:
it's up to the guest.
Cheers,
Rusty.
- [Qemu-devel] [RFC PATCH 0/2] make mac programming for virtio net more robust, akong, 2013/01/10
- [Qemu-devel] [RFC PATCH 1/2] move virtnet_send_command() above virtnet_set_mac_address(), akong, 2013/01/10
- [Qemu-devel] [RFC PATCH 2/2] virtio-net: introduce a new control to set macaddr, akong, 2013/01/10
- [Qemu-devel] [RFC PATCH] virtio-net: introduce a new macaddr control, akong, 2013/01/10
- Re: [Qemu-devel] [RFC PATCH 0/2] make mac programming for virtio net more robust, Amos Kong, 2013/01/10
- Re: [Qemu-devel] [RFC PATCH 0/2] make mac programming for virtio net more robust, Michael S. Tsirkin, 2013/01/10