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

2021-09-14 Thread Xueming(Steven) Li
On Mon, 2021-09-13 at 00:20 +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, then u

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

2021-09-12 Thread Xueming Li
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, then unmap notifiers. Fixes: 44866521bd6e ("vhost-user: support registe