Re: [PATCH v3 0/3] Fix memory leak of some device state in migration

2021-02-04 Thread Dr. David Alan Gilbert
* Jinhao Gao (gaojin...@huawei.com) wrote: > For some device state having some fields of VMS_ALLOC flag, they > don't free memory allocated for the fields in vmstate_save_state > and vmstate_load_state. We add funcs or sentences of free memory > before and after VM saves or loads device state to av

[PATCH v3 0/3] Fix memory leak of some device state in migration

2020-12-30 Thread Jinhao Gao
For some device state having some fields of VMS_ALLOC flag, they don't free memory allocated for the fields in vmstate_save_state and vmstate_load_state. We add funcs or sentences of free memory before and after VM saves or loads device state to avoid memory leak. v2 - Drop patch1-3,6-8 of v1 -