netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v3 PATCH 0/4] Send gratuitous packets by guest
@ 2011-10-27  8:48 Jason Wang
  2011-10-27  8:48 ` [RFC v3 PATCH 1/4] announce self after vm start Jason Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jason Wang @ 2011-10-27  8:48 UTC (permalink / raw)
  To: aliguori, mst, jan.kiszka, rusty, qemu-devel, blauwirbel, stefanha
  Cc: netdev, kvm

We only track primary mac address in qemu and send rarp packets after
migration to notify the switch to update its mac address table. This
may not works when guest have complicated network configurations such
as tagged vlan or ipv6, those connections may be lost or stalled after
migration.

One method to handle them is snooping the network traffic in qemu and
recording use of mac, but this method would hurt performance and is
impossible for network backend such as vhost.

So the best method to address it is to let guest instead of qemu to
send gratuitous packet. This series first add a model specific
fucntion which can let nic model to implement its own announce
method and then implement a virtio-net specific function to
let guest send the gratitous packet.

Changes from v2:

- Conditionally send the notification interrupt to guest (only for
migration, cont, loadvm).
- Remove the unused patch of function export.
- Typos and other comments from Stefan Hajnoczi.
- Disable guest announce for compat machine types.

---

Jason Wang (4):
      announce self after vm start
      net: model specific announcing support
      virtio-net: notify guest to annouce itself
      virtio-net: compat guest announce support.


 gdbstub.c       |    2 +-
 hw/pc_piix.c    |   16 ++++++++++++++++
 hw/virtio-net.c |   18 +++++++++++++++++-
 hw/virtio-net.h |    3 +++
 migration.c     |    4 ++--
 monitor.c       |    4 ++--
 net.h           |    2 ++
 savevm.c        |   10 ++++++----
 sysemu.h        |    2 +-
 vl.c            |    7 +++++--
 10 files changed, 55 insertions(+), 13 deletions(-)

-- 
Jason Wang

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-27  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-27  8:48 [RFC v3 PATCH 0/4] Send gratuitous packets by guest Jason Wang
2011-10-27  8:48 ` [RFC v3 PATCH 1/4] announce self after vm start Jason Wang
2011-10-27  8:48 ` [RFC v3 PATCH 2/4] net: model specific announcing support Jason Wang
2011-10-27  8:48 ` [RFC v3 PATCH 3/4] virtio-net: notify guest to annouce itself Jason Wang
2011-10-27  8:49 ` [RFC v3 PATCH 4/4] virtio-net: compat guest announce support Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).