Searched +full:power +full:- +full:button (Results 1 – 10 of 10) sorted by relevance
/cloud-hypervisor/vmm/src/api/openapi/ |
H A D | cloud-hypervisor.yaml | 4 description: Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine. 7 url: http://www.apache.org/licenses/LICENSE-2.0.html 11 - url: http://localhost/api/v1 27 summary: Shuts the cloud-hypervisor VMM. 35 summary: Returns general information about the cloud-hypervisor Virtual Machine (VM) instance. 57 …summary: Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, on… 72 summary: Delete the cloud-hypervisor Virtual Machine (VM) instance. 136 /vm.power-button: 138 summary: Trigger a power button in the VM 139 operationId: power-buttonVM [all …]
|
/cloud-hypervisor/src/bin/ |
H A D | ch-remote.rs | 3 // SPDX-License-Identifier: Apache-2.0 78 fn vmm_ping(&self) -> zbus::Result<String>; in vmm_ping() 79 fn vmm_shutdown(&self) -> zbus::Result<()>; in vmm_shutdown() 80 fn vm_add_device(&self, device_config: &str) -> zbus::Result<Optional<String>>; in vm_add_device() 81 fn vm_add_disk(&self, disk_config: &str) -> zbus::Result<Optional<String>>; in vm_add_disk() 82 fn vm_add_fs(&self, fs_config: &str) -> zbus::Result<Optional<String>>; in vm_add_fs() 83 fn vm_add_net(&self, net_config: &str) -> zbus::Result<Optional<String>>; in vm_add_net() 84 fn vm_add_pmem(&self, pmem_config: &str) -> zbus::Result<Optional<String>>; in vm_add_pmem() 85 fn vm_add_user_device(&self, vm_add_user_device: &str) -> zbus::Result<Optional<String>>; in vm_add_user_device() 86 fn vm_add_vdpa(&self, vdpa_config: &str) -> zbus::Result<Optional<String>>; in vm_add_vdpa() [all …]
|
/cloud-hypervisor/docs/ |
H A D | api.md | 1 - [Cloud Hypervisor API](#cloud-hypervisor-api) 2 - [External API](#external-api) 3 - [REST API](#rest-api) 4 - [REST API Location and availability](#rest-api-location-and-availability) 5 - [REST API Endpoints](#rest-api-endpoints) 6 - [Virtual Machine Manager (VMM) Actions](#virtual-machine-manager-vmm-actions) 7 - [Virtual Machine (VM) Actions](#virtual-machine-vm-actions) 8 - [REST API Examples](#rest-api-examples) 9 - [Create a Virtual Machine](#create-a-virtual-machine) 10 - [Boot a Virtual Machine](#boot-a-virtual-machine) [all …]
|
/cloud-hypervisor/ |
H A D | release-notes.md | 1 - [v46.0](#v460) 2 - [File-level Locking Support with `--disk`](#file-level-locking-support-with---disk) 3 - [Improved Error Reporting with VM Resizing](#improved-error-reporting-with-vm-resizing) 4 - [IPv6 Address Support with `--net`](#ipv6-address-support-with---net) 5 …- [Experimental AArch64 Support with the MSHV Hypervisor](#experimental-aarch64-support-with-the-m… 6 - [Deprecated SGX Support](#deprecated-sgx-support) 7 - [Notable Bug Fixes](#notable-bug-fixes) 8 - [Contributors](#contributors) 9 - [v45.0](#v450) 10 - [Experimental `riscv64` Architecture Support](#experimental-riscv64-architecture-support) [all …]
|
/cloud-hypervisor/vmm/src/api/http/ |
H A D | mod.rs | 3 // SPDX-License-Identifier: Apache-2.0 75 /// The error message contained in the response is supposed to be user-facing, 78 pub fn error_response(error: HttpError, status: StatusCode) -> Response { in error_response() 85 // See <https://github.com/rust-lang/rust/issues/141673> in error_response() 112 ) -> Response { in handle_request() 149 ) -> std::result::Result<Option<Body>, HttpError> { in put_handler() 158 ) -> std::result::Result<Option<Body>, HttpError> { in get_handler() 175 /// HTTP_ROUTES contain all the cloud-hypervisor HTTP routes. 182 endpoint!("/vm.add-device"), 186 endpoint!("/vm.add-user-device"), [all …]
|
/cloud-hypervisor/vmm/src/api/ |
H A D | mod.rs | 4 // SPDX-License-Identifier: Apache-2.0 9 //! This API is a synchronous, [mpsc](https://doc.rust-lang.org/std/sync/mpsc/) 11 //! Cloud Hypervisor threads. The IPC follows a command-response protocol, i.e. 192 /// Error triggering power button 193 #[error("Error triggering power button")] 281 fn vm_create(&mut self, config: Box<VmConfig>) -> Result<(), VmError>; in vm_create() 283 fn vm_boot(&mut self) -> Result<(), VmError>; in vm_boot() 285 fn vm_pause(&mut self) -> Result<(), VmError>; in vm_pause() 287 fn vm_resume(&mut self) -> Result<(), VmError>; in vm_resume() 289 fn vm_snapshot(&mut self, destination_url: &str) -> Result<(), VmError>; in vm_snapshot() [all …]
|
/cloud-hypervisor/vmm/src/ |
H A D | device_manager.rs | 4 // Use of this source code is governed by a BSD-style license that can be 5 // found in the LICENSE-BSD-3-Clause file. 9 // SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause 148 const VIRTIO_PCI_DEVICE_NAME_PREFIX: &str = "_virtio-pci"; 161 /// Cannot create vhost-user-net device 162 #[error("Cannot create vhost-user-net device")] 165 /// Cannot create virtio-blk device 166 #[error("Cannot create virtio-blk device")] 169 /// Cannot create virtio-net device 170 #[error("Cannot create virtio-net device")] [all …]
|
H A D | vm.rs | 6 // Use of this source code is governed by a BSD-style license that can be 7 // found in the LICENSE-BSD-3-Clause file. 11 // SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause 219 #[error("Too many virtio-vsock devices")] 240 #[error("Error triggering power button")] 259 #[error("Error enabling SEV-SNP VM")] 351 fn valid_transition(self, new_state: VmState) -> Result<()> { in valid_transition() 396 fn guest_mem_write(&self, gpa: u64, buf: &[u8]) -> result::Result<usize, HypervisorVmError> { in guest_mem_write() 403 fn guest_mem_read(&self, gpa: u64, buf: &mut [u8]) -> result::Result<usize, HypervisorVmError> { in guest_mem_read() 410 fn mmio_read(&self, gpa: u64, data: &mut [u8]) -> result::Result<(), HypervisorVmError> { in mmio_read() [all …]
|
/cloud-hypervisor/arch/src/aarch64/ |
H A D | fdt.rs | 3 // SPDX-License-Identifier: Apache-2.0 6 // Use of this source code is governed by a BSD-style license that can be 7 // found in the THIRD-PARTY file. 41 // This is a value for virtio-iommu. Now only one virtio-iommu device is supported. 57 // https://www.kernel.org/doc/Documentation/devicetree/bindings/interrupt-controller/arm%2Cgic.txt 62 // From https://elixir.bootlin.com/linux/v4.9.62/source/include/dt-bindings/interrupt-controller/ir… 67 // System Power Down 73 fn addr(&self) -> u64; in addr() 75 fn irq(&self) -> u32; in irq() 77 fn length(&self) -> u64; in length() [all …]
|
/cloud-hypervisor/tests/ |
H A D | integration.rs | 3 // SPDX-License-Identifier: Apache-2.0 7 // hence have known dead-code. This annotation silences dead-code 36 pub const FOCAL_IMAGE_NAME: &str = "focal-server-cloudimg-amd64-custom-20210609-0.raw"; 38 "jammy-server-cloudimg-amd64-custom-vfio-20241012-0.raw"; 39 pub const FOCAL_IMAGE_NAME_QCOW2: &str = "focal-server-cloudimg-amd64-custom-20210609-0.qcow2"; 41 "focal-server-cloudimg-amd64-custom-20210609-0-backing.qcow2"; 42 pub const FOCAL_IMAGE_NAME_VHD: &str = "focal-server-cloudimg-amd64-custom-20210609-0.vhd"; 43 pub const FOCAL_IMAGE_NAME_VHDX: &str = "focal-server-cloudimg-amd64-custom-20210609-0.vhdx"; 44 pub const JAMMY_IMAGE_NAME: &str = "jammy-server-cloudimg-amd64-custom-20241017-0.raw"; 45 pub const WINDOWS_IMAGE_NAME: &str = "windows-server-2022-amd64-2.raw"; [all …]
|