mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 15:00:34 +00:00
1bfe5f0586
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>
27 lines
718 B
C
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;
|
|
}
|