Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-17 Thread Juan Quintela
"Dr. David Alan Gilbert" wrote: > * Aaron Lindsay (aclin...@gmail.com) wrote: >> On Oct 16 09:21, Dr. David Alan Gilbert wrote: >> > * Richard Henderson (richard.hender...@linaro.org) wrote: >> > > On 10/10/18 1:37 PM, Aaron Lindsay wrote: >> > > > In some cases it may be helpful to modify state b

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-17 Thread Juan Quintela
Richard Henderson wrote: > On 10/10/18 1:37 PM, Aaron Lindsay wrote: >> In some cases it may be helpful to modify state before saving it for >> migration, and then modify the state back after it has been saved. The >> existing pre_save function provides half of this functionality. This >> patch ad

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-16 Thread Dr. David Alan Gilbert
* Aaron Lindsay (aclin...@gmail.com) wrote: > On Oct 16 15:06, Dr. David Alan Gilbert wrote: > > I did wonder about suggesting that you pass the return value from the > > save operation as a parameter to post_save. > > I feel like having that information in post_save may be useful, though > I'm ha

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-16 Thread Aaron Lindsay
On Oct 16 15:06, Dr. David Alan Gilbert wrote: > I did wonder about suggesting that you pass the return value from the > save operation as a parameter to post_save. I feel like having that information in post_save may be useful, though I'm having trouble coming up with any concrete uses for it. Bu

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-16 Thread Dr. David Alan Gilbert
* Aaron Lindsay (aclin...@gmail.com) wrote: > On Oct 16 09:21, Dr. David Alan Gilbert wrote: > > * Richard Henderson (richard.hender...@linaro.org) wrote: > > > On 10/10/18 1:37 PM, Aaron Lindsay wrote: > > > > In some cases it may be helpful to modify state before saving it for > > > > migration,

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-16 Thread Aaron Lindsay
On Oct 16 09:21, Dr. David Alan Gilbert wrote: > * Richard Henderson (richard.hender...@linaro.org) wrote: > > On 10/10/18 1:37 PM, Aaron Lindsay wrote: > > > In some cases it may be helpful to modify state before saving it for > > > migration, and then modify the state back after it has been saved

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-16 Thread Dr. David Alan Gilbert
* Richard Henderson (richard.hender...@linaro.org) wrote: > On 10/10/18 1:37 PM, Aaron Lindsay wrote: > > In some cases it may be helpful to modify state before saving it for > > migration, and then modify the state back after it has been saved. The > > existing pre_save function provides half of t

Re: [Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-15 Thread Richard Henderson
On 10/10/18 1:37 PM, Aaron Lindsay wrote: > In some cases it may be helpful to modify state before saving it for > migration, and then modify the state back after it has been saved. The > existing pre_save function provides half of this functionality. This > patch adds a post_save function to provi

[Qemu-devel] [PATCH v6 03/14] migration: Add post_save function to VMStateDescription

2018-10-10 Thread Aaron Lindsay
In some cases it may be helpful to modify state before saving it for migration, and then modify the state back after it has been saved. The existing pre_save function provides half of this functionality. This patch adds a post_save function to provide the second half. Signed-off-by: Aaron Lindsay