qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] virtio-net discards TX data after link down
@ 2016-11-07  8:20 yuri.benditovich
  2016-11-07  8:20 ` [Qemu-devel] [PATCH 1/3] net: Add virtio queue interface to update used index from vring state yuri.benditovich
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: yuri.benditovich @ 2016-11-07  8:20 UTC (permalink / raw)
  To: Michael S . Tsirkin, Jason Wang, qemu-devel; +Cc: dmitry, yan

From: Yuri Benditovich <yuri.benditovich@daynix.com>

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.

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

 hw/net/virtio-net.c        | 15 +++++++++++++++
 hw/virtio/vhost.c          |  1 +
 hw/virtio/virtio.c         |  5 +++++
 include/hw/virtio/virtio.h |  1 +
 4 files changed, 22 insertions(+)

-- 
1.9.1

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

end of thread, other threads:[~2016-11-08  8:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07  8:20 [Qemu-devel] [PATCH 0/3] virtio-net discards TX data after link down yuri.benditovich
2016-11-07  8:20 ` [Qemu-devel] [PATCH 1/3] net: Add virtio queue interface to update used index from vring state yuri.benditovich
2016-11-07  8:20 ` [Qemu-devel] [PATCH 2/3] net: vhost stop updates virtio queue state yuri.benditovich
2016-11-07  8:20 ` [Qemu-devel] [PATCH 3/3] net: virtio-net discards TX data after link down yuri.benditovich
2016-11-08  6:48   ` Jason Wang
2016-11-08  8:26     ` Yuri Benditovich

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).