Re: [Qemu-devel] [PATCH v2] migration: Move check_migratable() into qdev.c

2017-05-15 Thread Peter Xu
On Fri, May 12, 2017 at 05:54:36PM +0200, Juan Quintela 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. (may need to touch up the co

[Qemu-devel] [PATCH v2] migration: Move check_migratable() into qdev.c

2017-05-12 Thread Juan Quintela
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 --- - move only_migrateble use back to savevm.c to fix linux-user