On Thu, 30 Mar 2023 at 03:26, Ying-Chun Liu (PaulLiu) <paul....@linaro.org> wrote: > > From: Will Deacon <willdea...@google.com> > > In preparation for explicit bouncing of virtqueue pages for devices > advertising the VIRTIO_F_IOMMU_PLATFORM feature, introduce a couple > of wrappers around virtqueue allocation and freeing operations, > ensuring that buffers are handled in terms of page-size units. > > Signed-off-by: Will Deacon <willdea...@google.com> > [ Paul: pick from the Android tree. Rebase to the upstream ] > Signed-off-by: Ying-Chun Liu (PaulLiu) <paul....@linaro.org> > Cc: Bin Meng <bmeng...@gmail.com> > Link: > https://android.googlesource.com/platform/external/u-boot/+/b4bb5227d4cf4fdfcd8b4e1ff2692d3a54d1482a > --- > drivers/virtio/virtio_ring.c | 24 ++++++++++++++++++++---- > include/virtio_ring.h | 16 +++++++++------- > 2 files changed, 29 insertions(+), 11 deletions(-) >
Reviewed-by: Simon Glass <s...@chromium.org>