This an update of series that let guest and qemu to be co-operated to send gratuitous packets when needed such as after migration, loadvm and continuing.
As it's hard for qemu to track the network configuration in guest such as bondings, vlans or ipv6. So current gratuitous may not work under those situations. 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. --- Jason Wang (5): net: reset the count after rounds of announcing net: 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 | 35 +++++++++++++++++++++++++++++++++++ hw/virtio-net.c | 19 ++++++++++++++++++- hw/virtio-net.h | 3 +++ migration.c | 5 ++--- monitor.c | 2 +- net.h | 2 ++ qmp.c | 2 +- savevm.c | 11 +++++++---- sysemu.h | 2 +- vl.c | 7 +++++-- 11 files changed, 76 insertions(+), 14 deletions(-) -- Jason Wang