migration: Move check_migratable() into qdev.c
commit1bfe5f0586083747f1602931713111673849cd9d
authorJuan Quintela <quintela@redhat.com>
Mon, 17 Apr 2017 12:57:54 +0000 (17 14:57 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 17 May 2017 10:04:59 +0000 (17 12:04 +0200)
treee70808d8e82700a8871ec9387835574e7ea5944d
parentbac3b21218925006e1f7d3cae564afb1e9aeb8ee
migration: Move check_migratable() into qdev.c

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 <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
hw/core/qdev.c
include/migration/migration.h
include/migration/vmstate.h
include/sysemu/sysemu.h
migration/migration.c
migration/savevm.c
stubs/vmstate.c