diff options
author | Will Deacon <willdeacon@google.com> | 2023-03-29 22:24:57 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 11:53:15 -0400 |
commit | 75582fc2e69ac18f03a144d78c6d136d5594c7f5 (patch) | |
tree | 306381c64b4a898eb4dc90c703c2bd6520e2fae2 /lib/efi_loader/helloworld.c | |
parent | da4e8bb09d6ea33618335106ea6a1fc515128123 (diff) |
virtio: Allocate virtqueue in page-size units
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 <willdeacon@google.com>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/b4bb5227d4cf4fdfcd8b4e1ff2692d3a54d1482a
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/helloworld.c')
0 files changed, 0 insertions, 0 deletions