Lines Matching refs:vmdesc

25                                    void *opaque, JSONWriter *vmdesc,
273 JSONWriter *vmdesc, in vmsd_desc_field_start() argument
280 if (!vmdesc) { in vmsd_desc_field_start()
294 json_writer_start_object(vmdesc, NULL); in vmsd_desc_field_start()
295 json_writer_str(vmdesc, "name", name); in vmsd_desc_field_start()
298 json_writer_int64(vmdesc, "array_len", max); in vmsd_desc_field_start()
300 json_writer_int64(vmdesc, "index", i); in vmsd_desc_field_start()
303 json_writer_str(vmdesc, "type", vmfield_get_type_name(field)); in vmsd_desc_field_start()
306 json_writer_start_object(vmdesc, "struct"); in vmsd_desc_field_start()
313 JSONWriter *vmdesc, in vmsd_desc_field_end() argument
316 if (!vmdesc) { in vmsd_desc_field_end()
322 json_writer_end_object(vmdesc); in vmsd_desc_field_end()
325 json_writer_int64(vmdesc, "size", size); in vmsd_desc_field_end()
326 json_writer_end_object(vmdesc); in vmsd_desc_field_end()
353 void *opaque, JSONWriter *vmdesc, int version_id, Error **errp) in vmstate_save_state_v() argument
369 if (vmdesc) { in vmstate_save_state_v()
370 json_writer_str(vmdesc, "vmsd_name", vmsd->name); in vmstate_save_state_v()
371 json_writer_int64(vmdesc, "version", version_id); in vmstate_save_state_v()
372 json_writer_start_array(vmdesc, "fields"); in vmstate_save_state_v()
381 JSONWriter *vmdesc_loop = vmdesc; in vmstate_save_state_v()
441 if (vmdesc) { in vmstate_save_state_v()
442 json_writer_end_array(vmdesc); in vmstate_save_state_v()
445 ret = vmstate_subsection_save(f, vmsd, opaque, vmdesc, errp); in vmstate_save_state_v()
523 void *opaque, JSONWriter *vmdesc, in vmstate_subsection_save() argument
537 if (vmdesc) { in vmstate_subsection_save()
540 json_writer_start_array(vmdesc, "subsections"); in vmstate_subsection_save()
544 json_writer_start_object(vmdesc, NULL); in vmstate_subsection_save()
552 ret = vmstate_save_state_with_err(f, vmsdsub, opaque, vmdesc, errp); in vmstate_subsection_save()
557 if (vmdesc) { in vmstate_subsection_save()
558 json_writer_end_object(vmdesc); in vmstate_subsection_save()
565 json_writer_end_array(vmdesc); in vmstate_subsection_save()