Re: [PATCH 10/14] migration: Make PageSearchStatus part of RAMState

2022-10-06 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Wed, Oct 05, 2022 at 07:51:34PM +0100, Dr. David Alan Gilbert wrote: > > > /* struct contains XBZRLE cache and a static page > > > used by the compression */ > > > static struct { > > > @@ -319,6 +359,11 @@ typedef struct { > > > struct RAMState { >

Re: [PATCH 10/14] migration: Make PageSearchStatus part of RAMState

2022-10-06 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > We used to allocate PSS structure on the stack for precopy when sending > pages. Make it static, so as to describe per-channel ram migration status. > > Here we declared RAM_CHANNEL_MAX instances, preparing for postcopy to use > it, even though this patch h

Re: [PATCH 10/14] migration: Make PageSearchStatus part of RAMState

2022-10-05 Thread Peter Xu
On Wed, Oct 05, 2022 at 07:51:34PM +0100, Dr. David Alan Gilbert wrote: > > /* struct contains XBZRLE cache and a static page > > used by the compression */ > > static struct { > > @@ -319,6 +359,11 @@ typedef struct { > > struct RAMState { > > /* QEMUFile used for this migration */ > >

Re: [PATCH 10/14] migration: Make PageSearchStatus part of RAMState

2022-10-05 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > We used to allocate PSS structure on the stack for precopy when sending > pages. Make it static, so as to describe per-channel ram migration status. > > Here we declared RAM_CHANNEL_MAX instances, preparing for postcopy to use > it, even though this patch h

[PATCH 10/14] migration: Make PageSearchStatus part of RAMState

2022-09-20 Thread Peter Xu
We used to allocate PSS structure on the stack for precopy when sending pages. Make it static, so as to describe per-channel ram migration status. Here we declared RAM_CHANNEL_MAX instances, preparing for postcopy to use it, even though this patch has not yet to start using the 2nd instance. Thi