Juan Quintela <quint...@redhat.com> wrote: > The function is only used once, and nothing else in migration knows > about objects. Create the function vmstate_device_is_migratable() in > savem.c that really do the bit that is related with migration. > > Signed-off-by: Juan Quintela <quint...@redhat.com>
Hi, I forget to "add" the comments section. I switched to Peter Xu idea of only testing ->unmigratable is savevm.c and move the only_migratable check to qdev.c. Once there, change the return types from -1/0 to true/false and improve slightly the naming. Please, comment.