Re: ioregionfd with io_uring IORING_OP_URING_CMD

2022-06-07 Thread Stefan Hajnoczi
On Tue, 7 Jun 2022 at 14:32, Elena wrote: > On Mon, Jun 06, 2022 at 03:57:47PM +0100, Stefan Hajnoczi wrote: > > The downside is it requires more code than general purpose I/O. In > > addition to ->uring_cmd(), it's also worth implementing struct > > file_operations read/write/poll so traditional

Re: ioregionfd with io_uring IORING_OP_URING_CMD

2022-06-07 Thread Elena
On Mon, Jun 06, 2022 at 03:57:47PM +0100, Stefan Hajnoczi wrote: > Hi, > During Elena Afanasova's Outreachy project we discussed whether > ioregionfd should be a custom struct file_operations (anon inode) or a > userspace-provided file (socketpair, UNIX domain socket, etc). > Hello Stefan, > Back

ioregionfd with io_uring IORING_OP_URING_CMD

2022-06-06 Thread Stefan Hajnoczi
Hi, During Elena Afanasova's Outreachy project we discussed whether ioregionfd should be a custom struct file_operations (anon inode) or a userspace-provided file (socketpair, UNIX domain socket, etc). Back then it seemed more flexible and simpler to let userspace provide the file. It may be worth