Re: [PATCH v2] vhost_net: fix assertion triggered by batch of host notifiers processing

2024-11-25 Thread Zuo,Boqun
On Mon, Nov 25, 2024 11:53 AM Jason Wang wrote: > On Fri, Nov 15, 2024 at 4:03 PM Zuo boqun wrote: > > > > From: zuoboqun > > > > When the backend of vhost_net restarts during the vm is running, > > vhost_net is stopped and started. The virtio_device_grab_ioeventfd() > > fucntion in > > vhost_n

Re: [PATCH v2] vhost_net: fix assertion triggered by batch of host notifiers processing

2024-11-24 Thread Jason Wang
On Fri, Nov 15, 2024 at 4:03 PM Zuo boqun wrote: > > From: zuoboqun > > When the backend of vhost_net restarts during the vm is running, vhost_net > is stopped and started. The virtio_device_grab_ioeventfd() fucntion in > vhost_net_enable_notifiers() will result in a call to > virtio_bus_set_host

Re: [PATCH v2] vhost_net: fix assertion triggered by batch of host notifiers processing

2024-11-15 Thread Stefano Garzarella
On Fri, Nov 15, 2024 at 04:03:12PM +0800, Zuo boqun wrote: From: zuoboqun When the backend of vhost_net restarts during the vm is running, vhost_net is stopped and started. The virtio_device_grab_ioeventfd() fucntion in vhost_net_enable_notifiers() will result in a call to virtio_bus_set_host_n

[PATCH v2] vhost_net: fix assertion triggered by batch of host notifiers processing

2024-11-15 Thread Zuo boqun via
From: zuoboqun When the backend of vhost_net restarts during the vm is running, vhost_net is stopped and started. The virtio_device_grab_ioeventfd() fucntion in vhost_net_enable_notifiers() will result in a call to virtio_bus_set_host_notifier()(assign=false). And now virtio_device_grab_ioeventf