linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] virtio: allow per vq DMA domain
@ 2019-10-29 10:58 Jason Wang
  2019-10-29 10:58 ` [RFC PATCH 1/2] virtio: accept parent as a parameter when allocating virtqueue Jason Wang
  2019-10-29 10:58 ` [RFC PATCH 2/2] virtio: allow query vq parent device Jason Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Wang @ 2019-10-29 10:58 UTC (permalink / raw)
  To: mst, jasowang, virtualization, linux-kernel
  Cc: cunming.liang, zhihong.wang, lingshan.zhu, lulu

We used to have use a single parent for all DMA operations. This tends
to complicate the mdev based hardware virtio datapath offloading which
may not implement the control path over datapath like ctrl vq in the
case of virtio-net.

So this series tries to intorduce per DMA domain by allowing trasnport
to specify the parent device for each virtqueue. Then for the case of
virtio-mdev device, it can hook the DMA ops for control vq back to
itself and then using e.g VA or PA to emulate the control virtqueue
operation.

Vhost-mdev may use similar idea. Note, compiling test only.

Jason Wang (2):
  virtio: accept parent as a parameter when allocating virtqueue
  virtio: allow query vq parent device

 drivers/virtio/virtio_ring.c  | 36 +++++++++++++++++++++++++----------
 include/linux/virtio_config.h |  2 ++
 2 files changed, 28 insertions(+), 10 deletions(-)

-- 
2.19.1


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

end of thread, other threads:[~2019-10-29 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 10:58 [RFC PATCH 0/2] virtio: allow per vq DMA domain Jason Wang
2019-10-29 10:58 ` [RFC PATCH 1/2] virtio: accept parent as a parameter when allocating virtqueue Jason Wang
2019-10-29 10:58 ` [RFC PATCH 2/2] virtio: allow query vq parent device 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).