Home
last modified time | relevance | path

Searched refs:gc (Results 1 – 25 of 68) sorted by relevance

123

/xen/tools/libxl/
A Dlibxl_xshelp.c53 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__xs_writev_perms()
78 int libxl__xs_writev_atonce(libxl__gc *gc, in libxl__xs_writev_atonce() argument
97 libxl__xs_transaction_abort(gc, &t); in libxl__xs_writev_atonce()
106 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__xs_vprintf()
110 s = libxl__vsprintf(gc, fmt, ap); in libxl__xs_vprintf()
136 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__xs_read()
140 libxl__ptr_add(gc, ptr); in libxl__xs_read()
146 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__xs_get_dompath()
152 libxl__ptr_add(gc, s); in libxl__xs_get_dompath()
159 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__xs_directory()
[all …]
A Dlibxl_usb.c26 static int usbback_is_loaded(libxl__gc *gc) in usbback_is_loaded() argument
50 rc = usbback_is_loaded(gc); in libxl__device_usbctrl_setdefault()
215 back = flexarray_make(gc, 12, 1); in libxl__device_usbctrl_add_xenstore()
218 front = flexarray_make(gc, 4, 1); in libxl__device_usbctrl_add_xenstore()
293 libxl__xs_transaction_abort(gc, &t); in libxl__device_usbctrl_add_xenstore()
330 libxl__xs_transaction_abort(gc, &t); in libxl__device_usbctrl_del_xenstore()
1350 return libxl__xs_read(gc, XBT_NULL, in usbdev_busid_from_ctrlport()
1363 dp = libxl__zalloc(gc, PATH_MAX); in usbintf_get_drvpath()
1666 usbback_dev_unassign(gc, busid); in usbback_dev_assign()
1667 usbdev_rebind(gc, busid); in usbback_dev_assign()
[all …]
A Dlibxl_internal.c63 gc->alloc_ptrs = realloc(gc->alloc_ptrs, new_maxsize * sizeof(void *)); in libxl__ptr_add()
64 if (!gc->alloc_ptrs) in libxl__ptr_add()
67 gc->alloc_ptrs[gc->alloc_maxsize++] = ptr; in libxl__ptr_add()
70 gc->alloc_ptrs[gc->alloc_maxsize++] = 0; in libxl__ptr_add()
87 free(gc->alloc_ptrs); in libxl__free_all()
88 gc->alloc_ptrs = 0; in libxl__free_all()
89 gc->alloc_maxsize = 0; in libxl__free_all()
97 libxl__ptr_add(gc, ptr); in libxl__malloc()
106 libxl__ptr_add(gc, ptr); in libxl__zalloc()
184 libxl__ptr_add(gc, s); in libxl__strdup()
[all …]
A Dlibxl_disk.c150 libxl__evdisable_disk_eject(gc, evg); in libxl_evdisable_disk_eject()
244 libxl_ctx *ctx = gc->owner; in device_disk_add()
300 front = flexarray_make(gc, 16, 1); in device_disk_add()
301 back = flexarray_make(gc, 16, 1); in device_disk_add()
438 libxl__xs_transaction_abort(gc, &t); in device_disk_add()
458 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__disk_from_xenstore()
527 tmp = libxl__xs_read(gc, XBT_NULL, in libxl__disk_from_xenstore()
560 tmp = libxl__xs_read(gc, XBT_NULL, in libxl__disk_from_xenstore()
825 empty = flexarray_make(gc, 4, 1); in cdrom_insert_ejected()
897 libxl__xs_transaction_abort(gc, &t); in cdrom_insert_ejected()
[all …]
A Dlibxl_device.c151 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__device_generic_add()
283 libxl__gc *gc; member
291 libxl__gc *gc = a->gc; in disk_try_backend() local
376 a.gc = gc; in libxl__device_disk_set_backend()
744 rc = libxl__get_domid(gc, &domid); in libxl__device_destroy()
1091 device_backend_cleanup(gc, aodev); in device_backend_callback()
1138 rc = libxl__get_domid(gc, &domid); in device_hotplug()
1253 device_hotplug_clean(gc, aodev); in device_hotplug_child_death_cb()
1319 device_hotplug_clean(gc, aodev); in device_hotplug_done()
1896 back = flexarray_make(gc, 16, 1); in libxl__device_add_async()
[all …]
A Dlibxl_arch.h20 int libxl__arch_domain_prepare_config(libxl__gc *gc,
26 int libxl__arch_domain_save_config(libxl__gc *gc,
38 int libxl__arch_domain_init_hw_description(libxl__gc *gc,
44 int libxl__arch_domain_finalise_hw_description(libxl__gc *gc,
51 int libxl__arch_build_dom_finish(libxl__gc *gc,
58 int libxl__arch_vnuma_build_vmemrange(libxl__gc *gc,
68 void libxl__arch_domain_create_info_setdefault(libxl__gc *gc,
72 void libxl__arch_domain_build_info_setdefault(libxl__gc *gc,
76 int libxl__arch_passthrough_mode_setdefault(libxl__gc *gc,
82 int libxl__arch_extra_memory(libxl__gc *gc,
[all …]
A Dlibxl_arm.c24 int libxl__arch_domain_prepare_config(libxl__gc *gc, in libxl__arch_domain_prepare_config() argument
136 int libxl__arch_extra_memory(libxl__gc *gc, in libxl__arch_extra_memory() argument
225 p = compat = libxl__zalloc(gc, sz); in fdt_property_compat()
282 res = fdt_property_compat(gc, fdt, 2, in make_root_properties()
488 res = fdt_property_compat(gc, fdt, 2, in make_gicv2_node()
602 res = fdt_property_compat(gc, fdt, 2, in make_hypervisor_node()
869 ainfo = get_arch_info(gc, dom); in libxl__prepare_dtb()
887 libxl__ptr_add(gc, pfdt); in libxl__prepare_dtb()
936 FDT( make_psci_node(gc, fdt) ); in libxl__prepare_dtb()
942 FDT( make_gicv2_node(gc, fdt, in libxl__prepare_dtb()
[all …]
A Dlibxl_internal.h772 struct libxl__gc gc; member
821 libxl__gc gc; member
838 return gc->owner; in libxl__gc_owner()
843 return gc->alloc_maxsize >= 0; in libxl__gc_is_real()
879 _hidden void libxl__free_all(libxl__gc *gc);
1660 libxl__xswait_stop(gc,&ds->w); in libxl__ev_devstate_cancel()
2375 libxl__gc *const gc __attribute__((unused)) = &egc->gc
2538 libxl__gc *const gc __attribute__((unused)) = &ao->gc
4304 #define GC_INIT(ctx) libxl__gc gc[1]; LIBXL_INIT_GC(gc[0],ctx)
4305 #define GC_FREE libxl__free_all(gc)
[all …]
A Dlibxl_vsnd.c44 char *tmp = libxl__strdup(gc, str); in libxl__sample_rates_from_string()
66 char *tmp = libxl__strdup(gc, str); in libxl__sample_formats_from_string()
99 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__params_from_xenstore()
109 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__params_from_xenstore()
119 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__params_from_xenstore()
128 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__params_from_xenstore()
137 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__params_from_xenstore()
162 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__stream_from_xenstore()
235 rc = libxl__xs_read_mandatory(gc, XBT_NULL, in libxl__vsnd_from_xenstore()
243 rc = libxl__xs_read_mandatory(gc, XBT_NULL, in libxl__vsnd_from_xenstore()
[all …]
A Dlibxl_qmp.c633 arg->map_key = libxl__strdup(gc, name); in qmp_parameters_common_add()
684 qmp = qmp_init_handler(gc, domid); in libxl__qmp_initialize()
745 qmp = libxl__qmp_initialize(gc, domid); in qmp_run_command()
953 libxl__ev_qmp_dispose(gc, qmp); in qemu_monitor_command_done()
1027 libxl__remove_file(gc, filename); in dm_stopped()
1220 qmp_ev_ensure_reading_writing(gc, ev); in qmp_ev_set_state()
1369 libxl__ev_qmp_dispose(gc, ev); in lock_error_callback()
1441 libxl__ev_qmp_dispose(gc, ev); in qmp_ev_fd_callback()
1510 qmp_ev_ensure_reading_writing(gc, ev); in qmp_ev_callback_writable()
1624 o = libxl__json_parse(gc, ev->rx_buf); in qmp_ev_get_next_msg()
[all …]
A Dlibxl_freebsd.c28 char *libxl__devid_to_localdev(libxl__gc *gc, int devid) in libxl__devid_to_localdev() argument
118 char *be_path = libxl__device_backend_path(gc, dev); in libxl__hotplug_nic()
122 rc = libxl__nic_type(gc, dev, &nictype); in libxl__hotplug_nic()
139 rc = libxl__hotplug_env_nic(gc, dev, env, num_exec); in libxl__hotplug_nic()
143 script = libxl__xs_read(gc, XBT_NULL, in libxl__hotplug_nic()
169 char *be_path = libxl__device_backend_path(gc, dev); in libxl__hotplug_disk()
173 script = libxl__xs_read(gc, XBT_NULL, in libxl__hotplug_disk()
220 rc = libxl__hotplug_disk(gc, dev, args, env, action); in libxl__get_hotplug_script_info()
237 int libxl__pci_numdevs(libxl__gc *gc) in libxl__pci_numdevs() argument
242 int libxl__pci_topology_init(libxl__gc *gc, in libxl__pci_topology_init() argument
[all …]
A Dlibxl_pci.c91 front = flexarray_make(gc, 16, 1); in libxl__create_pci_backend()
92 back = flexarray_make(gc, 16, 1); in libxl__create_pci_backend()
150 back = flexarray_make(gc, 16, 1); in libxl__device_pci_add_xenstore()
189 libxl__xs_writev(gc, t, be_path, libxl__xs_kvs_of_flexarray(gc, back)); in libxl__device_pci_add_xenstore()
197 libxl__xs_transaction_abort(gc, &t); in libxl__device_pci_add_xenstore()
359 libxl__ptr_add(gc, *list); in get_all_assigned_devices()
874 if ( sysfs_write_bdf(gc, in libxl__device_pci_assignable_remove()
1039 libxl__xswait_stop(gc, xswa); in check_qemu_running()
1887 libxl__ptr_add(gc, assigned); in do_pci_remove()
2087 libxl__ev_qmp_dispose(gc, qmp); in pci_remove_qmp_query_cb()
[all …]
A Dlibxl_vkb.c120 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
129 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
138 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
147 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
156 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
165 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
174 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
183 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
192 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__vkb_from_xenstore()
316 val = libxl__xs_read(gc, XBT_NULL, in libxl_device_vkb_getinfo()
[all …]
A Dlibxl_dom_suspend.c50 rc = libxl__ctx_evtchn_init(gc); in libxl__domain_suspend_init()
216 libxl__ev_evtchn_wait(gc, &dsps->guest_evtchn); in domain_suspend_common_wait_guest_evtchn()
231 libxl__xswait_stop(gc, &dsps->pvcontrol); in domain_suspend_common_pvcontrol_suspending()
273 libxl__xs_transaction_abort(gc, &t); in domain_suspend_common_pvcontrol_suspending()
279 libxl__xs_transaction_abort(gc, &t); in domain_suspend_common_pvcontrol_suspending()
394 libxl__ev_qmp_dispose(gc, &dsps->qmp); in domain_suspend_common_done()
437 if (libxl__qmp_resume(gc, domid)) in libxl__domain_resume_device_model_deprecated()
486 static void dm_resume_dispose(libxl__gc *gc, in dm_resume_dispose() argument
489 libxl__ev_qmp_dispose(gc, &dmrs->qmp); in dm_resume_dispose()
490 libxl__ev_time_deregister(gc, &dmrs->time); in dm_resume_dispose()
[all …]
A Dlibxl_netbsd.c28 char *libxl__devid_to_localdev(libxl__gc *gc, int devid) in libxl__devid_to_localdev() argument
35 static int libxl__hotplug(libxl__gc *gc, libxl__device *dev, char ***args, in libxl__hotplug() argument
38 char *be_path = libxl__device_backend_path(gc, dev); in libxl__hotplug()
42 script = libxl__xs_read(gc, XBT_NULL, in libxl__hotplug()
63 int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, in libxl__get_hotplug_script_info() argument
78 rc = libxl__hotplug(gc, dev, args, action); in libxl__get_hotplug_script_info()
96 rc = libxl__hotplug(gc, dev, args, action); in libxl__get_hotplug_script_info()
111 libxl_device_model_version libxl__default_device_model(libxl__gc *gc) in libxl__default_device_model() argument
116 int libxl__pci_numdevs(libxl__gc *gc) in libxl__pci_numdevs() argument
121 int libxl__pci_topology_init(libxl__gc *gc, in libxl__pci_topology_init() argument
[all …]
A Dlibxl_linux.c38 char *libxl__devid_to_localdev(libxl__gc *gc, int devid) in libxl__devid_to_localdev() argument
40 return libxl__devid_to_vdev(gc, devid); in libxl__devid_to_localdev()
45 static char **get_hotplug_env(libxl__gc *gc, in get_hotplug_env() argument
67 gatewaydev = libxl__xs_read(gc, XBT_NULL, in get_hotplug_env()
72 if (libxl__nic_type(gc, dev, &nictype)) { in get_hotplug_env()
125 rc = libxl__nic_type(gc, dev, &nictype); in libxl__hotplug_nic()
136 *env = get_hotplug_env(gc, script, dev); in libxl__hotplug_nic()
171 script = libxl__xs_read(gc, XBT_NULL, in libxl__hotplug_disk()
180 *env = get_hotplug_env(gc, script, dev); in libxl__hotplug_disk()
249 int libxl__pci_numdevs(libxl__gc *gc) in libxl__pci_numdevs() argument
[all …]
A Dlibxl_dom.c34 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__domain_type()
250 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__build_pre()
447 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__build_post()
502 libxl__xs_writev(gc, t, dom_path, ents); in libxl__build_post()
624 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__build_pv()
841 libxl__ptr_add(gc, data); in libxl__load_hvm_firmware_module()
861 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__domain_firmware()
1014 libxl__ptr_add(gc, data); in libxl__domain_firmware()
1033 libxl__ptr_add(gc, data); in libxl__domain_firmware()
1051 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__build_hvm()
[all …]
A Dlibxl_vtpm.c20 static int libxl__device_vtpm_setdefault(libxl__gc *gc, uint32_t domid, in libxl__device_vtpm_setdefault() argument
38 static int libxl__set_xenstore_vtpm(libxl__gc *gc, uint32_t domid, in libxl__set_xenstore_vtpm() argument
71 rc = libxl__xs_read_mandatory(gc, XBT_NULL, in libxl__vtpm_from_xenstore()
79 uuid = libxl__xs_read(gc, XBT_NULL, GCSPRINTF("%s/uuid", be_path)); in libxl__vtpm_from_xenstore()
114 rc = libxl__backendpath_parse_domid(gc, vtpminfo->backend, in libxl_device_vtpm_getinfo()
118 val = libxl__xs_read(gc, XBT_NULL, in libxl_device_vtpm_getinfo()
122 val = libxl__xs_read(gc, XBT_NULL, in libxl_device_vtpm_getinfo()
126 val = libxl__xs_read(gc, XBT_NULL, in libxl_device_vtpm_getinfo()
134 val = libxl__xs_read(gc, XBT_NULL, in libxl_device_vtpm_getinfo()
165 vtpms = libxl__device_list(gc, &libxl__vtpm_devtype, domid, &nb); in libxl_devid_to_device_vtpm()
[all …]
A Dlibxl_dm.c31 return libxl__strdup(gc, "no"); in libxl_tapif_script()
322 dm = qemu_xen_path(gc); in libxl__domain_device_model()
335 libxl__xc_device_get_rdm(libxl__gc *gc, in libxl__xc_device_get_rdm() argument
2372 libxl__xs_printf(gc, XBT_NULL, in libxl__spawn_stub_dm()
2376 libxl__xs_printf(gc, XBT_NULL, in libxl__spawn_stub_dm()
2784 libxl__xswait_stop(gc, xswait); in stubdom_xswait_cb()
2785 dmss_dispose(gc, &sdss->dm); in stubdom_xswait_cb()
3059 libxl__ev_qmp_dispose(gc, ev); in device_model_qmp_cb()
3320 dmss_dispose(gc, dmss); in device_model_postconfig_done()
3336 dm = qemu_xen_path(gc); in libxl__spawn_qdisk_backend()
[all …]
A Dlibxl_mem.c31 char *dompath = libxl__xs_get_dompath(gc, domid); in libxl_domain_setmaxmem()
40 lock = libxl__lock_domain_userdata(gc, domid); in libxl_domain_setmaxmem()
104 libxl_ctx *ctx = libxl__gc_owner(gc); in libxl__fill_dom0_memory_info()
111 target = libxl__xs_read(gc, t, target_path); in libxl__fill_dom0_memory_info()
112 staticmax = libxl__xs_read(gc, t, max_path); in libxl__fill_dom0_memory_info()
194 lock = libxl__lock_domain_userdata(gc, domid); in libxl_set_memory_target()
327 uuid = libxl__uuid2string(gc, ptr.uuid); in libxl_set_memory_target()
359 static_max = libxl__xs_read(gc, XBT_NULL, in libxl__get_memory_target()
491 rc = libxl__domain_config_setdefault(gc, in libxl_domain_need_memory()
496 rc = libxl__domain_need_memory_calculate(gc, in libxl_domain_need_memory()
[all …]
A Dlibxl_console.c25 dom_path = libxl__xs_get_dompath(gc, domid); in libxl__console_tty_path()
106 tty = libxl__xs_read(gc, XBT_NULL, tty_path); in libxl_console_get_tty()
197 vnc_port = libxl__xs_read(gc, XBT_NULL, in libxl_vncviewer_exec()
207 vnc_listen = libxl__xs_read(gc, XBT_NULL, in libxl_vncviewer_exec()
212 vnc_pass = libxl__xs_read(gc, XBT_NULL, in libxl_vncviewer_exec()
276 front = flexarray_make(gc, 16, 1); in libxl__device_console_add()
277 ro_front = flexarray_make(gc, 16, 1); in libxl__device_console_add()
278 back = flexarray_make(gc, 16, 1); in libxl__device_console_add()
358 ro_front = flexarray_make(gc, 16, 1); in libxl__device_vuart_add()
359 back = flexarray_make(gc, 16, 1); in libxl__device_vuart_add()
[all …]
A Dlibxl_dom_save.c113 rc = libxl__xs_transaction_start(gc, &t); in domain_suspend_switch_qemu_xen_traditional_logdirty()
141 rc = libxl__xs_transaction_commit(gc, &t); in domain_suspend_switch_qemu_xen_traditional_logdirty()
151 libxl__xs_transaction_abort(gc, &t); in domain_suspend_switch_qemu_xen_traditional_logdirty()
165 rc = libxl__xs_transaction_start(gc, &t); in switch_logdirty_xswatch()
200 libxl__xs_transaction_abort(gc, &t); in switch_logdirty_xswatch()
268 libxl__ev_time_deregister(gc, &lds->timeout); in switch_logdirty_done()
269 libxl__ev_qmp_dispose(gc, &lds->qmp); in switch_logdirty_done()
355 libxl__xs_read(gc, XBT_NULL, in libxl__save_emulator_xenstore_data()
360 append_string(gc, &buf, &len, key); in libxl__save_emulator_xenstore_data()
361 append_string(gc, &buf, &len, val); in libxl__save_emulator_xenstore_data()
[all …]
A Dlibxl_event.c174 libxl__poller_wakeup(gc, wake); in baton_wake()
207 baton_wake(gc, wake); in libxl__egc_ao_cleanup_1_baton()
527 time_deregister(gc, ev); in time_aborted()
613 time_deregister(gc, ev); in libxl__ev_time_deregister()
883 LIBXL__EVENT_DISASTER(gc, in evtchn_revents_check()
1010 evtchn_check_fd_deregister(gc); in libxl__ev_evtchn_wait()
1627 libxl__free_all(gc); in libxl__egc_cleanup_2_ul_cb_gc()
2038 libxl__free_all(&ao->gc); in libxl__ao__destroy()
2060 return &ao->gc; in libxl__ao_inprogress_gc()
2139 LIBXL_INIT_GC(ao->gc, ctx); in libxl__ao_create()
[all …]
A Dlibxl_json.c27 libxl__gc *gc; member
451 obj = libxl__zalloc(gc, sizeof(*obj)); in libxl__json_object_alloc()
538 libxl__json_object_free(gc, node); in libxl__json_object_free()
761 t = libxl__zalloc(ctx->gc, len + 1); in json_callback_number()
781 t = libxl__zalloc(ctx->gc, len + 1); in json_callback_string()
803 libxl__gc *gc = ctx->gc; in json_callback_map_key() local
805 t = libxl__zalloc(gc, len + 1); in json_callback_map_key()
924 yajl_ctx.gc = gc; in libxl__json_parse()
1021 char *libxl__json_object_to_json(libxl__gc *gc, in libxl__json_object_to_json() argument
1082 o = libxl__json_parse(gc, s); in libxl__object_from_json()
[all …]
A Dlibxl_nic.c92 switch (libxl__domain_type(gc, domid)) { in libxl__device_nic_setdefault()
136 libxl__abs_path(gc, nic->script, in libxl__set_xenstore_nic()
212 flexarray_append(back, libxl__strdup(gc, nic->ip)); in libxl__set_xenstore_nic()
227 flexarray_append(back, libxl__strdup(gc, nic->bridge)); in libxl__set_xenstore_nic()
231 flexarray_append(back, libxl__strdup(gc, in libxl__set_xenstore_nic()
258 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__nic_from_xenstore()
266 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__nic_from_xenstore()
280 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__nic_from_xenstore()
366 rc = libxl__xs_read_checked(gc, XBT_NULL, in libxl__nic_from_xenstore()
443 const char *libxl__device_nic_devname(libxl__gc *gc, in libxl__device_nic_devname() argument
[all …]

Completed in 84 milliseconds

123