On Fri, Aug 26, 2022 at 03:53:09PM +0200, Emanuele Giuseppe Esposito wrote: > What do you mean "will empty all regions with those listeners"? > But yes theoretically vhost-vdpa and physmem have commit callbacks that > are independent from whether region_add or other callbacks have been called. > For kvm and probably vhost it would be no problem, since there won't be > any list to iterate on. Right, begin()/commit() is for address space update, so it should be fine to have nothing to commit, sorry. > > I'll implement a new macro to handle this. Sounds good. Thanks, -- Peter Xu