aboutsummaryrefslogtreecommitdiff
path: root/stubs/vmstate.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-17 14:57:54 +0200
committerJuan Quintela <quintela@redhat.com>2017-05-17 12:04:59 +0200
commit1bfe5f0586083747f1602931713111673849cd9d (patch)
treee70808d8e82700a8871ec9387835574e7ea5944d /stubs/vmstate.c
parentbac3b21218925006e1f7d3cae564afb1e9aeb8ee (diff)
downloadqemu-1bfe5f0586083747f1602931713111673849cd9d.zip
qemu-1bfe5f0586083747f1602931713111673849cd9d.tar.gz
qemu-1bfe5f0586083747f1602931713111673849cd9d.tar.bz2
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>
Diffstat (limited to 'stubs/vmstate.c')
-rw-r--r--stubs/vmstate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stubs/vmstate.c b/stubs/vmstate.c
index 6d52f29..6399474 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;
}