Re: [Qemu-devel] [RFC v2 PATCH 4/4] virtio-net: notify guest to annouce itself

2011-10-25 Thread Stefan Hajnoczi
On Fri, Oct 21, 2011 at 10:39 PM, Jason Wang wrote: > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > index 8c2f460..7f844e7 100644 > --- a/hw/virtio-net.c > +++ b/hw/virtio-net.c > @@ -95,6 +95,10 @@ static void virtio_net_set_config(VirtIODevice *vdev, > const uint8_t *config) >         memcpy

[Qemu-devel] [RFC v2 PATCH 4/4] virtio-net: notify guest to annouce itself

2011-10-21 Thread Jason Wang
It's hard to track all mac address and its usage (vlan, bondings, ipv6) in qemu to send gratituous packet in qemu side, so the better choice is let guest do it. The patch introduces a new rw config status bit of virtio-net, VIRTIO_NET_S_ANNOUNCE which is used to notify guest to announce itself ( s