Re: [PATCH v2 5/6] migration/block: Fix possible race with block_inactive

2024-12-16 Thread Fabiano Rosas
Peter Xu writes: > Src QEMU sets block_inactive=true very early before the invalidation takes > place. It means if something wrong happened during setting the flag but > before reaching qemu_savevm_state_complete_precopy_non_iterable() where it > did the invalidation work, it'll make block_inact

[PATCH v2 5/6] migration/block: Fix possible race with block_inactive

2024-12-06 Thread Peter Xu
Src QEMU sets block_inactive=true very early before the invalidation takes place. It means if something wrong happened during setting the flag but before reaching qemu_savevm_state_complete_precopy_non_iterable() where it did the invalidation work, it'll make block_inactive flag inconsistent. For