Re: [PATCH RFC 10/15] migration: Move static var in ram_block_from_stream() into global

2022-02-07 Thread Peter Xu
On Thu, Feb 03, 2022 at 05:48:31PM +, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > Static variable is very unfriendly to threading of ram_block_from_stream(). > > Move it into MigrationIncomingState. > > > > Make the incoming state pointer to be passed over to > >

Re: [PATCH RFC 10/15] migration: Move static var in ram_block_from_stream() into global

2022-02-03 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > Static variable is very unfriendly to threading of ram_block_from_stream(). > Move it into MigrationIncomingState. > > Make the incoming state pointer to be passed over to ram_block_from_stream() > on > both caller sites. > > Signed-off-by: Peter Xu OK,

[PATCH RFC 10/15] migration: Move static var in ram_block_from_stream() into global

2022-01-19 Thread Peter Xu
Static variable is very unfriendly to threading of ram_block_from_stream(). Move it into MigrationIncomingState. Make the incoming state pointer to be passed over to ram_block_from_stream() on both caller sites. Signed-off-by: Peter Xu --- migration/migration.h | 3 ++- migration/ram.c |