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

2017-04-26 Thread Juan Quintela
Peter Xu wrote: > On Tue, Apr 25, 2017 at 12:17:57PM +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

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

2017-04-26 Thread Peter Xu
On Tue, Apr 25, 2017 at 12:17:57PM +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. > > Signed-off-by: Juan

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

2017-04-25 Thread Laurent Vivier
On 25/04/2017 12:17, 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. > > Signed-off-by: Juan Quintela

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

2017-04-25 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 --- hw/core/qdev.c| 15