On Sun, Aug 30, 2026 at 09:27:48AM +0800, Yanfei Xu wrote: > rdma_registration_stop() runs after every ram_save_iterate() call, which > can stop before a complete RAM scan because of rate limiting. Draining > there ties the completion barrier to a SaveVM section rather than the > point where the scan wraps and a newer page version can be sent. > > Register an RDMA RAM round notifier that drains all outstanding writes. > Keep posting the buffered tail in rdma_registration_stop() so it remains > ordered before REGISTER_FINISHED. > > Signed-off-by: Yanfei Xu <[email protected]>
Suggest to split smaller changes out if possible in the future, e.g. on adding errp for qemu_rdma_write_flush(), which is an improvement on its own. Future, rdma_registration_stop() can be converted too. But that's trivial and ok, not a real issue: Reviewed-by: Peter Xu <[email protected]> -- Peter Xu
