qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [V6 PATCH 0/4] Send gratuitous packets by guest
@ 2012-03-28  5:40 Jason Wang
  2012-03-28  5:40 ` [Qemu-devel] [V6 PATCH 1/4] net: announce self after vm start Jason Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Jason Wang @ 2012-03-28  5:40 UTC (permalink / raw)
  To: aliguori, stefanha, quintela, rusty, qemu-devel, mst, pbonzini

This an update of series that let guest and qemu to be co-operated to
send gratuitous packets when needed (e.g after migration).

As it's hard for qemu to track the network configuration in guest such
as bondings, vlans or ipv6s. Current gratuitous (RARP packets for
primary mac address) may not work under those situations. The better
method is to allow guest to send them when they can.

The series first introduce a model specific function in order to let
nic models to use a device specific way to announce the link
presence. With this, virtio-net backend were modified to notify the
guest (through config update interrupt) and let guest send the
gratuitous packet when needed.

The first user would be virtio-net.

Changes from V5:

- use a global variable to decide whether an announcement is needed
after migration
- align with virtio spec and let guest ack the announcement
notification through control vq instead of config status writing

Changes from V4:

- keep the old behavior that send the gratuitous packets only after
  migration
- decide whether to send gratuitous packets by previous runstate
  instead of a dedicated parameter
- check virtio_net_started() instead of VIRTIO_NET_S_LINK_UP before
  issue the config update interrupt
- move VIRTIO_NET_S_ANNOUNCE to 0x100 and supress guest config write to RO bits
- cleanups suggested by Michael

---

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


 hw/pc_piix.c    |   35 +++++++++++++++++++++++++++++++++++
 hw/virtio-net.c |   29 +++++++++++++++++++++++++++++
 hw/virtio-net.h |   14 ++++++++++++++
 migration.c     |    2 +-
 migration.h     |    2 ++
 net.h           |    2 ++
 savevm.c        |    8 +++++---
 vl.c            |    5 +++++
 8 files changed, 93 insertions(+), 4 deletions(-)

-- 
Jason Wang

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

end of thread, other threads:[~2012-05-02  8:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28  5:40 [Qemu-devel] [V6 PATCH 0/4] Send gratuitous packets by guest Jason Wang
2012-03-28  5:40 ` [Qemu-devel] [V6 PATCH 1/4] net: announce self after vm start Jason Wang
2012-03-28  7:22   ` Paolo Bonzini
2012-05-02  7:49   ` Orit Wasserman
2012-05-02  7:59     ` Jason Wang
2012-05-02  8:32       ` Paolo Bonzini
2012-03-28  5:40 ` [Qemu-devel] [V6 PATCH 2/4] net: model specific announcing support Jason Wang
2012-03-28  7:23   ` Paolo Bonzini
2012-03-28  5:40 ` [Qemu-devel] [V6 PATCH 3/4] virtio-net: notify guest to annouce itself Jason Wang
2012-03-28  5:40 ` [Qemu-devel] [V6 PATCH 4/4] virtio-net: compat guest announce support Jason Wang
2012-05-02  3:51 ` [Qemu-devel] [V6 PATCH 0/4] Send gratuitous packets by guest 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).