• Home
  • Raw
  • Download

Lines Matching refs:vmsd

1684     const VMStateDescription *vmsd;  member
1745 se->vmsd = NULL; in register_savevm_live()
1822 const VMStateDescription *vmsd, in vmstate_register_with_alias_id() argument
1829 assert(alias_id == -1 || required_for_version >= vmsd->minimum_version_id); in vmstate_register_with_alias_id()
1832 se->version_id = vmsd->version_id; in vmstate_register_with_alias_id()
1835 se->vmsd = vmsd; in vmstate_register_with_alias_id()
1837 se->no_migrate = vmsd->unmigratable; in vmstate_register_with_alias_id()
1847 pstrcpy(se->compat->idstr, sizeof(se->compat->idstr), vmsd->name); in vmstate_register_with_alias_id()
1849 calculate_compat_instance_id(vmsd->name) : instance_id; in vmstate_register_with_alias_id()
1853 pstrcat(se->idstr, sizeof(se->idstr), vmsd->name); in vmstate_register_with_alias_id()
1866 void vmstate_unregister(DeviceState *dev, const VMStateDescription *vmsd, in vmstate_unregister() argument
1872 if (se->vmsd == vmsd && se->opaque == opaque) { in vmstate_unregister()
1882 static void vmstate_subsection_save(QEMUFile *f, const VMStateDescription *vmsd,
1884 static int vmstate_subsection_load(QEMUFile *f, const VMStateDescription *vmsd,
1887 int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd, in vmstate_load_state() argument
1890 VMStateField *field = vmsd->fields; in vmstate_load_state()
1893 if (version_id > vmsd->version_id) { in vmstate_load_state()
1896 if (version_id < vmsd->minimum_version_id_old) { in vmstate_load_state()
1899 if (version_id < vmsd->minimum_version_id) { in vmstate_load_state()
1900 return vmsd->load_state_old(f, opaque, version_id); in vmstate_load_state()
1902 if (vmsd->pre_load) { in vmstate_load_state()
1903 int ret = vmsd->pre_load(opaque); in vmstate_load_state()
1943 ret = vmstate_load_state(f, field->vmsd, addr, field->vmsd->version_id); in vmstate_load_state()
1955 ret = vmstate_subsection_load(f, vmsd, opaque); in vmstate_load_state()
1959 if (vmsd->post_load) { in vmstate_load_state()
1960 return vmsd->post_load(opaque, version_id); in vmstate_load_state()
1965 void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd, in vmstate_save_state() argument
1968 VMStateField *field = vmsd->fields; in vmstate_save_state()
1970 if (vmsd->pre_save) { in vmstate_save_state()
1971 vmsd->pre_save(opaque); in vmstate_save_state()
1975 field->field_exists(opaque, vmsd->version_id)) { in vmstate_save_state()
2007 vmstate_save_state(f, field->vmsd, addr); in vmstate_save_state()
2015 vmstate_subsection_save(f, vmsd, opaque); in vmstate_save_state()
2020 if (!se->vmsd) { /* Old style */ in vmstate_load()
2023 return vmstate_load_state(f, se->vmsd, se->opaque, version_id); in vmstate_load()
2028 if (!se->vmsd) { /* Old style */ in vmstate_save()
2032 vmstate_save_state(f,se->vmsd, se->opaque); in vmstate_save()
2158 if ((!se->ops || !se->ops->save_state) && !se->vmsd) { in qemu_savevm_state_complete()
2241 if (strcmp(idstr, sub->vmsd->name) == 0) { in vmstate_get_subsection()
2242 return sub->vmsd; in vmstate_get_subsection()
2249 static int vmstate_subsection_load(QEMUFile *f, const VMStateDescription *vmsd, in vmstate_subsection_load() argument
2259 if (len < strlen(vmsd->name) + 1) { in vmstate_subsection_load()
2269 if (strncmp(vmsd->name, idstr, strlen(vmsd->name)) != 0) { in vmstate_subsection_load()
2273 sub_vmsd = vmstate_get_subsection(vmsd->subsections, idstr); in vmstate_subsection_load()
2290 static void vmstate_subsection_save(QEMUFile *f, const VMStateDescription *vmsd, in vmstate_subsection_save() argument
2293 const VMStateSubsection *sub = vmsd->subsections; in vmstate_subsection_save()
2297 const VMStateDescription *vmsd = sub->vmsd; in vmstate_subsection_save() local
2301 len = strlen(vmsd->name); in vmstate_subsection_save()
2303 qemu_put_buffer(f, (uint8_t *)vmsd->name, len); in vmstate_subsection_save()
2304 qemu_put_be32(f, vmsd->version_id); in vmstate_subsection_save()
2305 vmstate_save_state(f, vmsd, opaque); in vmstate_subsection_save()