Lines Matching refs:vmsd
215 const VMStateDescription *vmsd; member
529 const VMStateDescription *vmsd, int indent,
546 if (field->vmsd != NULL) { in dump_vmstate_vmsf()
548 dump_vmstate_vmsd(out_file, field->vmsd, indent, false); in dump_vmstate_vmsf()
563 const VMStateDescription *vmsd, int indent, in dump_vmstate_vmsd() argument
572 fprintf(out_file, "%*s\"name\": \"%s\",\n", indent, "", vmsd->name); in dump_vmstate_vmsd()
574 vmsd->version_id); in dump_vmstate_vmsd()
576 vmsd->minimum_version_id); in dump_vmstate_vmsd()
577 if (vmsd->fields != NULL) { in dump_vmstate_vmsd()
578 const VMStateField *field = vmsd->fields; in dump_vmstate_vmsd()
599 if (vmsd->subsections != NULL) { in dump_vmstate_vmsd()
600 const VMStateDescription * const *subsection = vmsd->subsections; in dump_vmstate_vmsd()
645 if (!dc->vmsd) { in dump_vmstate_json_to_file()
657 dc->vmsd->version_id); in dump_vmstate_json_to_file()
659 dc->vmsd->minimum_version_id); in dump_vmstate_json_to_file()
661 dump_vmstate_vmsd(out_file, dc->vmsd, indent, false); in dump_vmstate_json_to_file()
707 if (se->vmsd) { in save_state_priority()
708 return se->vmsd->priority; in save_state_priority()
785 se->vmsd = NULL; in register_savevm_live()
831 static void vmstate_check(const VMStateDescription *vmsd) in vmstate_check() argument
833 const VMStateField *field = vmsd->fields; in vmstate_check()
834 const VMStateDescription * const *subsection = vmsd->subsections; in vmstate_check()
840 vmstate_check(field->vmsd); in vmstate_check()
847 error_report("VMSTATE not ending with VMS_END: %s", vmsd->name); in vmstate_check()
857 assert(!strncmp(vmsd->name, (*subsection)->name, strlen(vmsd->name))); in vmstate_check()
865 const VMStateDescription *vmsd, in vmstate_register_with_alias_id() argument
873 assert(alias_id == -1 || required_for_version >= vmsd->minimum_version_id); in vmstate_register_with_alias_id()
876 se->version_id = vmsd->version_id; in vmstate_register_with_alias_id()
879 se->vmsd = vmsd; in vmstate_register_with_alias_id()
896 pstrcpy(se->compat->idstr, sizeof(se->compat->idstr), vmsd->name); in vmstate_register_with_alias_id()
898 calculate_compat_instance_id(vmsd->name) : instance_id; in vmstate_register_with_alias_id()
902 pstrcat(se->idstr, sizeof(se->idstr), vmsd->name); in vmstate_register_with_alias_id()
912 vmstate_check(vmsd); in vmstate_register_with_alias_id()
919 void vmstate_unregister(VMStateIf *obj, const VMStateDescription *vmsd, in vmstate_unregister() argument
925 if (se->vmsd == vmsd && se->opaque == opaque) { in vmstate_unregister()
935 trace_vmstate_load(se->idstr, se->vmsd ? se->vmsd->name : "(old)"); in vmstate_load()
936 if (!se->vmsd) { /* Old style */ in vmstate_load()
939 return vmstate_load_state(f, se->vmsd, se->opaque, se->load_version_id); in vmstate_load()
999 if ((!se->ops || !se->ops->save_state) && !se->vmsd) { in vmstate_save()
1002 if (se->vmsd && !vmstate_section_needed(se->vmsd, se->opaque)) { in vmstate_save()
1015 trace_vmstate_save(se->idstr, se->vmsd ? se->vmsd->name : "(old)"); in vmstate_save()
1016 if (!se->vmsd) { in vmstate_save()
1019 ret = vmstate_save_state_with_err(f, se->vmsd, se->opaque, vmdesc, in vmstate_save()
1209 if (se->vmsd && se->vmsd->unmigratable) { in qemu_savevm_state_blocked()
1223 if (se->vmsd && se->vmsd->unmigratable) { in qemu_savevm_non_migratable_list()
1262 if (se->vmsd && se->vmsd->dev_unplug_pending && in qemu_savevm_state_guest_unplug_pending()
1263 se->vmsd->dev_unplug_pending(se->opaque)) { in qemu_savevm_state_guest_unplug_pending()
1307 if (se->vmsd && se->vmsd->early_setup) { in qemu_savevm_state_setup()
1529 if (se->vmsd && se->vmsd->early_setup) { in qemu_savevm_state_complete_precopy_non_iterable()
3363 bool vmstate_check_only_migratable(const VMStateDescription *vmsd) in vmstate_check_only_migratable() argument
3370 return !(vmsd && vmsd->unmigratable); in vmstate_check_only_migratable()