Re: [PATCH v2 11/24] migration: Use QAPI_CLONE_MEMBERS in query_migrate_parameters

2025-07-04 Thread Peter Xu
On Mon, Jun 30, 2025 at 04:59:00PM -0300, Fabiano Rosas wrote: > QAPI_CLONE_MEMBERS is a better option than copying parameters one by > one because it operates on the entire struct and follows pointers. It > also avoids the need to alter this function every time a new parameter > is added. > > For

[PATCH v2 11/24] migration: Use QAPI_CLONE_MEMBERS in query_migrate_parameters

2025-06-30 Thread Fabiano Rosas
QAPI_CLONE_MEMBERS is a better option than copying parameters one by one because it operates on the entire struct and follows pointers. It also avoids the need to alter this function every time a new parameter is added. For this to work, the has_* fields of s->parameters need to be already set bef