virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH vhost 00/10] virtio core prepares for AF_XDP
@ 2023-02-14  7:26 Xuan Zhuo
  2023-02-14  7:26 ` [PATCH vhost 01/10] virtio_ring: split: refactor virtqueue_add_split() for premapped Xuan Zhuo
                   ` (10 more replies)
  0 siblings, 11 replies; 46+ messages in thread
From: Xuan Zhuo @ 2023-02-14  7:26 UTC (permalink / raw)
  To: virtualization; +Cc: Michael S. Tsirkin

XDP socket(AF_XDP) is an excellent bypass kernel network framework. The zero
copy feature of xsk (XDP socket) needs to be supported by the driver. The
performance of zero copy is very good.

ENV: Qemu with vhost.

                   vhost cpu | Guest APP CPU |Guest Softirq CPU | PPS
-----------------------------|---------------|------------------|------------
xmit by sockperf:     90%    |   100%        |                  |  318967
xmit by xsk:          100%   |   30%         |   33%            | 1192064
recv by sockperf:     100%   |   68%         |   100%           |  692288
recv by xsk:          100%   |   33%         |   43%            |  771670

Before achieving the function of Virtio-Net, we also have to let virtio core
support these features:

1. virtio core support premapped
2. virtio core support reset per-queue
3. introduce DMA APIs to virtio core

Please review.

Thanks.

Xuan Zhuo (10):
  virtio_ring: split: refactor virtqueue_add_split() for premapped
  virtio_ring: packed: separate prepare code from
    virtuque_add_indirect_packed()
  virtio_ring: packed: refactor virtqueue_add_packed() for premapped
  virtio_ring: split: introduce virtqueue_add_split_premapped()
  virtio_ring: packed: introduce virtqueue_add_packed_premapped()
  virtio_ring: introduce virtqueue_add_inbuf_premapped()
  virtio_ring: add api virtio_dma_map() for advance dma
  virtio_ring: introduce dma sync api for virtio
  virtio_ring: correct the expression of the description of
    virtqueue_resize()
  virtio_ring: introduce virtqueue_reset()

 drivers/virtio/virtio_ring.c | 792 ++++++++++++++++++++++++++++-------
 include/linux/virtio.h       |  29 ++
 2 files changed, 659 insertions(+), 162 deletions(-)

--
2.32.0.3.g01195cf9f

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

end of thread, other threads:[~2023-03-02 11:09 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-14  7:26 [PATCH vhost 00/10] virtio core prepares for AF_XDP Xuan Zhuo
2023-02-14  7:26 ` [PATCH vhost 01/10] virtio_ring: split: refactor virtqueue_add_split() for premapped Xuan Zhuo
2023-02-20  5:37   ` Jason Wang
2023-02-20  6:57     ` Xuan Zhuo
2023-02-20 12:12     ` Michael S. Tsirkin
2023-02-14  7:26 ` [PATCH vhost 02/10] virtio_ring: packed: separate prepare code from virtuque_add_indirect_packed() Xuan Zhuo
2023-02-20  5:37   ` Jason Wang
2023-02-20  6:56     ` Xuan Zhuo
2023-02-14  7:26 ` [PATCH vhost 03/10] virtio_ring: packed: refactor virtqueue_add_packed() for premapped Xuan Zhuo
2023-02-20  5:37   ` Jason Wang
2023-02-14  7:26 ` [PATCH vhost 04/10] virtio_ring: split: introduce virtqueue_add_split_premapped() Xuan Zhuo
2023-02-20  5:38   ` Jason Wang
2023-02-20  6:43     ` Xuan Zhuo
2023-02-21  1:49       ` Jason Wang
2023-02-14  7:26 ` [PATCH vhost 05/10] virtio_ring: packed: introduce virtqueue_add_packed_premapped() Xuan Zhuo
2023-02-14  7:27 ` [PATCH vhost 06/10] virtio_ring: introduce virtqueue_add_inbuf_premapped() Xuan Zhuo
2023-02-14  7:27 ` [PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma Xuan Zhuo
2023-02-20  5:38   ` Jason Wang
2023-02-20  6:59     ` Xuan Zhuo
2023-02-21  1:51       ` Jason Wang
2023-02-28 11:15         ` Xuan Zhuo
2023-03-02  2:04           ` Xuan Zhuo
2023-03-02  3:05             ` Jason Wang
2023-03-02  3:21               ` Xuan Zhuo
2023-03-02  3:26                 ` Jason Wang
2023-03-02  6:09                   ` Michael S. Tsirkin
2023-03-02  6:43                     ` Xuan Zhuo
2023-03-02  6:56                     ` Jason Wang
2023-03-02  7:31                       ` Xuan Zhuo
2023-03-02  7:56                         ` Jason Wang
2023-03-02 11:08                           ` Xuan Zhuo
2023-03-01 11:47         ` Xuan Zhuo
2023-02-14  7:27 ` [PATCH vhost 08/10] virtio_ring: introduce dma sync api for virtio Xuan Zhuo
2023-02-20  5:38   ` Jason Wang
2023-02-20  7:04     ` Xuan Zhuo
2023-02-21  1:52       ` Jason Wang
2023-02-14  7:27 ` [PATCH vhost 09/10] virtio_ring: correct the expression of the description of virtqueue_resize() Xuan Zhuo
2023-02-20  5:38   ` Jason Wang
2023-02-14  7:27 ` [PATCH vhost 10/10] virtio_ring: introduce virtqueue_reset() Xuan Zhuo
2023-02-20  5:38   ` Jason Wang
2023-02-20  7:03     ` Xuan Zhuo
2023-02-21  1:51       ` Jason Wang
2023-02-16  5:27 ` [PATCH vhost 00/10] virtio core prepares for AF_XDP Jason Wang
2023-02-16 11:46   ` Xuan Zhuo
2023-02-17  5:23     ` Jason Wang
2023-02-17  9:02       ` Xuan Zhuo

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