Re: [PATCH v2] vhost/net: Replace wait_queue with completion in ubufs reference

2025-07-21 Thread Lei Yang
Tested this patch's V2 with the virtio-net regression test, everything works fine. Tested-by: Lei Yang On Mon, Jul 21, 2025 at 12:13 AM Michael S. Tsirkin wrote: > > On Sat, Jul 19, 2025 at 07:03:23AM +0800, Hillf Danton wrote: > > On Fri, 18 Jul 2025 14:03:55 +0300 Nikolay Kuratov wrote: > > >

Re: [PATCH v2] vhost/net: Replace wait_queue with completion in ubufs reference

2025-07-20 Thread Michael S. Tsirkin
On Sat, Jul 19, 2025 at 07:03:23AM +0800, Hillf Danton wrote: > On Fri, 18 Jul 2025 14:03:55 +0300 Nikolay Kuratov wrote: > > When operating on struct vhost_net_ubuf_ref, the following execution > > sequence is theoretically possible: > > CPU0 is finalizing DMA operation CPU1 is d

Re: [PATCH v2] vhost/net: Replace wait_queue with completion in ubufs reference

2025-07-18 Thread Hillf Danton
On Fri, 18 Jul 2025 14:03:55 +0300 Nikolay Kuratov wrote: > When operating on struct vhost_net_ubuf_ref, the following execution > sequence is theoretically possible: > CPU0 is finalizing DMA operation CPU1 is doing > VHOST_NET_SET_BACKEND > // &ubufs

Re: [PATCH v2] vhost/net: Replace wait_queue with completion in ubufs reference

2025-07-18 Thread Hillf Danton
On Fri, 18 Jul 2025 14:03:55 +0300 Nikolay Kuratov wrote: > > drivers/vhost/net.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index 7cbfc7d718b3..69e1bfb9627e 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhos