]> git.baikalelectronics.ru Git - kernel.git/commit
vduse: Support using userspace pages as bounce buffer
authorXie Yongji <xieyongji@bytedance.com>
Wed, 3 Aug 2022 04:55:21 +0000 (12:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:08 +0000 (04:26 -0400)
commit11a65aba1ecfada5cf51ba558ae7439f7f6c6fed
treed0342af57794fca63459d51b78c274e81ef06748
parent1ad9e678d11d922782d347bc7700abac14303db4
vduse: Support using userspace pages as bounce buffer

Introduce two APIs: vduse_domain_add_user_bounce_pages()
and vduse_domain_remove_user_bounce_pages() to support
adding and removing userspace pages for bounce buffers.
During adding and removing, the DMA data would be copied
from the kernel bounce pages to the userspace bounce pages
and back.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220803045523.23851-4-xieyongji@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_user/iova_domain.c
drivers/vdpa/vdpa_user/iova_domain.h