[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] savevm: Add new helpers to process the diff
Re: [Qemu-devel] [PATCH 2/2] savevm: Add new helpers to process the different stages of loadvm/savevm
Tue, 31 Jan 2017 11:19:31 +0100
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
"Dr. David Alan Gilbert" <address@hidden> wrote:
> * zhanghailiang (address@hidden) wrote:
>> There are several stages during loadvm/savevm process. In different stage,
>> migration incoming processes different types of sections.
>> We want to control these stages more accuracy, it will benefit COLO
>> performance, we don't have to save type of QEMU_VM_SECTION_START
>> sections everytime while do checkpoint, besides, we want to separate
>> the process of saving/loading memory and devices state.
>> So we add three new helper functions: qemu_loadvm_state_begin(),
>> qemu_load_device_state() and qemu_savevm_live_state() to achieve
>> different process during migration.
>> Signed-off-by: zhanghailiang <address@hidden>
>> Signed-off-by: Li Zhijian <address@hidden>
>> Reviewed-by: Dr. David Alan Gilbert <address@hidden>
> I don't think this one can go in without the patch that follows which
> uses these functions; we don't normally add functions
> without the patch that uses them.
Agreed. If you want to add functions, you need new code that use them,
or make old code use them. It is up to you.