virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/6] vhost code cleanup and minor enhancement
@ 2013-08-30  4:29 Jason Wang
  2013-08-30  4:29 ` [PATCH V2 1/6] vhost_net: make vhost_zerocopy_signal_used() returns void Jason Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Jason Wang @ 2013-08-30  4:29 UTC (permalink / raw)
  To: mst, kvm, virtualization, netdev, linux-kernel

Hi all:

This series tries to unify and simplify vhost codes especially for
zerocopy. With this series, 5% - 10% improvement for per cpu throughput were
seen during netperf guest sending test.

Plase review.

Changes from V1:
- Fix the zerocopy enabling check by changing the check of upend_idx != done_idx
  to (upend_idx + 1) % UIO_MAXIOV == done_idx.
- Switch to use put_user() in __vhost_add_used_n() if there's only one used
- Keep the max pending check based on Michael's suggestion.

Jason Wang (6):
  vhost_net: make vhost_zerocopy_signal_used() returns void
  vhost_net: use vhost_add_used_and_signal_n() in
    vhost_zerocopy_signal_used()
  vhost: switch to use vhost_add_used_n()
  vhost_net: determine whether or not to use zerocopy at one time
  vhost_net: poll vhost queue after marking DMA is done
  vhost_net: correctly limit the max pending buffers

 drivers/vhost/net.c   |   88 +++++++++++++++++++++----------------------------
 drivers/vhost/vhost.c |   54 +++++++-----------------------
 2 files changed, 50 insertions(+), 92 deletions(-)

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

end of thread, other threads:[~2014-02-12 16:01 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30  4:29 [PATCH V2 0/6] vhost code cleanup and minor enhancement Jason Wang
2013-08-30  4:29 ` [PATCH V2 1/6] vhost_net: make vhost_zerocopy_signal_used() returns void Jason Wang
2013-09-02  5:51   ` Michael S. Tsirkin
2013-09-02  6:29     ` Jason Wang
2013-08-30  4:29 ` [PATCH V2 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used() Jason Wang
2013-09-02  5:50   ` Michael S. Tsirkin
2013-09-02  6:28     ` Jason Wang
2013-08-30  4:29 ` [PATCH V2 3/6] vhost: switch to use vhost_add_used_n() Jason Wang
2013-08-30  4:29 ` [PATCH V2 4/6] vhost_net: determine whether or not to use zerocopy at one time Jason Wang
2013-08-30 18:35   ` Sergei Shtylyov
2013-09-02  3:15     ` Jason Wang
2013-08-30  4:29 ` [PATCH V2 5/6] vhost_net: poll vhost queue after marking DMA is done Jason Wang
2013-08-30 16:44   ` Ben Hutchings
2013-09-02  3:06     ` Jason Wang
2014-02-12  7:38   ` Qin Chuanyu
     [not found]   ` <52FB24EA.3060001@huawei.com>
2014-02-12 10:06     ` Jason Wang
2014-02-12 16:01     ` Michael S. Tsirkin
2013-08-30  4:29 ` [PATCH V2 6/6] vhost_net: correctly limit the max pending buffers Jason Wang
2013-09-02  5:56   ` Michael S. Tsirkin
2013-09-02  6:30     ` Jason Wang
2013-09-02  8:37       ` Jason Wang

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