virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH V3 0/5] Hi:
@ 2018-12-29 12:46 Jason Wang
  0 siblings, 0 replies; 32+ messages in thread
From: Jason Wang @ 2018-12-29 12:46 UTC (permalink / raw)
  To: mst, jasowang, kvm, virtualization, netdev, linux-kernel; +Cc: davem

This series tries to access virtqueue metadata through kernel virtual
address instead of copy_user() friends since they had too much
overheads like checks, spec barriers or even hardware feature
toggling.

Test shows about 24% improvement on TX PPS. It should benefit other
cases as well.

Changes from V2:
- fix buggy range overlapping check
- tear down MMU notifier during vhost ioctl to make sure invalidation
  request can read metadata userspace address and vq size without
  holding vq mutex.
Changes from V1:
- instead of pinning pages, use MMU notifier to invalidate vmaps and
  remap duing metadata prefetch
- fix build warning on MIPS

Jason Wang (5):
  vhost: generalize adding used elem
  vhost: fine grain userspace memory accessors
  vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch()
  vhost: introduce helpers to get the size of metadata area
  vhost: access vq metadata through kernel virtual address

 drivers/vhost/net.c   |   4 +-
 drivers/vhost/vhost.c | 416 +++++++++++++++++++++++++++++++++++++-----
 drivers/vhost/vhost.h |  15 +-
 3 files changed, 384 insertions(+), 51 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2019-01-11  8:59 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20181229124656.3900-1-jasowang@redhat.com>
2018-12-29 12:46 ` [RFC PATCH V3 1/5] vhost: generalize adding used elem Jason Wang
2018-12-29 12:46 ` [RFC PATCH V3 2/5] vhost: fine grain userspace memory accessors Jason Wang
2018-12-29 12:46 ` [RFC PATCH V3 3/5] vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch() Jason Wang
2018-12-29 12:46 ` [RFC PATCH V3 4/5] vhost: introduce helpers to get the size of metadata area Jason Wang
2018-12-29 12:46 ` [RFC PATCH V3 5/5] vhost: access vq metadata through kernel virtual address Jason Wang
2019-01-02 20:47 ` [RFC PATCH V3 0/5] Hi: Michael S. Tsirkin
     [not found] ` <20181229124656.3900-2-jasowang@redhat.com>
2019-01-04 21:29   ` [RFC PATCH V3 1/5] vhost: generalize adding used elem Michael S. Tsirkin
     [not found]   ` <20190104162857-mutt-send-email-mst@kernel.org>
     [not found]     ` <20190105003339.GE11288@linux.intel.com>
2019-01-07  7:00       ` Jason Wang
     [not found]       ` <9111a7a2-8396-d866-449e-11ee4008f988@redhat.com>
2019-01-07 14:50         ` Michael S. Tsirkin
     [not found] ` <20181229124656.3900-6-jasowang@redhat.com>
2019-01-04 21:34   ` [RFC PATCH V3 5/5] vhost: access vq metadata through kernel virtual address Michael S. Tsirkin
     [not found]   ` <20190104162600-mutt-send-email-mst@kernel.org>
2019-01-07  8:40     ` Jason Wang
2019-01-04 21:41 ` [RFC PATCH V3 0/5] Hi: Michael S. Tsirkin
     [not found] ` <20190102154038-mutt-send-email-mst@kernel.org>
2019-01-07  2:19   ` Jason Wang
     [not found]   ` <0efd115a-a7fb-54bf-5376-59d047a15fd3@redhat.com>
2019-01-07  3:28     ` Michael S. Tsirkin
     [not found]     ` <20190106221832-mutt-send-email-mst@kernel.org>
2019-01-07  3:53       ` Jason Wang
2019-01-07  4:17         ` Michael S. Tsirkin
     [not found]         ` <20190106230224-mutt-send-email-mst@kernel.org>
2019-01-07  6:50           ` Jason Wang
2019-01-07  7:15           ` Dan Williams
     [not found]           ` <CAPcyv4iXFy0jfoQ_jQYq2yA7cqu4_Jcap4mvQesRRrV-hahGvQ@mail.gmail.com>
2019-01-07 14:11             ` Michael S. Tsirkin
     [not found]             ` <20190107084853-mutt-send-email-mst@kernel.org>
2019-01-07 21:39               ` Dan Williams
     [not found]               ` <CAPcyv4jf-4=2oGJrdvMBeRiAJnQoKbYhwZDD+5ZEH+xgDaOzRQ@mail.gmail.com>
2019-01-07 22:25                 ` Michael S. Tsirkin
2019-01-07 22:44                   ` Dan Williams
     [not found]                   ` <CAPcyv4iQMQxZC8ehr2OP8_rqpuCeSWn5xyKN64JSyfR8_r7eOg@mail.gmail.com>
2019-01-09  4:31                     ` __get_user slower than get_user (was Re: [RFC PATCH V3 0/5] Hi:) Michael S. Tsirkin
2019-01-09  5:19                       ` Linus Torvalds
2019-01-08 11:42               ` [RFC PATCH V3 0/5] Hi: Jason Wang
     [not found]           ` <62f0fda8-92a4-b160-1b3b-4acdfef49d44@redhat.com>
2019-01-07 14:37             ` Michael S. Tsirkin
     [not found]             ` <20190107091947-mutt-send-email-mst@kernel.org>
2019-01-08 10:01               ` Jason Wang
     [not found] ` <20190104163516-mutt-send-email-mst@kernel.org>
2019-01-07  6:58   ` Jason Wang
2019-01-07 14:47     ` Michael S. Tsirkin
     [not found]     ` <20190107094516-mutt-send-email-mst@kernel.org>
2019-01-08 10:12       ` Jason Wang
     [not found]       ` <682d520e-00e3-cdaa-d51e-23524ae48854@redhat.com>
2019-01-11  8:59         ` Jason Wang
2018-12-29 12:46 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).