Lines Matching refs:vmsd

249     const VMStateDescription *vmsd;  member
562 const VMStateDescription *vmsd, int indent,
579 if (field->vmsd != NULL) { in dump_vmstate_vmsf()
581 dump_vmstate_vmsd(out_file, field->vmsd, indent, false); in dump_vmstate_vmsf()
596 const VMStateDescription *vmsd, int indent, in dump_vmstate_vmsd() argument
605 fprintf(out_file, "%*s\"name\": \"%s\",\n", indent, "", vmsd->name); in dump_vmstate_vmsd()
607 vmsd->version_id); in dump_vmstate_vmsd()
609 vmsd->minimum_version_id); in dump_vmstate_vmsd()
610 if (vmsd->fields != NULL) { in dump_vmstate_vmsd()
611 const VMStateField *field = vmsd->fields; in dump_vmstate_vmsd()
632 if (vmsd->subsections != NULL) { in dump_vmstate_vmsd()
633 const VMStateDescription * const *subsection = vmsd->subsections; in dump_vmstate_vmsd()
678 if (!dc->vmsd) { in dump_vmstate_json_to_file()
690 dc->vmsd->version_id); in dump_vmstate_json_to_file()
692 dc->vmsd->minimum_version_id); in dump_vmstate_json_to_file()
694 dump_vmstate_vmsd(out_file, dc->vmsd, indent, false); in dump_vmstate_json_to_file()
740 if (se->vmsd) { in save_state_priority()
741 return se->vmsd->priority; in save_state_priority()
818 se->vmsd = NULL; in register_savevm_live()
864 static void vmstate_check(const VMStateDescription *vmsd) in vmstate_check() argument
866 const VMStateField *field = vmsd->fields; in vmstate_check()
867 const VMStateDescription * const *subsection = vmsd->subsections; in vmstate_check()
873 vmstate_check(field->vmsd); in vmstate_check()
880 error_report("VMSTATE not ending with VMS_END: %s", vmsd->name); in vmstate_check()
890 assert(!strncmp(vmsd->name, (*subsection)->name, strlen(vmsd->name))); in vmstate_check()
898 const VMStateDescription *vmsd, in vmstate_register_with_alias_id() argument
906 assert(alias_id == -1 || required_for_version >= vmsd->minimum_version_id); in vmstate_register_with_alias_id()
909 se->version_id = vmsd->version_id; in vmstate_register_with_alias_id()
912 se->vmsd = vmsd; in vmstate_register_with_alias_id()
929 pstrcpy(se->compat->idstr, sizeof(se->compat->idstr), vmsd->name); in vmstate_register_with_alias_id()
931 calculate_compat_instance_id(vmsd->name) : instance_id; in vmstate_register_with_alias_id()
935 pstrcat(se->idstr, sizeof(se->idstr), vmsd->name); in vmstate_register_with_alias_id()
945 vmstate_check(vmsd); in vmstate_register_with_alias_id()
952 void vmstate_unregister(VMStateIf *obj, const VMStateDescription *vmsd, in vmstate_unregister() argument
958 if (se->vmsd == vmsd && se->opaque == opaque) { in vmstate_unregister()
968 trace_vmstate_load(se->idstr, se->vmsd ? se->vmsd->name : "(old)"); in vmstate_load()
969 if (!se->vmsd) { /* Old style */ in vmstate_load()
972 return vmstate_load_state(f, se->vmsd, se->opaque, se->load_version_id); in vmstate_load()
1032 if ((!se->ops || !se->ops->save_state) && !se->vmsd) { in vmstate_save()
1035 if (se->vmsd && !vmstate_section_needed(se->vmsd, se->opaque)) { in vmstate_save()
1048 trace_vmstate_save(se->idstr, se->vmsd ? se->vmsd->name : "(old)"); in vmstate_save()
1049 if (!se->vmsd) { in vmstate_save()
1052 ret = vmstate_save_state_with_err(f, se->vmsd, se->opaque, vmdesc, in vmstate_save()
1255 if (se->vmsd && se->vmsd->unmigratable) { in qemu_savevm_state_blocked()
1269 if (se->vmsd && se->vmsd->unmigratable) { in qemu_savevm_non_migratable_list()
1312 if (se->vmsd && se->vmsd->dev_unplug_pending && in qemu_savevm_state_guest_unplug_pending()
1313 se->vmsd->dev_unplug_pending(se->opaque)) { in qemu_savevm_state_guest_unplug_pending()
1360 if (se->vmsd && se->vmsd->early_setup) { in qemu_savevm_state_setup()
1653 if (se->vmsd && se->vmsd->early_setup) { in qemu_savevm_state_complete_precopy_non_iterable()
3565 bool vmstate_check_only_migratable(const VMStateDescription *vmsd) in vmstate_check_only_migratable() argument
3572 return !(vmsd && vmsd->unmigratable); in vmstate_check_only_migratable()