qemu/stubs/vmstate.c
Juan Quintela 1bfe5f0586 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>
2017-05-17 12:04:59 +02:00

27 lines
718 B
C

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "migration/vmstate.h"
const VMStateDescription vmstate_dummy = {};
int vmstate_register_with_alias_id(DeviceState *dev,
int instance_id,
const VMStateDescription *vmsd,
void *base, int alias_id,
int required_for_version,
Error **errp)
{
return 0;
}
void vmstate_unregister(DeviceState *dev,
const VMStateDescription *vmsd,
void *opaque)
{
}
bool vmstate_check_only_migratable(const VMStateDescription *vmsd)
{
return true;
}