Re: [PATCH v3 1/2] vhost-user: fix VirtQ notifier cleanup

2021-10-19 Thread Michael S. Tsirkin
On Tue, Oct 19, 2021 at 06:45:19AM +, Xueming(Steven) Li wrote: > On Tue, 2021-10-19 at 02:15 -0400, Michael S. Tsirkin wrote: > > On Fri, Oct 08, 2021 at 03:58:04PM +0800, Xueming Li wrote: > > > When vhost-user device cleanup and unmmap notifier address, VM cpu > > > thread that writing the n

Re: [PATCH v3 1/2] vhost-user: fix VirtQ notifier cleanup

2021-10-18 Thread Xueming(Steven) Li
On Tue, 2021-10-19 at 02:15 -0400, Michael S. Tsirkin wrote: > On Fri, Oct 08, 2021 at 03:58:04PM +0800, Xueming Li wrote: > > When vhost-user device cleanup and unmmap notifier address, VM cpu > > thread that writing the notifier failed with accessing invalid address. > > > > To avoid this concur

Re: [PATCH v3 1/2] vhost-user: fix VirtQ notifier cleanup

2021-10-18 Thread Michael S. Tsirkin
On Fri, Oct 08, 2021 at 03:58:04PM +0800, Xueming Li wrote: > When vhost-user device cleanup and unmmap notifier address, VM cpu > thread that writing the notifier failed with accessing invalid address. > > To avoid this concurrent issue, wait memory flatview update by draining > rcu callbacks, th