]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-net: Switch to using announce timer
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 27 Feb 2019 13:24:07 +0000 (13:24 +0000)
committerJason Wang <jasowang@redhat.com>
Tue, 5 Mar 2019 03:27:41 +0000 (11:27 +0800)
commit9d8c6a258c70d8ff494489140a4fcb3a965909b2
tree6f010782b5b2b58d90aa7111e89e850a4d50a64b
parentee3d96baf32350dd273643bd220bc180c62923cf
virtio-net: Switch to using announce timer

Switch virtio's self announcement to use the AnnounceTimer.
It keeps it's own AnnounceTimer (per device), and starts running it
using a migration post-load and a virtual clock; that way the
announce happens once the guest is actually running.
The timer uses the migration parameters to set the timing of
the repeats.

Based on earlier patches by myself and
 Vladislav Yasevich <vyasevic@redhat.com>

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/trace-events
hw/net/virtio-net.c
include/hw/virtio/virtio-net.h