diff options
| author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-02-27 13:24:07 +0000 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2019-03-05 11:27:41 +0800 |
| commit | 9d8c6a258c70d8ff494489140a4fcb3a965909b2 (patch) | |
| tree | 6f010782b5b2b58d90aa7111e89e850a4d50a64b /hw/net/trace-events | |
| parent | ee3d96baf32350dd273643bd220bc180c62923cf (diff) | |
| download | focaccia-qemu-9d8c6a258c70d8ff494489140a4fcb3a965909b2.tar.gz focaccia-qemu-9d8c6a258c70d8ff494489140a4fcb3a965909b2.zip | |
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>
Diffstat (limited to 'hw/net/trace-events')
| -rw-r--r-- | hw/net/trace-events | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/net/trace-events b/hw/net/trace-events index 9d49f62fa1..b237d9024c 100644 --- a/hw/net/trace-events +++ b/hw/net/trace-events @@ -359,3 +359,8 @@ sunhme_rx_filter_reject(void) "rejecting incoming frame" sunhme_rx_filter_accept(void) "accepting incoming frame" sunhme_rx_desc(uint32_t addr, int offset, uint32_t status, int len, int cr, int nr) "addr 0x%"PRIx32"(+0x%x) status 0x%"PRIx32 " len %d (ring %d/%d)" sunhme_rx_xsum_calc(uint16_t xsum) "calculated incoming xsum as 0x%x" + +# hw/net/virtio-net.c +virtio_net_announce_timer(int round) "%d" +virtio_net_handle_announce(int round) "%d" +virtio_net_post_load_device(void) |