/xen/tools/libxl/ |
A D | libxl_xshelp.c | 48 int libxl__xs_writev_perms(libxl__gc *gc, xs_transaction_t t, in libxl__xs_writev_perms() 72 int libxl__xs_writev(libxl__gc *gc, xs_transaction_t t, in libxl__xs_writev() 78 int libxl__xs_writev_atonce(libxl__gc *gc, in libxl__xs_writev_atonce() 103 int libxl__xs_vprintf(libxl__gc *gc, xs_transaction_t t, in libxl__xs_vprintf() 121 int libxl__xs_printf(libxl__gc *gc, xs_transaction_t t, in libxl__xs_printf() 144 char *libxl__xs_get_dompath(libxl__gc *gc, uint32_t domid) in libxl__xs_get_dompath() 156 char **libxl__xs_directory(libxl__gc *gc, xs_transaction_t t, in libxl__xs_directory() 166 int libxl__xs_mknod(libxl__gc *gc, xs_transaction_t t, in libxl__xs_mknod() 188 char *libxl__xs_libxl_path(libxl__gc *gc, uint32_t domid) in libxl__xs_libxl_path() 208 int libxl__xs_read_checked(libxl__gc *gc, xs_transaction_t t, in libxl__xs_read_checked() [all …]
|
A D | libxl_arm.c | 24 int libxl__arch_domain_prepare_config(libxl__gc *gc, in libxl__arch_domain_prepare_config() 108 int libxl__arch_domain_save_config(libxl__gc *gc, in libxl__arch_domain_save_config() 136 int libxl__arch_extra_memory(libxl__gc *gc, in libxl__arch_extra_memory() 271 static int make_root_properties(libxl__gc *gc, in make_root_properties() 397 static int make_psci_node(libxl__gc *gc, void *fdt) in make_psci_node() 423 static int make_optee_node(libxl__gc *gc, void *fdt) in make_optee_node() 478 static int make_gicv2_node(libxl__gc *gc, void *fdt, in make_gicv2_node() 521 static int make_gicv3_node(libxl__gc *gc, void *fdt) in make_gicv3_node() 563 static int make_timer_node(libxl__gc *gc, void *fdt, in make_timer_node() 676 static void debug_dump_fdt(libxl__gc *gc, void *fdt) in debug_dump_fdt() [all …]
|
A D | libxl_netbsd.c | 28 char *libxl__devid_to_localdev(libxl__gc *gc, int devid) in libxl__devid_to_localdev() 35 static int libxl__hotplug(libxl__gc *gc, libxl__device *dev, char ***args, in libxl__hotplug() 63 int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, in libxl__get_hotplug_script_info() 111 libxl_device_model_version libxl__default_device_model(libxl__gc *gc) in libxl__default_device_model() 116 int libxl__pci_numdevs(libxl__gc *gc) in libxl__pci_numdevs() 121 int libxl__pci_topology_init(libxl__gc *gc, in libxl__pci_topology_init() 128 int libxl__local_dm_preexec_restrict(libxl__gc *gc) in libxl__local_dm_preexec_restrict()
|
A D | libxl_x86.c | 6 int libxl__arch_domain_prepare_config(libxl__gc *gc, in libxl__arch_domain_prepare_config() 27 int libxl__arch_domain_save_config(libxl__gc *gc, in libxl__arch_domain_save_config() 48 static int e820_sanitize(libxl__gc *gc, struct e820entry src[], in e820_sanitize() 240 static int e820_host_sanitize(libxl__gc *gc, in e820_host_sanitize() 259 static int libxl__e820_alloc(libxl__gc *gc, uint32_t domid, in libxl__e820_alloc() 538 int libxl__arch_extra_memory(libxl__gc *gc, in libxl__arch_extra_memory() 547 int libxl__arch_domain_init_hw_description(libxl__gc *gc, in libxl__arch_domain_init_hw_description() 555 int libxl__arch_build_dom_finish(libxl__gc *gc, in libxl__arch_build_dom_finish() 564 int libxl__arch_vnuma_build_vmemrange(libxl__gc *gc, in libxl__arch_vnuma_build_vmemrange() 673 static int domain_construct_memmap(libxl__gc *gc, in domain_construct_memmap() [all …]
|
A D | libxl_freebsd.c | 28 char *libxl__devid_to_localdev(libxl__gc *gc, int devid) in libxl__devid_to_localdev() 85 static int libxl__hotplug_env_nic(libxl__gc *gc, libxl__device *dev, char ***env, in libxl__hotplug_env_nic() 112 static int libxl__hotplug_nic(libxl__gc *gc, libxl__device *dev, in libxl__hotplug_nic() 165 static int libxl__hotplug_disk(libxl__gc *gc, libxl__device *dev, in libxl__hotplug_disk() 195 int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, in libxl__get_hotplug_script_info() 232 libxl_device_model_version libxl__default_device_model(libxl__gc *gc) in libxl__default_device_model() 237 int libxl__pci_numdevs(libxl__gc *gc) in libxl__pci_numdevs() 242 int libxl__pci_topology_init(libxl__gc *gc, in libxl__pci_topology_init() 249 int libxl__local_dm_preexec_restrict(libxl__gc *gc) in libxl__local_dm_preexec_restrict()
|
A D | libxl_internal.c | 44 void libxl__ptr_add(libxl__gc *gc, void *ptr) in libxl__ptr_add() 75 void libxl__free_all(libxl__gc *gc) in libxl__free_all() 92 void *libxl__malloc(libxl__gc *gc, size_t size) in libxl__malloc() 101 void *libxl__zalloc(libxl__gc *gc, size_t size) in libxl__zalloc() 110 void *libxl__calloc(libxl__gc *gc, size_t nmemb, size_t size) in libxl__calloc() 162 char *libxl__sprintf(libxl__gc *gc, const char *fmt, ...) in libxl__sprintf() 174 char *libxl__strdup(libxl__gc *gc, const char *c) in libxl__strdup() 189 char *libxl__strndup(libxl__gc *gc, const char *c, size_t n) in libxl__strndup() 204 char *libxl__dirname(libxl__gc *gc, const char *s) in libxl__dirname() 507 libxl__flock *libxl__lock_domid_history(libxl__gc *gc) in libxl__lock_domid_history() [all …]
|
A D | libxl_vsnd.c | 19 static int libxl__device_vsnd_setdefault(libxl__gc *gc, uint32_t domid, in libxl__device_vsnd_setdefault() 27 static int libxl__device_from_vsnd(libxl__gc *gc, uint32_t domid, in libxl__device_from_vsnd() 41 static int libxl__sample_rates_from_string(libxl__gc *gc, const char *str, in libxl__sample_rates_from_string() 93 static int libxl__params_from_xenstore(libxl__gc *gc, const char *path, in libxl__params_from_xenstore() 152 static int libxl__stream_from_xenstore(libxl__gc *gc, const char *path, in libxl__stream_from_xenstore() 185 static int libxl__pcm_from_xenstore(libxl__gc *gc, const char *path, in libxl__pcm_from_xenstore() 286 static void libxl__update_config_vsnd(libxl__gc *gc, in libxl__update_config_vsnd() 367 static int libxl__set_params_vsnd(libxl__gc *gc, char *path, in libxl__set_params_vsnd() 435 static int libxl__set_streams_vsnd(libxl__gc *gc, char *path, in libxl__set_streams_vsnd() 468 static int libxl__set_pcms_vsnd(libxl__gc *gc, libxl_vsnd_pcm *pcms, in libxl__set_pcms_vsnd() [all …]
|
A D | libxl_linux.c | 38 char *libxl__devid_to_localdev(libxl__gc *gc, int devid) in libxl__devid_to_localdev() 45 static char **get_hotplug_env(libxl__gc *gc, in get_hotplug_env() 107 static int libxl__hotplug_nic(libxl__gc *gc, libxl__device *dev, in libxl__hotplug_nic() 163 static int libxl__hotplug_disk(libxl__gc *gc, libxl__device *dev, in libxl__hotplug_disk() 201 int libxl__get_hotplug_script_info(libxl__gc *gc, libxl__device *dev, in libxl__get_hotplug_script_info() 244 libxl_device_model_version libxl__default_device_model(libxl__gc *gc) in libxl__default_device_model() 249 int libxl__pci_numdevs(libxl__gc *gc) in libxl__pci_numdevs() 271 int libxl__pci_topology_init(libxl__gc *gc, in libxl__pci_topology_init() 339 int libxl__local_dm_preexec_restrict(libxl__gc *gc) in libxl__local_dm_preexec_restrict()
|
A D | libxl_dom.c | 71 int libxl__domain_cpupool(libxl__gc *gc, uint32_t domid) in libxl__domain_cpupool() 142 static int numa_place_domain(libxl__gc *gc, uint32_t domid, in numa_place_domain() 246 int libxl__build_pre(libxl__gc *gc, uint32_t domid, in libxl__build_pre() 442 int libxl__build_post(libxl__gc *gc, uint32_t domid, in libxl__build_post() 514 static int set_vnuma_info(libxl__gc *gc, uint32_t domid, in set_vnuma_info() 621 int libxl__build_pv(libxl__gc *gc, uint32_t domid, in libxl__build_pv() 771 static int hvm_build_set_xs_values(libxl__gc *gc, in hvm_build_set_xs_values() 820 static int libxl__load_hvm_firmware_module(libxl__gc *gc, in libxl__load_hvm_firmware_module() 856 static int libxl__domain_firmware(libxl__gc *gc, in libxl__domain_firmware() 1047 int libxl__build_hvm(libxl__gc *gc, uint32_t domid, in libxl__build_hvm() [all …]
|
A D | libxl_arm_acpi.c | 70 static int libxl__estimate_madt_size(libxl__gc *gc, in libxl__estimate_madt_size() 98 int libxl__get_acpi_size(libxl__gc *gc, in libxl__get_acpi_size() 121 static int libxl__allocate_acpi_tables(libxl__gc *gc, in libxl__allocate_acpi_tables() 186 static void make_acpi_rsdp(libxl__gc *gc, struct xc_dom_image *dom, in make_acpi_rsdp() 221 static void make_acpi_xsdt(libxl__gc *gc, struct xc_dom_image *dom, in make_acpi_xsdt() 235 static void make_acpi_gtdt(libxl__gc *gc, struct xc_dom_image *dom, in make_acpi_gtdt() 298 static int make_acpi_madt(libxl__gc *gc, struct xc_dom_image *dom, in make_acpi_madt() 341 static void make_acpi_fadt(libxl__gc *gc, struct xc_dom_image *dom, in make_acpi_fadt() 360 static void make_acpi_dsdt(libxl__gc *gc, struct xc_dom_image *dom, in make_acpi_dsdt() 369 int libxl__prepare_acpi(libxl__gc *gc, libxl_domain_build_info *info, in libxl__prepare_acpi()
|
A D | libxl_qmp.c | 391 static int qmp_next(libxl__gc *gc, libxl__qmp_handler *qmp) in qmp_next() 620 static void qmp_parameters_common_add(libxl__gc *gc, in qmp_parameters_common_add() 639 void libxl__qmp_param_add_string(libxl__gc *gc, in libxl__qmp_param_add_string() 651 void libxl__qmp_param_add_bool(libxl__gc *gc, in libxl__qmp_param_add_bool() 662 void libxl__qmp_param_add_integer(libxl__gc *gc, in libxl__qmp_param_add_integer() 719 void libxl__qmp_cleanup(libxl__gc *gc, uint32_t domid) in libxl__qmp_cleanup() 738 static int qmp_run_command(libxl__gc *gc, int domid, in qmp_run_command() 765 int libxl__qmp_resume(libxl__gc *gc, int domid) in libxl__qmp_resume() 770 int libxl__qmp_nbd_server_start(libxl__gc *gc, int domid, in libxl__qmp_nbd_server_start() 838 int libxl__qmp_nbd_server_stop(libxl__gc *gc, int domid) in libxl__qmp_nbd_server_stop() [all …]
|
A D | libxl_sched.c | 173 static int sched_arinc653_domain_set(libxl__gc *gc, uint32_t domid, in sched_arinc653_domain_set() 181 static int sched_null_domain_set(libxl__gc *gc, uint32_t domid, in sched_null_domain_set() 188 static int sched_null_domain_get(libxl__gc *gc, uint32_t domid, in sched_null_domain_get() 195 static int sched_credit_domain_get(libxl__gc *gc, uint32_t domid, in sched_credit_domain_get() 215 static int sched_credit_domain_set(libxl__gc *gc, uint32_t domid, in sched_credit_domain_set() 265 static int sched_ratelimit_check(libxl__gc *gc, int ratelimit) in sched_ratelimit_check() 500 static int sched_rtds_vcpu_get(libxl__gc *gc, uint32_t domid, in sched_rtds_vcpu_get() 554 static int sched_rtds_vcpu_get_all(libxl__gc *gc, uint32_t domid, in sched_rtds_vcpu_get_all() 603 static int sched_rtds_vcpu_set(libxl__gc *gc, uint32_t domid, in sched_rtds_vcpu_set() 714 static int sched_rtds_domain_get(libxl__gc *gc, uint32_t domid, in sched_rtds_domain_get() [all …]
|
A D | libxl_nic.c | 56 static int libxl__device_nic_setdefault(libxl__gc *gc, uint32_t domid, in libxl__device_nic_setdefault() 119 static void libxl__update_config_nic(libxl__gc *gc, libxl_device_nic *dst, in libxl__update_config_nic() 127 static int libxl__set_xenstore_nic(libxl__gc *gc, uint32_t domid, in libxl__set_xenstore_nic() 250 static int libxl__nic_from_xenstore(libxl__gc *gc, const char *libxl_path, in libxl__nic_from_xenstore() 443 const char *libxl__device_nic_devname(libxl__gc *gc, in libxl__device_nic_devname() 464 static void libxl_device_nic_update_config(libxl__gc *gc, void *d, void *s) in libxl_device_nic_update_config() 469 int libxl__device_nic_set_devids(libxl__gc *gc, libxl_domain_config *d_config, in libxl__device_nic_set_devids()
|
A D | libxl_event.c | 172 static void baton_wake(libxl__gc *gc, libxl__poller *wake) in baton_wake() 184 void libxl__egc_ao_cleanup_1_baton(libxl__gc *gc) in libxl__egc_ao_cleanup_1_baton() 291 static void osevent_release_nexus(libxl__gc *gc, in osevent_release_nexus() 335 static void osevent_hook_pre_noop(libxl__gc *gc, void *ev, in osevent_hook_pre_noop() 347 int libxl__ev_fd_register(libxl__gc *gc, libxl__ev_fd *ev, in libxl__ev_fd_register() 764 static void watches_check_fd_deregister(libxl__gc *gc) in watches_check_fd_deregister() 945 int libxl__ctx_evtchn_init(libxl__gc *gc) { in libxl__ctx_evtchn_init() 973 static void evtchn_check_fd_deregister(libxl__gc *gc) in evtchn_check_fd_deregister() 1794 int libxl__poller_init(libxl__gc *gc, libxl__poller *p) in libxl__poller_init() 1818 libxl__poller *libxl__poller_get(libxl__gc *gc) in libxl__poller_get() [all …]
|
A D | libxl_usb.c | 26 static int usbback_is_loaded(libxl__gc *gc) in usbback_is_loaded() 159 static const char *vusb_be_from_xs_libxl_type(libxl__gc *gc, in vusb_be_from_xs_libxl_type() 710 static int libxl__usbctrl_from_xenstore(libxl__gc *gc, in libxl__usbctrl_from_xenstore() 899 static int get_assigned_devices(libxl__gc *gc, in get_assigned_devices() 985 libxl__device_usbdev_list_for_usbctrl(libxl__gc *gc, in libxl__device_usbdev_list_for_usbctrl() 1083 static char *vusb_get_port_path(libxl__gc *gc, uint32_t domid, in vusb_get_port_path() 1154 static int libxl__device_usbdev_setdefault(libxl__gc *gc, in libxl__device_usbdev_setdefault() 1375 static int unbind_usbintf(libxl__gc *gc, const char *intf) in unbind_usbintf() 1443 static int usbintf_is_assigned(libxl__gc *gc, char *intf) in usbintf_is_assigned() 1567 static int usbdev_rebind(libxl__gc *gc, const char *busid) in usbdev_rebind() [all …]
|
A D | libxl_json.c | 27 libxl__gc *gc; member 128 int libxl__bool_parse_json(libxl__gc *gc, const libxl__json_object *o, in libxl__bool_parse_json() 147 int libxl__uuid_parse_json(libxl__gc *gc, const libxl__json_object *o, in libxl__uuid_parse_json() 332 int libxl__mac_parse_json(libxl__gc *gc, const libxl__json_object *o, in libxl__mac_parse_json() 446 libxl__json_object *libxl__json_object_alloc(libxl__gc *gc, in libxl__json_object_alloc() 466 static int libxl__json_object_append_to(libxl__gc *gc, in libxl__json_object_append_to() 507 void libxl__json_object_free(libxl__gc *gc, libxl__json_object *obj) in libxl__json_object_free() 614 yajl_status libxl__json_object_to_yajl_gen(libxl__gc *gc, in libxl__json_object_to_yajl_gen() 803 libxl__gc *gc = ctx->gc; in json_callback_map_key() local 916 libxl__json_object *libxl__json_parse(libxl__gc *gc, const char *s) in libxl__json_parse() [all …]
|
A D | libxl_arm_no_acpi.c | 21 int libxl__prepare_acpi(libxl__gc *gc, libxl_domain_build_info *info, in libxl__prepare_acpi() 27 int libxl__get_acpi_size(libxl__gc *gc, in libxl__get_acpi_size()
|
A D | libxl_vnuma.c | 42 static int check_vnuma_affinity(libxl__gc *gc, in check_vnuma_affinity() 87 int libxl__vnuma_config_check(libxl__gc *gc, in libxl__vnuma_config_check() 213 int libxl__vnuma_build_vmemrange_pv_generic(libxl__gc *gc, in libxl__vnuma_build_vmemrange_pv_generic() 243 int libxl__vnuma_build_vmemrange_pv(libxl__gc *gc, in libxl__vnuma_build_vmemrange_pv() 253 int libxl__vnuma_build_vmemrange_hvm(libxl__gc *gc, in libxl__vnuma_build_vmemrange_hvm()
|
A D | libxl_device.c | 88 int libxl__device_exists(libxl__gc *gc, xs_transaction_t t, in libxl__device_exists() 105 int libxl__parse_backend_path(libxl__gc *gc, in libxl__parse_backend_path() 148 int libxl__device_generic_add(libxl__gc *gc, xs_transaction_t t, in libxl__device_generic_add() 283 libxl__gc *gc; member 291 libxl__gc *gc = a->gc; in disk_try_backend() local 578 char *libxl__devid_to_vdev(libxl__gc *gc, int devid) in libxl__devid_to_vdev() 729 int libxl__device_destroy(libxl__gc *gc, libxl__device *dev) in libxl__device_destroy() 1350 int libxl__wait_for_device_model_deprecated(libxl__gc *gc, in libxl__wait_for_device_model_deprecated() 1419 int libxl__device_nextid(libxl__gc *gc, uint32_t domid, in libxl__device_nextid() 1527 static void check_and_maybe_remove_guest(libxl__gc *gc, in check_and_maybe_remove_guest() [all …]
|
A D | libxl_vtpm.c | 20 static int libxl__device_vtpm_setdefault(libxl__gc *gc, uint32_t domid, in libxl__device_vtpm_setdefault() 31 static void libxl__update_config_vtpm(libxl__gc *gc, libxl_device_vtpm *dst, in libxl__update_config_vtpm() 38 static int libxl__set_xenstore_vtpm(libxl__gc *gc, uint32_t domid, in libxl__set_xenstore_vtpm() 61 static int libxl__vtpm_from_xenstore(libxl__gc *gc, const char *libxl_path, in libxl__vtpm_from_xenstore() 221 static void libxl_device_vtpm_update_config(libxl__gc *gc, void *d, void *s) in libxl_device_vtpm_update_config()
|
A D | libxl_dm.c | 28 static const char *libxl_tapif_script(libxl__gc *gc) in libxl_tapif_script() 42 static const char *qemu_xen_path(libxl__gc *gc) in qemu_xen_path() 47 static int libxl__create_qemu_logfile(libxl__gc *gc, char *name) in libxl__create_qemu_logfile() 121 static int libxl__domain_get_device_model_uid(libxl__gc *gc, in libxl__domain_get_device_model_uid() 306 const char *libxl__domain_device_model(libxl__gc *gc, in libxl__domain_device_model() 335 libxl__xc_device_get_rdm(libxl__gc *gc, in libxl__xc_device_get_rdm() 424 int libxl__domain_device_construct_rdm(libxl__gc *gc, in libxl__domain_device_construct_rdm() 940 static char *dm_spice_options(libxl__gc *gc, in dm_spice_options() 985 libxl__detect_gfx_passthru_kind(libxl__gc *gc, in libxl__detect_gfx_passthru_kind() 2093 static int libxl__write_stub_dmargs(libxl__gc *gc, in libxl__write_stub_dmargs() [all …]
|
A D | libxl_exec.c | 69 void libxl__exec(libxl__gc *gc, int stdinfd, int stdoutfd, int stderrfd, in libxl__exec() 140 int libxl__spawn_record_pid(libxl__gc *gc, libxl__spawn_state *spawn, pid_t pid) in libxl__spawn_record_pid() 160 int libxl__xenstore_child_wait_deprecated(libxl__gc *gc, in libxl__xenstore_child_wait_deprecated() 165 int (*check_callback)(libxl__gc *gc, in libxl__xenstore_child_wait_deprecated() 346 static void spawn_cleanup(libxl__gc *gc, libxl__spawn_state *ss) in spawn_cleanup() 352 static void spawn_detach(libxl__gc *gc, libxl__spawn_state *ss) in spawn_detach() 370 void libxl__spawn_initiate_detach(libxl__gc *gc, libxl__spawn_state *ss) in libxl__spawn_initiate_detach()
|
A D | libxl_vdispl.c | 19 static int libxl__device_vdispl_setdefault(libxl__gc *gc, uint32_t domid, in libxl__device_vdispl_setdefault() 27 static int libxl__vdispl_from_xenstore(libxl__gc *gc, const char *libxl_path, in libxl__vdispl_from_xenstore() 43 static void libxl__update_config_vdispl(libxl__gc *gc, in libxl__update_config_vdispl() 64 static int libxl__set_xenstore_vdispl(libxl__gc *gc, uint32_t domid, in libxl__set_xenstore_vdispl()
|
A D | libxl_pci.c | 51 static void libxl_create_pci_backend_device(libxl__gc *gc, in libxl_create_pci_backend_device() 82 static int libxl__create_pci_backend(libxl__gc *gc, uint32_t domid, in libxl__create_pci_backend() 117 static int libxl__device_pci_add_xenstore(libxl__gc *gc, in libxl__device_pci_add_xenstore() 584 bool libxl__is_igd_vga_passthru(libxl__gc *gc, in libxl__is_igd_vga_passthru() 723 static void pci_assignable_driver_path_write(libxl__gc *gc, in pci_assignable_driver_path_write() 739 static char * pci_assignable_driver_path_read(libxl__gc *gc, in pci_assignable_driver_path_read() 751 static void pci_assignable_driver_path_remove(libxl__gc *gc, in pci_assignable_driver_path_remove() 765 static int libxl__device_pci_assignable_add(libxl__gc *gc, in libxl__device_pci_assignable_add() 842 static int libxl__device_pci_assignable_remove(libxl__gc *gc, in libxl__device_pci_assignable_remove() 1022 static int check_qemu_running(libxl__gc *gc, in check_qemu_running() [all …]
|
A D | libxl_9pfs.c | 20 static int libxl__device_p9_setdefault(libxl__gc *gc, uint32_t domid, in libxl__device_p9_setdefault() 26 static int libxl__set_xenstore_p9(libxl__gc *gc, uint32_t domid, in libxl__set_xenstore_p9()
|