virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/6] virtio: support advance DMA
@ 2022-02-10  8:51 Xuan Zhuo
  2022-02-10  8:51 ` [PATCH v1 1/6] virtio: rename vring_unmap_state_packed() to vring_unmap_extra_packed() Xuan Zhuo
                   ` (6 more replies)
  0 siblings, 7 replies; 36+ messages in thread
From: Xuan Zhuo @ 2022-02-10  8:51 UTC (permalink / raw)
  To: virtualization; +Cc: Michael S. Tsirkin

virtqueue_add() only supports virtual addresses, dma is completed in
virtqueue_add().

In some scenarios (such as the AF_XDP scenario), DMA is completed in advance, so
it is necessary for us to support passing the DMA address to virtqueue_add().

Record this predma information in extra->flags, which can be skipped when
executing dma unmap.

v1:
   1. All sgs requested at one time are required to be unified PREDMA, and several
      of them are not supported to be PREDMA
   2. virtio_dma_map() is removed from this patch set and will be submitted
      together with the next time AF_XDP supports virtio dma
   3. Added patch #2 #3 to remove the check for flags when performing unmap
      indirect desc

Xuan Zhuo (6):
  virtio: rename vring_unmap_state_packed() to
    vring_unmap_extra_packed()
  virtio: remove flags check for unmap split indirect desc
  virtio: remove flags check for unmap packed indirect desc
  virtio: virtqueue_add() support predma
  virtio: split: virtqueue_add_split() support dma address
  virtio: packed: virtqueue_add_packed() support dma address

 drivers/virtio/virtio_ring.c | 199 ++++++++++++++++++++++-------------
 1 file changed, 126 insertions(+), 73 deletions(-)

--
2.31.0

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

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

end of thread, other threads:[~2022-02-23  8:33 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-10  8:51 [PATCH v1 0/6] virtio: support advance DMA Xuan Zhuo
2022-02-10  8:51 ` [PATCH v1 1/6] virtio: rename vring_unmap_state_packed() to vring_unmap_extra_packed() Xuan Zhuo
2022-02-23  2:41   ` Jason Wang
2022-02-10  8:51 ` [PATCH v1 2/6] virtio: remove flags check for unmap split indirect desc Xuan Zhuo
2022-02-23  2:42   ` Jason Wang
2022-02-10  8:51 ` [PATCH v1 3/6] virtio: remove flags check for unmap packed " Xuan Zhuo
2022-02-23  2:53   ` Jason Wang
2022-02-23  8:30     ` Xuan Zhuo
2022-02-10  8:51 ` [PATCH v1 4/6] virtio: virtqueue_add() support predma Xuan Zhuo
2022-02-23  3:00   ` Jason Wang
2022-02-23  3:02     ` Jason Wang
2022-02-10  8:51 ` [PATCH v1 5/6] virtio: split: virtqueue_add_split() support dma address Xuan Zhuo
2022-02-23  3:38   ` Jason Wang
2022-02-10  8:51 ` [PATCH v1 6/6] virtio: packed: virtqueue_add_packed() " Xuan Zhuo
2022-02-23  3:43   ` Jason Wang
2022-02-17  7:19 ` [PATCH v1 0/6] virtio: support advance DMA Jason Wang
2022-02-18  8:55   ` Xuan Zhuo
2022-02-18  9:24     ` Michael S. Tsirkin
2022-02-18  9:29       ` Xuan Zhuo
2022-02-21  1:36       ` Jason Wang
2022-02-21  3:32     ` Jason Wang
2022-02-21  3:39       ` Xuan Zhuo
2022-02-21  3:53         ` Jason Wang
2022-02-21  5:59           ` Xuan Zhuo
2022-02-21  6:18             ` Xuan Zhuo
2022-02-21  6:37               ` Jason Wang
2022-02-21  6:41                 ` Xuan Zhuo
2022-02-21  6:55                   ` Jason Wang
2022-02-21  7:46                     ` Xuan Zhuo
2022-02-21  6:46                 ` Xuan Zhuo
2022-02-21  6:56                   ` Jason Wang
2022-02-21 11:23       ` Xuan Zhuo
2022-02-22  4:02         ` Jason Wang
2022-02-22  7:48           ` Xuan Zhuo
2022-02-23  2:58             ` Jason Wang
2022-02-23  3:44               ` 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).