⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xen_vm.h

📁 xen虚拟机源代码安装包
💻 H
📖 第 1 页 / 共 2 页
字号:
/** * Get the PCI_bus field of the given VM. */extern boolxen_vm_get_pci_bus(xen_session *session, char **result, xen_vm vm);/** * Get the other_config field of the given VM. */extern boolxen_vm_get_other_config(xen_session *session, xen_string_string_map **result, xen_vm vm);/** * Get the domid field of the given VM. */extern boolxen_vm_get_domid(xen_session *session, int64_t *result, xen_vm vm);/** * Get the is_control_domain field of the given VM. */extern boolxen_vm_get_is_control_domain(xen_session *session, bool *result, xen_vm vm);/** * Get the metrics field of the given VM. */extern boolxen_vm_get_metrics(xen_session *session, xen_vm_metrics *result, xen_vm vm);/** * Get the guest_metrics field of the given VM. */extern boolxen_vm_get_guest_metrics(xen_session *session, xen_vm_guest_metrics *result, xen_vm vm);/** * Set the name/label field of the given VM. */extern boolxen_vm_set_name_label(xen_session *session, xen_vm vm, char *label);/** * Set the name/description field of the given VM. */extern boolxen_vm_set_name_description(xen_session *session, xen_vm vm, char *description);/** * Set the user_version field of the given VM. */extern boolxen_vm_set_user_version(xen_session *session, xen_vm vm, int64_t user_version);/** * Set the is_a_template field of the given VM. */extern boolxen_vm_set_is_a_template(xen_session *session, xen_vm vm, bool is_a_template);/** * Set the auto_power_on field of the given VM. */extern boolxen_vm_set_auto_power_on(xen_session *session, xen_vm vm, bool auto_power_on);/** * Set the memory/static_max field of the given VM. */extern boolxen_vm_set_memory_static_max(xen_session *session, xen_vm vm, int64_t static_max);/** * Set the memory/dynamic_max field of the given VM. */extern boolxen_vm_set_memory_dynamic_max(xen_session *session, xen_vm vm, int64_t dynamic_max);/** * Set the memory/dynamic_min field of the given VM. */extern boolxen_vm_set_memory_dynamic_min(xen_session *session, xen_vm vm, int64_t dynamic_min);/** * Set the memory/static_min field of the given VM. */extern boolxen_vm_set_memory_static_min(xen_session *session, xen_vm vm, int64_t static_min);/** * Set the VCPUs/params field of the given VM. */extern boolxen_vm_set_vcpus_params(xen_session *session, xen_vm vm, xen_string_string_map *params);/** * Add the given key-value pair to the VCPUs/params field of the given * VM. */extern boolxen_vm_add_to_vcpus_params(xen_session *session, xen_vm vm, char *key, char *value);/** * Remove the given key and its corresponding value from the * VCPUs/params field of the given VM.  If the key is not in that Map, then do * nothing. */extern boolxen_vm_remove_from_vcpus_params(xen_session *session, xen_vm vm, char *key);/** * Set the VCPUs/max field of the given VM. */extern boolxen_vm_set_vcpus_max(xen_session *session, xen_vm vm, int64_t max);/** * Set the VCPUs/at_startup field of the given VM. */extern boolxen_vm_set_vcpus_at_startup(xen_session *session, xen_vm vm, int64_t at_startup);/** * Set the actions/after_shutdown field of the given VM. */extern boolxen_vm_set_actions_after_shutdown(xen_session *session, xen_vm vm, enum xen_on_normal_exit after_shutdown);/** * Set the actions/after_reboot field of the given VM. */extern boolxen_vm_set_actions_after_reboot(xen_session *session, xen_vm vm, enum xen_on_normal_exit after_reboot);/** * Set the actions/after_crash field of the given VM. */extern boolxen_vm_set_actions_after_crash(xen_session *session, xen_vm vm, enum xen_on_crash_behaviour after_crash);/** * Set the PV/bootloader field of the given VM. */extern boolxen_vm_set_pv_bootloader(xen_session *session, xen_vm vm, char *bootloader);/** * Set the PV/kernel field of the given VM. */extern boolxen_vm_set_pv_kernel(xen_session *session, xen_vm vm, char *kernel);/** * Set the PV/ramdisk field of the given VM. */extern boolxen_vm_set_pv_ramdisk(xen_session *session, xen_vm vm, char *ramdisk);/** * Set the PV/args field of the given VM. */extern boolxen_vm_set_pv_args(xen_session *session, xen_vm vm, char *args);/** * Set the PV/bootloader_args field of the given VM. */extern boolxen_vm_set_pv_bootloader_args(xen_session *session, xen_vm vm, char *bootloader_args);/** * Set the HVM/boot_policy field of the given VM. */extern boolxen_vm_set_hvm_boot_policy(xen_session *session, xen_vm vm, char *boot_policy);/** * Set the HVM/boot_params field of the given VM. */extern boolxen_vm_set_hvm_boot_params(xen_session *session, xen_vm vm, xen_string_string_map *boot_params);/** * Add the given key-value pair to the HVM/boot_params field of the * given VM. */extern boolxen_vm_add_to_hvm_boot_params(xen_session *session, xen_vm vm, char *key, char *value);/** * Remove the given key and its corresponding value from the * HVM/boot_params field of the given VM.  If the key is not in that Map, then * do nothing. */extern boolxen_vm_remove_from_hvm_boot_params(xen_session *session, xen_vm vm, char *key);/** * Set the platform field of the given VM. */extern boolxen_vm_set_platform(xen_session *session, xen_vm vm, xen_string_string_map *platform);/** * Add the given key-value pair to the platform field of the given VM. */extern boolxen_vm_add_to_platform(xen_session *session, xen_vm vm, char *key, char *value);/** * Remove the given key and its corresponding value from the platform * field of the given VM.  If the key is not in that Map, then do nothing. */extern boolxen_vm_remove_from_platform(xen_session *session, xen_vm vm, char *key);/** * Set the PCI_bus field of the given VM. */extern boolxen_vm_set_pci_bus(xen_session *session, xen_vm vm, char *pci_bus);/** * Set the other_config field of the given VM. */extern boolxen_vm_set_other_config(xen_session *session, xen_vm vm, xen_string_string_map *other_config);/** * Add the given key-value pair to the other_config field of the given * VM. */extern boolxen_vm_add_to_other_config(xen_session *session, xen_vm vm, char *key, char *value);/** * Remove the given key and its corresponding value from the * other_config field of the given VM.  If the key is not in that Map, then do * nothing. */extern boolxen_vm_remove_from_other_config(xen_session *session, xen_vm vm, char *key);/** * Clones the specified VM, making a new VM. Clone automatically * exploits the capabilities of the underlying storage repository in which the * VM's disk images are stored (e.g. Copy on Write).   This function can only * be called when the VM is in the Halted State. */extern boolxen_vm_clone(xen_session *session, xen_vm *result, xen_vm vm, char *new_name);/** * Start the specified VM.  This function can only be called with the * VM is in the Halted State. */extern boolxen_vm_start(xen_session *session, xen_vm vm, bool start_paused);/** * Pause the specified VM. This can only be called when the specified * VM is in the Running state. */extern boolxen_vm_pause(xen_session *session, xen_vm vm);/** * Resume the specified VM. This can only be called when the specified * VM is in the Paused state. */extern boolxen_vm_unpause(xen_session *session, xen_vm vm);/** * Attempt to cleanly shutdown the specified VM. (Note: this may not be * supported---e.g. if a guest agent is not installed). *  * Once shutdown has been completed perform poweroff action specified in guest * configuration. *  * This can only be called when the specified VM is in the Running state. */extern boolxen_vm_clean_shutdown(xen_session *session, xen_vm vm);/** * Attempt to cleanly shutdown the specified VM (Note: this may not be * supported---e.g. if a guest agent is not installed). *  * Once shutdown has been completed perform reboot action specified in guest * configuration. *  * This can only be called when the specified VM is in the Running state. */extern boolxen_vm_clean_reboot(xen_session *session, xen_vm vm);/** * Stop executing the specified VM without attempting a clean shutdown. * Then perform poweroff action specified in VM configuration. */extern boolxen_vm_hard_shutdown(xen_session *session, xen_vm vm);/** * Stop executing the specified VM without attempting a clean shutdown. * Then perform reboot action specified in VM configuration */extern boolxen_vm_hard_reboot(xen_session *session, xen_vm vm);/** * Suspend the specified VM to disk.  This can only be called when the * specified VM is in the Running state. */extern boolxen_vm_suspend(xen_session *session, xen_vm vm);/** * Awaken the specified VM and resume it.  This can only be called when * the specified VM is in the Suspended state. */extern boolxen_vm_resume(xen_session *session, xen_vm vm, bool start_paused);/** * Set this VM's VCPUs/at_startup value, and set the same value on the * VM, if running */extern boolxen_vm_set_vcpus_number_live(xen_session *session, xen_vm self, int64_t nvcpu);/** * Add the given key-value pair to VM.VCPUs_params, and apply that * value on the running VM. */extern boolxen_vm_add_to_vcpus_params_live(xen_session *session, xen_vm self, char *key, char *value);/** * Set memory_dynamic_max in database and on running VM. */extern boolxen_vm_set_memory_dynamic_max_live(xen_session *session, xen_vm self, int64_t max);/** * Set memory_dynamic_min in database and on running VM. */extern boolxen_vm_set_memory_dynamic_min_live(xen_session *session, xen_vm self, int64_t min);/** * Send the given key as a sysrq to this VM.  The key is specified as a * single character (a String of length 1).  This can only be called when the * specified VM is in the Running state. */extern boolxen_vm_send_sysrq(xen_session *session, xen_vm vm, char *key);/** * Send the named trigger to this VM.  This can only be called when the * specified VM is in the Running state. */extern boolxen_vm_send_trigger(xen_session *session, xen_vm vm, char *trigger);/** * Migrate the VM to another host.  This can only be called when the * specified VM is in the Running state. */extern boolxen_vm_migrate(xen_session *session, xen_vm vm, char *dest, bool live, xen_string_string_map *options);/** * Return a list of all the VMs known to the system. */extern boolxen_vm_get_all(xen_session *session, struct xen_vm_set **result);/** * Set the security label of a domain. */extern boolxen_vm_set_security_label(xen_session *session, int64_t *result, xen_vm vm,                          char *label, char *oldlabel);/** * Get the security label of a domain. */extern boolxen_vm_get_security_label(xen_session *session, char **result, xen_vm vm);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -