Skip to content

User mapped provided buffer rings

Jens Axboe io-uring linux-ia64 linux-parisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5io_uring: Adjust mapping wrt architecture aliasing requirementsio_uring/io_uring.c+51 -011 replies
2/5io_uring/kbuf: move pinning of provided buffer ring into helperio_uring/kbuf.c+25 -120 replies
3/5io_uring/kbuf: add buffer_list->is_mapped memberio_uring/kbuf.c io_uring/kbuf.h+11 -60 replies
4/5io_uring/kbuf: rename struct io_uring_buf_reg 'pad' to'flags'include/uapi/linux/io_uring.h io_uring/kbuf.c+7 -30 replies
5/5io_uring: add support for user mapped provided buffer ringinclude/uapi/linux/io_uring.h io_uring/io_uring.c io_uring/kbuf.c +1 more+109 -242 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/5] User mapped provided buffer rings

Hi,

One issue that became apparent when running io_uring code on parisc is that for data shared between the application and the kernel, we must ensure that it's placed correctly to avoid aliasing issues that render it useless.

The first patch in this series is from Helge, and ensures that the SQ/CQ rings are mapped appropriately. This makes io_uring actually work there.

Patches 2..4 are prep patches for patch 5, which adds a variant of ring mapped provided buffers that have the kernel allocate the memory for them and the application mmap() it. This brings these mapped buffers in line with how the SQ/CQ rings are managed too.

I'm not fully sure if this ONLY impacts archs that set SHM_COLOUR, of which there is only parisc, or if SHMLBA setting archs (of which there are others) are impact to any degree as well...

Signature · 1 line
Jens Axboe