On Fri, Jun 05, 2015 at 03:24:12PM +0200, Thibaut Collet wrote: > Add VIRTIO_NET_F_GUEST_ANNOUNCE capability to vhost-net when netdev backend is > vhost-user. > > For netdev backend using virtio-net NIC the self announce is managed directly > by the virtio-net NIC and not by the netdev backend itself. > To avoid duplication of announces (once from the guest and once from QEMU) a > bitfield is added in the NetClientState structure. > If this bit is set self announce does not send message to the guest to request > gratuitous ARP but let virtio-net NIC set the VIRTIO_NET_S_ANNOUNCE for > gratuitous ARP. > > Signed-off-by: Thibaut Collet <thibaut.col...@6wind.com> > --- > v2: do not discard anymore packets send to vhost-user: it is GARP request > after > live migration. > As suggested by S. Hajnoczi qemu_announce_self skips virtio-net NIC that > already send GARP. > > hw/net/vhost_net.c | 2 ++ > include/net/net.h | 1 + > net/vhost-user.c | 2 ++ > savevm.c | 11 ++++++++--- > 4 files changed, 13 insertions(+), 3 deletions(-)
Please send each patch revision as a new email thread. This makes it easy to see your new patches in threaded email clients. Stefan
pgpThtIWYu4do.pgp
Description: PGP signature