From 1bfe5f0586083747f1602931713111673849cd9d Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 17 Apr 2017 14:57:54 +0200 Subject: 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 Reviewed-by: Peter Xu --- stubs/vmstate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'stubs') diff --git a/stubs/vmstate.c b/stubs/vmstate.c index 6d52f29bb2..6399474e49 100644 --- a/stubs/vmstate.c +++ b/stubs/vmstate.c @@ -1,7 +1,6 @@ #include "qemu/osdep.h" #include "qemu-common.h" #include "migration/vmstate.h" -#include "migration/migration.h" const VMStateDescription vmstate_dummy = {}; @@ -21,7 +20,7 @@ void vmstate_unregister(DeviceState *dev, { } -int check_migratable(Object *obj, Error **err) +bool vmstate_check_only_migratable(const VMStateDescription *vmsd) { - return 0; + return true; } -- cgit v1.2.1