Re: [PATCH v2 07/15] migration: Use atomic ops properly for page accountings

2022-11-14 Thread Juan Quintela
Peter Xu wrote: > To prepare for thread-safety on page accountings, at least below counters > need to be accessed only atomically, they are: > > ram_counters.transferred > ram_counters.duplicate > ram_counters.normal > ram_counters.postcopy_bytes > > There are a lot

[PATCH v2 07/15] migration: Use atomic ops properly for page accountings

2022-10-11 Thread Peter Xu
To prepare for thread-safety on page accountings, at least below counters need to be accessed only atomically, they are: ram_counters.transferred ram_counters.duplicate ram_counters.normal ram_counters.postcopy_bytes There are a lot of other counters but they won't