mirror of https://github.com/xqemu/xqemu.git
s390/stattrib: Make SaveVMHandlers data static
There's no need for this to be dynamic, make it static. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20180212154903.8859-1-dgilbert@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
4ada99ade2
commit
571729a00a
|
@ -365,22 +365,22 @@ static inline void s390_stattrib_set_migration_enabled(Object *obj, bool value,
|
||||||
s->migration_enabled = value;
|
s->migration_enabled = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static SaveVMHandlers savevm_s390_stattrib_handlers = {
|
||||||
|
.save_setup = cmma_save_setup,
|
||||||
|
.save_live_iterate = cmma_save_iterate,
|
||||||
|
.save_live_complete_precopy = cmma_save_complete,
|
||||||
|
.save_live_pending = cmma_save_pending,
|
||||||
|
.save_cleanup = cmma_save_cleanup,
|
||||||
|
.load_state = cmma_load,
|
||||||
|
.is_active = cmma_active,
|
||||||
|
};
|
||||||
|
|
||||||
static void s390_stattrib_instance_init(Object *obj)
|
static void s390_stattrib_instance_init(Object *obj)
|
||||||
{
|
{
|
||||||
S390StAttribState *sas = S390_STATTRIB(obj);
|
S390StAttribState *sas = S390_STATTRIB(obj);
|
||||||
SaveVMHandlers *ops;
|
|
||||||
|
|
||||||
/* ops will always be freed by qemu when unregistering */
|
register_savevm_live(NULL, TYPE_S390_STATTRIB, 0, 0,
|
||||||
ops = g_new0(SaveVMHandlers, 1);
|
&savevm_s390_stattrib_handlers, sas);
|
||||||
|
|
||||||
ops->save_setup = cmma_save_setup;
|
|
||||||
ops->save_live_iterate = cmma_save_iterate;
|
|
||||||
ops->save_live_complete_precopy = cmma_save_complete;
|
|
||||||
ops->save_live_pending = cmma_save_pending;
|
|
||||||
ops->save_cleanup = cmma_save_cleanup;
|
|
||||||
ops->load_state = cmma_load;
|
|
||||||
ops->is_active = cmma_active;
|
|
||||||
register_savevm_live(NULL, TYPE_S390_STATTRIB, 0, 0, ops, sas);
|
|
||||||
|
|
||||||
object_property_add_bool(obj, "migration-enabled",
|
object_property_add_bool(obj, "migration-enabled",
|
||||||
s390_stattrib_get_migration_enabled,
|
s390_stattrib_get_migration_enabled,
|
||||||
|
|
Loading…
Reference in New Issue