qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v3 0/4] virtio-net discards TX data after link down


From: Yuri Benditovich
Subject: [Qemu-devel] [PATCH v3 0/4] virtio-net discards TX data after link down
Date: Tue, 13 Dec 2016 10:12:04 +0200

https://bugzilla.redhat.com/show_bug.cgi?id=1295637
Upon set_link monitor command or upon netdev deletion
virtio-net sends link down indication to the guest
and stops vhost if one is used.
Guest driver can still submit data for TX until it
recognizes link loss. If these packets not returned by
the host, the Windows guest will never be able to finish
disable/removal/shutdown. In order to allow qemu to
discard these packets, virtio queue shall update
its internal structure upon vhost stop.

Changes from v2:
   introduced virtqueue_drop_all to drop all queued packets without mapping
   used virtqueue_drop_all instead of pop/push

Changes from v1:
   added drop for outstanding tx packets for tx=timer
   (mainly for case of vhost=off)
   fixed link down flow to drop outstanding packets and
   ensure tx queue notification enabled

Yuri Benditovich (4):
  net: Add virtio queue interface to update used index from vring state
  net: vhost stop updates virtio queue state
  virtio: Introduce virtqueue_drop_all procedure
  net: virtio-net discards TX data after link down

 hw/net/virtio-net.c        | 26 ++++++++++++++++++++++++++
 hw/virtio/vhost.c          |  1 +
 hw/virtio/virtio.c         | 43 +++++++++++++++++++++++++++++++++++++++++++
 include/hw/virtio/virtio.h |  2 ++
 4 files changed, 72 insertions(+)

-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]