Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-05-30 Thread Stefan Hajnoczi
On Fri, 22 Apr 2022 at 16:40, olc wrote: > > Hi Stefan, > I've tested the code and it behaves as you expected. Should I add this to a > new patch version or leave it as is? Hi Sam, Sorry I missed this email. Please send a new version of the patch with CONFIG_LIBURING_REGISTER_RING_FD. Thanks, S

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread olc
Hi Stefan, I've tested the code and it behaves as you expected. Should I add this to a new patch version or leave it as is? Sam Stefan Hajnoczi 于2022年4月22日周五 23:10写道: > On Fri, Apr 22, 2022 at 12:36:49AM +0800, Sam Li wrote: > > Linux recently added a new io_uring(7) optimization API that QEMU

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread Stefan Hajnoczi
On Fri, Apr 22, 2022 at 12:36:49AM +0800, Sam Li wrote: > Linux recently added a new io_uring(7) optimization API that QEMU > doesn't take advantage of yet. The liburing library that QEMU uses > has added a corresponding new API calling io_uring_register_ring_fd(). > When this API is called after c

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread Stefan Hajnoczi
On Fri, Apr 22, 2022 at 11:08:39AM +0100, Daniel P. Berrangé wrote: > On Fri, Apr 22, 2022 at 11:00:47AM +0100, Fam Zheng wrote: > > On 2022-04-22 09:52, Daniel P. Berrangé wrote: > > > On Fri, Apr 22, 2022 at 09:34:28AM +0100, Fam Zheng wrote: > > > > On 2022-04-22 00:36, Sam Li wrote: > > > > > L

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 11:00:47AM +0100, Fam Zheng wrote: > On 2022-04-22 09:52, Daniel P. Berrangé wrote: > > On Fri, Apr 22, 2022 at 09:34:28AM +0100, Fam Zheng wrote: > > > On 2022-04-22 00:36, Sam Li wrote: > > > > Linux recently added a new io_uring(7) optimization API that QEMU > > > > doesn

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread Fam Zheng
On 2022-04-22 09:52, Daniel P. Berrangé wrote: > On Fri, Apr 22, 2022 at 09:34:28AM +0100, Fam Zheng wrote: > > On 2022-04-22 00:36, Sam Li wrote: > > > Linux recently added a new io_uring(7) optimization API that QEMU > > > doesn't take advantage of yet. The liburing library that QEMU uses > > > h

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread Daniel P . Berrangé
On Fri, Apr 22, 2022 at 09:34:28AM +0100, Fam Zheng wrote: > On 2022-04-22 00:36, Sam Li wrote: > > Linux recently added a new io_uring(7) optimization API that QEMU > > doesn't take advantage of yet. The liburing library that QEMU uses > > has added a corresponding new API calling io_uring_registe

Re: [PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-22 Thread Fam Zheng
On 2022-04-22 00:36, Sam Li wrote: > Linux recently added a new io_uring(7) optimization API that QEMU > doesn't take advantage of yet. The liburing library that QEMU uses > has added a corresponding new API calling io_uring_register_ring_fd(). > When this API is called after creating the ring, the

[PATCH v4] Use io_uring_register_ring_fd() to skip fd operations

2022-04-21 Thread Sam Li
Linux recently added a new io_uring(7) optimization API that QEMU doesn't take advantage of yet. The liburing library that QEMU uses has added a corresponding new API calling io_uring_register_ring_fd(). When this API is called after creating the ring, the io_uring_submit() library function passes