qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH RFC V2] virtio-net: announce self by guest


From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH RFC V2] virtio-net: announce self by guest
Date: Wed, 14 May 2014 17:28:32 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 05/12/2014 03:22 PM, Michael S. Tsirkin wrote:
> On Fri, Apr 11, 2014 at 10:54:47AM +0800, Jason Wang wrote:
>> > It's hard to track all mac addresses and their configurations (e.g
>> > vlan or ipv6) in qemu. Without those informations, it's impossible to
>> > build proper garp packet after migration. The only possible solution
>> > to this is let guest (who knew all configurations) to do this.
>> > 
>> > So, this patch introduces a new readonly config status bit of virtio-net,
>> > VIRTIO_NET_S_ANNOUNCE which is used to notify guest to announce
>> > presence of its link through config update interrupt.When guest has
>> > done the announcement, it should ack the notification through
>> > VIRTIO_NET_CTRL_ANNOUNCE_ACK cmd. This feature is negotiated by a new
>> > feature bit VIRTIO_NET_F_ANNOUNCE (which has already been supported by
>> > Linux guest).
>> > 
>> > During load, a counter of announcing rounds were set so that the after
>> > the vm is running it can trigger rounds of config interrupts to notify
>> > the guest to build and send the correct garps.
>> > 
>> > Reference:
>> > RFC v1: https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg02648.html
>> > V7:     https://lists.gnu.org/archive/html/qemu-devel/2013-03/msg01127.html
>> > 
>> > Changes from RFC v1:
>> > - clean VIRTIO_NET_S_ANNOUNCE bit during reset
>> > - free announce timer during clean
>> > - make announce work for non-vhost case
>> > 
>> > Changes from V7:
>> > - Instead of introducing a global method for each kind of nic, this
>> >   version limits the changes to virtio-net itself.
>> > 
>> > Cc: Liuyongan <address@hidden>
>> > Cc: Amos Kong <address@hidden>
>> > Signed-off-by: Jason Wang <address@hidden>
> Looks good to me, but I think you should use
> QEMU_CLOCK_VIRTUAL: let's not change VM state
> when emulation is not running.
>

Sure, will post another version.

Thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]