Lines Matching refs:libxl_ctx

658 typedef struct libxl__ctx libxl_ctx;  typedef
1056 void libxl_mac_copy(libxl_ctx *ctx, libxl_mac *dst, const libxl_mac *src);
1291 void libxl_string_list_copy(libxl_ctx *ctx, libxl_string_list *dst,
1297 void libxl_key_value_list_copy(libxl_ctx *ctx,
1302 void libxl_hwcap_copy(libxl_ctx *ctx, libxl_hwcap *dst, const libxl_hwcap *src);
1321 void libxl_cpuid_policy_list_copy(libxl_ctx *ctx,
1384 const libxl_version_info* libxl_get_version_info(libxl_ctx *ctx);
1431 void (*callback)(libxl_ctx *ctx, int rc, void *for_callback);
1479 void (*callback)(libxl_ctx *ctx, libxl_event*, void *for_callback);
1533 int libxl_ao_abort(libxl_ctx *ctx, const libxl_asyncop_how *how)
1540 int libxl_ctx_alloc(libxl_ctx **pctx, int version,
1543 int libxl_ctx_free(libxl_ctx *ctx /* 0 is OK */);
1554 int libxl_domain_create_new(libxl_ctx *ctx, libxl_domain_config *d_config,
1559 int libxl_domain_create_restore(libxl_ctx *ctx, libxl_domain_config *d_config,
1570 libxl_ctx *ctx, libxl_domain_config *d_config, in libxl_domain_create_restore_0x040200()
1594 libxl_ctx *ctx, libxl_domain_config *d_config, in libxl_domain_create_restore_0x040400()
1609 int libxl_domain_soft_reset(libxl_ctx *ctx,
1630 int libxl_retrieve_domain_configuration(libxl_ctx *ctx, uint32_t domid,
1636 libxl_ctx *ctx, uint32_t domid, libxl_domain_config *d_config) in libxl_retrieve_domain_configuration_0x041200()
1644 int libxl_domain_suspend(libxl_ctx *ctx, uint32_t domid, int fd,
1655 int libxl_domain_suspend_only(libxl_ctx *ctx, uint32_t domid,
1663 int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel,
1672 int libxl_domain_remus_start(libxl_ctx *ctx, libxl_domain_remus_info *info,
1677 int libxl_domain_shutdown(libxl_ctx *ctx, uint32_t domid,
1680 int libxl_domain_reboot(libxl_ctx *ctx, uint32_t domid,
1684 static inline int libxl_domain_shutdown_0x041200(libxl_ctx *ctx, in libxl_domain_shutdown_0x041200()
1690 static inline int libxl_domain_reboot_0x041200(libxl_ctx *ctx, in libxl_domain_reboot_0x041200()
1698 int libxl_domain_destroy(libxl_ctx *ctx, uint32_t domid,
1701 int libxl_domain_preserve(libxl_ctx *ctx, uint32_t domid, libxl_domain_create_info *info, const cha…
1704 int libxl_get_max_cpus(libxl_ctx *ctx);
1707 int libxl_get_online_cpus(libxl_ctx *ctx);
1715 int libxl_get_max_nodes(libxl_ctx *ctx);
1717 int libxl_domain_rename(libxl_ctx *ctx, uint32_t domid,
1724 int libxl_domain_pause(libxl_ctx *ctx, uint32_t domid,
1727 int libxl_domain_unpause(libxl_ctx *ctx, uint32_t domid,
1732 libxl_ctx *ctx, uint32_t domid) in libxl_domain_pause_0x041200()
1737 libxl_ctx *ctx, uint32_t domid) in libxl_domain_unpause_0x041200()
1746 int libxl_domain_core_dump(libxl_ctx *ctx, uint32_t domid,
1751 int libxl_domain_setmaxmem(libxl_ctx *ctx, uint32_t domid, uint64_t target_memkb);
1752 int libxl_set_memory_target(libxl_ctx *ctx, uint32_t domid, int64_t target_memkb, int relative, int…
1753 int libxl_get_memory_target(libxl_ctx *ctx, uint32_t domid, uint64_t *out_target);
1754 int libxl_get_memory_target_0x040700(libxl_ctx *ctx, uint32_t domid,
1768 int libxl_domain_need_memory(libxl_ctx *ctx,
1773 int libxl_domain_need_memory_0x041200(libxl_ctx *ctx,
1776 int libxl_domain_need_memory_0x040700(libxl_ctx *ctx,
1781 int libxl_get_free_memory(libxl_ctx *ctx, uint64_t *memkb);
1782 int libxl_get_free_memory_0x040700(libxl_ctx *ctx, uint32_t *memkb)
1785 int libxl_wait_for_free_memory(libxl_ctx *ctx, uint32_t domid, uint64_t memory_kb, int wait_secs);
1799 int libxl_wait_for_memory_target(libxl_ctx *ctx, uint32_t domid, int wait_secs);
1809 int libxl_vncviewer_exec(libxl_ctx *ctx, uint32_t domid, int autopass);
1815 int libxl_console_exec(libxl_ctx *ctx, uint32_t domid, int cons_num,
1827 int libxl_primary_console_exec(libxl_ctx *ctx, uint32_t domid_vm,
1832 static inline int libxl_console_exec_0x040700(libxl_ctx *ctx, in libxl_console_exec_0x040700()
1840 static inline int libxl_primary_console_exec_0x040700(libxl_ctx *ctx, in libxl_primary_console_exec_0x040700()
1852 int libxl_console_get_tty(libxl_ctx *ctx, uint32_t domid, int cons_num,
1859 int libxl_primary_console_get_tty(libxl_ctx *ctx, uint32_t domid_vm, char **path);
1864 int libxl_domain_info(libxl_ctx*, libxl_dominfo *info_r,
1872 libxl_dominfo * libxl_list_domain(libxl_ctx*, int *nb_domain_out);
1875 libxl_cpupoolinfo * libxl_list_cpupool(libxl_ctx*, int *nb_pool_out);
1878 libxl_vminfo * libxl_list_vm(libxl_ctx *ctx, int *nb_vm_out);
1882 libxl_cputopology *libxl_get_cpu_topology(libxl_ctx *ctx, int *nb_cpu_out);
1886 libxl_pcitopology *libxl_get_pci_topology(libxl_ctx *ctx, int *num_devs);
1890 libxl_numainfo *libxl_get_numainfo(libxl_ctx *ctx, int *nr);
1893 libxl_vcpuinfo *libxl_list_vcpu(libxl_ctx *ctx, uint32_t domid,
2024 int libxl_device_disk_add(libxl_ctx *ctx, uint32_t domid,
2028 int libxl_device_disk_remove(libxl_ctx *ctx, uint32_t domid,
2032 int libxl_device_disk_destroy(libxl_ctx *ctx, uint32_t domid,
2037 libxl_device_disk *libxl_device_disk_list(libxl_ctx *ctx,
2042 int libxl_device_disk_getinfo(libxl_ctx *ctx, uint32_t domid,
2050 int libxl_cdrom_insert(libxl_ctx *ctx, uint32_t domid, libxl_device_disk *disk,
2083 int libxl_device_usbctrl_add(libxl_ctx *ctx, uint32_t domid,
2088 int libxl_device_usbctrl_remove(libxl_ctx *ctx, uint32_t domid,
2093 int libxl_device_usbctrl_destroy(libxl_ctx *ctx, uint32_t domid,
2098 libxl_device_usbctrl *libxl_device_usbctrl_list(libxl_ctx *ctx,
2104 int libxl_device_usbctrl_getinfo(libxl_ctx *ctx, uint32_t domid,
2110 int libxl_device_usbdev_add(libxl_ctx *ctx, uint32_t domid,
2115 int libxl_device_usbdev_remove(libxl_ctx *ctx, uint32_t domid,
2121 libxl_device_usbdev_list(libxl_ctx *ctx, uint32_t domid, int *num);
2126 int libxl_device_nic_add(libxl_ctx *ctx, uint32_t domid, libxl_device_nic *nic,
2129 int libxl_device_nic_remove(libxl_ctx *ctx, uint32_t domid,
2133 int libxl_device_nic_destroy(libxl_ctx *ctx, uint32_t domid,
2138 libxl_device_nic *libxl_device_nic_list(libxl_ctx *ctx,
2143 int libxl_device_nic_getinfo(libxl_ctx *ctx, uint32_t domid,
2151 libxl_device_channel *libxl_device_channel_list(libxl_ctx *ctx,
2154 int libxl_device_channel_getinfo(libxl_ctx *ctx, uint32_t domid,
2159 int libxl_device_vtpm_add(libxl_ctx *ctx, uint32_t domid, libxl_device_vtpm *vtpm,
2162 int libxl_device_vtpm_remove(libxl_ctx *ctx, uint32_t domid,
2166 int libxl_device_vtpm_destroy(libxl_ctx *ctx, uint32_t domid,
2171 libxl_device_vtpm *libxl_device_vtpm_list(libxl_ctx *ctx,
2176 int libxl_device_vtpm_getinfo(libxl_ctx *ctx, uint32_t domid,
2181 int libxl_device_vdispl_add(libxl_ctx *ctx, uint32_t domid,
2185 int libxl_device_vdispl_remove(libxl_ctx *ctx, uint32_t domid,
2189 int libxl_device_vdispl_destroy(libxl_ctx *ctx, uint32_t domid,
2194 libxl_device_vdispl *libxl_device_vdispl_list(libxl_ctx *ctx,
2199 int libxl_device_vdispl_getinfo(libxl_ctx *ctx, uint32_t domid,
2205 int libxl_device_vsnd_add(libxl_ctx *ctx, uint32_t domid,
2209 int libxl_device_vsnd_remove(libxl_ctx *ctx, uint32_t domid,
2213 int libxl_device_vsnd_destroy(libxl_ctx *ctx, uint32_t domid,
2218 libxl_device_vsnd *libxl_device_vsnd_list(libxl_ctx *ctx,
2223 int libxl_device_vsnd_getinfo(libxl_ctx *ctx, uint32_t domid,
2229 int libxl_device_vkb_add(libxl_ctx *ctx, uint32_t domid, libxl_device_vkb *vkb,
2232 int libxl_device_vkb_remove(libxl_ctx *ctx, uint32_t domid,
2236 int libxl_device_vkb_destroy(libxl_ctx *ctx, uint32_t domid,
2241 libxl_device_vkb *libxl_device_vkb_list(libxl_ctx *ctx,
2246 int libxl_device_vkb_getinfo(libxl_ctx *ctx, uint32_t domid,
2252 int libxl_device_vfb_add(libxl_ctx *ctx, uint32_t domid, libxl_device_vfb *vfb,
2255 int libxl_device_vfb_remove(libxl_ctx *ctx, uint32_t domid,
2259 int libxl_device_vfb_destroy(libxl_ctx *ctx, uint32_t domid,
2265 int libxl_device_p9_remove(libxl_ctx *ctx, uint32_t domid,
2269 int libxl_device_p9_destroy(libxl_ctx *ctx, uint32_t domid,
2275 int libxl_device_pvcallsif_remove(libxl_ctx *ctx, uint32_t domid,
2279 int libxl_device_pvcallsif_destroy(libxl_ctx *ctx, uint32_t domid,
2285 int libxl_device_pci_add(libxl_ctx *ctx, uint32_t domid,
2289 int libxl_device_pci_remove(libxl_ctx *ctx, uint32_t domid,
2293 int libxl_device_pci_destroy(libxl_ctx *ctx, uint32_t domid,
2298 libxl_device_pci *libxl_device_pci_list(libxl_ctx *ctx, uint32_t domid,
2312 int libxl_device_events_handler(libxl_ctx *ctx,
2338 int libxl_device_pci_assignable_add(libxl_ctx *ctx, libxl_device_pci *pcidev, int rebind);
2339 int libxl_device_pci_assignable_remove(libxl_ctx *ctx, libxl_device_pci *pcidev, int rebind);
2340 libxl_device_pci *libxl_device_pci_assignable_list(libxl_ctx *ctx, int *num);
2363 static inline void libxl_cpuid_apply_policy(libxl_ctx *ctx __attribute__((unused)), in libxl_cpuid_apply_policy()
2366 static inline void libxl_cpuid_set(libxl_ctx *ctx __attribute__((unused)), in libxl_cpuid_set()
2398 int libxl_userdata_store(libxl_ctx *ctx, uint32_t domid,
2404 int libxl_userdata_retrieve(libxl_ctx *ctx, uint32_t domid,
2414 int libxl_userdata_unlink(libxl_ctx *ctx, uint32_t domid,
2418 int libxl_get_physinfo(libxl_ctx *ctx, libxl_physinfo *physinfo);
2419 int libxl_set_vcpuaffinity(libxl_ctx *ctx, uint32_t domid, uint32_t vcpuid,
2422 int libxl_set_vcpuaffinity_force(libxl_ctx *ctx, uint32_t domid,
2426 int libxl_set_vcpuaffinity_all(libxl_ctx *ctx, uint32_t domid,
2440 int libxl_domain_set_nodeaffinity(libxl_ctx *ctx, uint32_t domid,
2442 int libxl_domain_get_nodeaffinity(libxl_ctx *ctx, uint32_t domid,
2444 int libxl_set_vcpuonline(libxl_ctx *ctx, uint32_t domid,
2449 static inline int libxl_set_vcpuonline_0x041200(libxl_ctx *ctx, in libxl_set_vcpuonline_0x041200()
2461 int libxl_get_scheduler(libxl_ctx *ctx);
2464 int libxl_sched_credit_params_get(libxl_ctx *ctx, uint32_t poolid,
2466 int libxl_sched_credit_params_set(libxl_ctx *ctx, uint32_t poolid,
2468 int libxl_sched_credit2_params_get(libxl_ctx *ctx, uint32_t poolid,
2470 int libxl_sched_credit2_params_set(libxl_ctx *ctx, uint32_t poolid,
2491 int libxl_domain_sched_params_get(libxl_ctx *ctx, uint32_t domid,
2499 int libxl_domain_sched_params_set(libxl_ctx *ctx, uint32_t domid,
2503 int libxl_vcpu_sched_params_get(libxl_ctx *ctx, uint32_t domid,
2507 int libxl_vcpu_sched_params_get_all(libxl_ctx *ctx, uint32_t domid,
2511 int libxl_vcpu_sched_params_set(libxl_ctx *ctx, uint32_t domid,
2515 int libxl_vcpu_sched_params_set_all(libxl_ctx *ctx, uint32_t domid,
2518 int libxl_send_trigger(libxl_ctx *ctx, uint32_t domid,
2524 libxl_ctx *ctx, uint32_t domid, libxl_trigger trigger, uint32_t vcpuid) in libxl_send_trigger_0x041200()
2530 int libxl_send_sysrq(libxl_ctx *ctx, uint32_t domid, char sysrq);
2531 int libxl_send_debug_keys(libxl_ctx *ctx, char *keys);
2532 int libxl_set_parameters(libxl_ctx *ctx, char *params);
2537 libxl_xen_console_read_start(libxl_ctx *ctx, int clear);
2538 int libxl_xen_console_read_line(libxl_ctx *ctx,
2541 void libxl_xen_console_read_finish(libxl_ctx *ctx,
2544 uint32_t libxl_vm_get_start_time(libxl_ctx *ctx, uint32_t domid);
2546 char *libxl_tmem_list(libxl_ctx *ctx, uint32_t domid, int use_long);
2547 int libxl_tmem_freeze(libxl_ctx *ctx, uint32_t domid);
2548 int libxl_tmem_thaw(libxl_ctx *ctx, uint32_t domid);
2549 int libxl_tmem_set(libxl_ctx *ctx, uint32_t domid, char* name,
2551 int libxl_tmem_shared_auth(libxl_ctx *ctx, uint32_t domid, char* uuid,
2553 int libxl_tmem_freeable(libxl_ctx *ctx);
2555 int libxl_get_freecpus(libxl_ctx *ctx, libxl_bitmap *cpumap);
2562 int libxl_cpupool_create(libxl_ctx *ctx, const char *name,
2566 int libxl_cpupool_destroy(libxl_ctx *ctx, uint32_t poolid);
2567 int libxl_cpupool_rename(libxl_ctx *ctx, const char *name, uint32_t poolid);
2568 int libxl_cpupool_cpuadd(libxl_ctx *ctx, uint32_t poolid, int cpu);
2569 int libxl_cpupool_cpuadd_node(libxl_ctx *ctx, uint32_t poolid, int node, int *cpus);
2570 int libxl_cpupool_cpuadd_cpumap(libxl_ctx *ctx, uint32_t poolid,
2572 int libxl_cpupool_cpuremove(libxl_ctx *ctx, uint32_t poolid, int cpu);
2573 int libxl_cpupool_cpuremove_node(libxl_ctx *ctx, uint32_t poolid, int node, int *cpus);
2574 int libxl_cpupool_cpuremove_cpumap(libxl_ctx *ctx, uint32_t poolid,
2576 int libxl_cpupool_movedomain(libxl_ctx *ctx, uint32_t poolid, uint32_t domid);
2577 int libxl_cpupool_info(libxl_ctx *ctx, libxl_cpupoolinfo *info, uint32_t poolid);
2581 int libxl_flask_context_to_sid(libxl_ctx *ctx, char *buf, size_t len,
2583 int libxl_flask_sid_to_context(libxl_ctx *ctx, uint32_t ssidref, char **buf,
2585 int libxl_flask_getenforce(libxl_ctx *ctx);
2586 int libxl_flask_setenforce(libxl_ctx *ctx, int mode);
2587 int libxl_flask_loadpolicy(libxl_ctx *ctx, void *policy, uint32_t size);
2589 int libxl_ms_vm_genid_generate(libxl_ctx *ctx, libxl_ms_vm_genid *id);
2591 void libxl_ms_vm_genid_copy(libxl_ctx *ctx, libxl_ms_vm_genid *dst,
2595 int libxl_psr_cmt_attach(libxl_ctx *ctx, uint32_t domid);
2596 int libxl_psr_cmt_detach(libxl_ctx *ctx, uint32_t domid);
2597 int libxl_psr_cmt_domain_attached(libxl_ctx *ctx, uint32_t domid);
2598 int libxl_psr_cmt_enabled(libxl_ctx *ctx);
2599 int libxl_psr_cmt_get_total_rmid(libxl_ctx *ctx, uint32_t *total_rmid);
2600 int libxl_psr_cmt_get_l3_cache_size(libxl_ctx *ctx,
2603 int libxl_psr_cmt_get_cache_occupancy(libxl_ctx *ctx,
2608 int libxl_psr_cmt_type_supported(libxl_ctx *ctx, libxl_psr_cmt_type type);
2609 int libxl_psr_cmt_get_sample(libxl_ctx *ctx,
2622 int libxl_psr_cat_set_cbm(libxl_ctx *ctx, uint32_t domid,
2630 int libxl_psr_cat_get_cbm(libxl_ctx *ctx, uint32_t domid,
2638 int libxl_psr_cat_get_info(libxl_ctx *ctx, libxl_psr_cat_info **info,
2640 int libxl_psr_cat_get_l3_info(libxl_ctx *ctx, libxl_psr_cat_info **info,
2651 int libxl_psr_set_val(libxl_ctx *ctx, uint32_t domid,
2658 int libxl_psr_get_val(libxl_ctx *ctx, uint32_t domid,
2665 int libxl_psr_get_hw_info(libxl_ctx *ctx, libxl_psr_feat_type type,
2676 int libxl_fd_set_cloexec(libxl_ctx *ctx, int fd, int cloexec);
2677 int libxl_fd_set_nonblock(libxl_ctx *ctx, int fd, int nonblock);
2684 int libxl_qemu_monitor_command(libxl_ctx *ctx, uint32_t domid,
2689 static inline int libxl_qemu_monitor_command_0x041200(libxl_ctx *ctx, in libxl_qemu_monitor_command_0x041200()
2705 int libxl_clear_domid_history(libxl_ctx *ctx);