Re: [PATCH v3 8/8] migration: Protect updates to current_migration with a mutex

2024-11-04 Thread Cédric Le Goater
On 10/28/24 16:50, Peter Xu wrote: On Fri, Oct 25, 2024 at 02:50:36PM +0200, Cédric Le Goater wrote: On 10/24/24 23:30, Peter Xu wrote: Introduce migration_mutex, protecting concurrent updates to current_migration. In reality, most of the exported migration functions are safe to access migrati

Re: [PATCH v3 8/8] migration: Protect updates to current_migration with a mutex

2024-10-28 Thread Peter Xu
On Fri, Oct 25, 2024 at 02:50:36PM +0200, Cédric Le Goater wrote: > On 10/24/24 23:30, Peter Xu wrote: > > Introduce migration_mutex, protecting concurrent updates to > > current_migration. > > > > In reality, most of the exported migration functions are safe to access > > migration objects on cap

Re: [PATCH v3 8/8] migration: Protect updates to current_migration with a mutex

2024-10-25 Thread Cédric Le Goater
On 10/24/24 23:30, Peter Xu wrote: Introduce migration_mutex, protecting concurrent updates to current_migration. In reality, most of the exported migration functions are safe to access migration objects on capabilities, etc., e.g. many of the code is invoked within migration thread via differen

[PATCH v3 8/8] migration: Protect updates to current_migration with a mutex

2024-10-25 Thread Peter Xu
Introduce migration_mutex, protecting concurrent updates to current_migration. In reality, most of the exported migration functions are safe to access migration objects on capabilities, etc., e.g. many of the code is invoked within migration thread via different hooks (e.g., precopy notifier, vmst