All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Liuyongan <liuyongan@huawei.com>, Amos Kong <akong@redhat.com>,
	qemu-devel@nongnu.org, aliguori@amazon.com
Subject: Re: [Qemu-devel] [PATCH RFC V2] virtio-net: announce self by guest
Date: Wed, 14 May 2014 17:28:32 +0800	[thread overview]
Message-ID: <53733740.2040504@redhat.com> (raw)
In-Reply-To: <20140512072226.GA12781@redhat.com>

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 <liuyongan@huawei.com>
>> > Cc: Amos Kong <akong@redhat.com>
>> > Signed-off-by: Jason Wang <jasowang@redhat.com>
> 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	other threads:[~2014-05-14  9:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11  2:54 [Qemu-devel] [PATCH RFC V2] virtio-net: announce self by guest Jason Wang
2014-04-11 14:10 ` 陈梁
2014-05-12  7:22 ` Michael S. Tsirkin
2014-05-14  9:28   ` Jason Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53733740.2040504@redhat.com \
    --to=jasowang@redhat.com \
    --cc=akong@redhat.com \
    --cc=aliguori@amazon.com \
    --cc=liuyongan@huawei.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.