/cloud-hypervisor/src/bin/ |
H A D | ch-remote.rs | 302 Some("resize") => { in rest_api_do_command() 303 let resize = resize_config( in rest_api_do_command() localVariable 305 .subcommand_matches("resize") in rest_api_do_command() 310 .subcommand_matches("resize") in rest_api_do_command() 315 .subcommand_matches("resize") in rest_api_do_command() 320 simple_api_command(socket, "PUT", "resize", Some(&resize)).map_err(Error::HttpApiClient) in rest_api_do_command() 322 Some("resize-zone") => { in rest_api_do_command() 325 .subcommand_matches("resize-zone") in rest_api_do_command() 330 .subcommand_matches("resize-zone") in rest_api_do_command() 335 simple_api_command(socket, "PUT", "resize-zone", Some(&resize_zone)) in rest_api_do_command() [all …]
|
/cloud-hypervisor/docs/ |
H A D | hotplug.md | 36 To ask the VMM to add additional vCPUs then use the resize API: 39 ./ch-remote --api-socket=/tmp/ch-socket resize --cpus 8 56 Removing CPUs works similarly by reducing the number in the "desired_vcpus" field of the resize API… 59 ./ch-remote --api-socket=/tmp/ch-socket resize --cpus 2 101 ./ch-remote --api-socket=/tmp/ch-socket resize --memory 3G 144 ./ch-remote --api-socket=/tmp/ch-socket resize --memory 3G
|
H A D | riscv.md | 122 ### (Optional) Resize Disk 124 If you would like a larger disk, you can resize it now. 127 qemu-img resize -f raw <ubuntu-image> +5G
|
H A D | api.md | 94 | Add/remove CPUs to/from the VM | `/vm.resize` | `/schemas/VmResize` | … 95 | Add/remove memory from the VM | `/vm.resize` | `/schemas/VmResize` | … 96 | Add/remove memory from a zone | `/vm.resize-zone` | `/schemas/VmResizeZone` | …
|
/cloud-hypervisor/virtio-devices/src/ |
H A D | mem.rs | 122 #[error("Resize invalid argument")] 124 #[error("Fail to resize trigger")] 235 fn resize(&mut self, size: u64) -> result::Result<(), Error> { in resize() method 754 config.resize(initial_size).map_err(|e| { in new() 756 "Failed to resize virtio-mem configuration to {initial_size}: {e:?}" in new() 803 pub fn resize(&mut self, size: u64) -> result::Result<(), Error> { in resize() method 805 config.resize(size).map_err(|e| { in resize() 813 Error::ResizeError(anyhow!("Failed to signal the guest about resize: {:?}", e)) in resize()
|
H A D | console.rs | 424 "Failed to get resize event: {:?}", in handle_event() 533 /// Resize handler
|
H A D | balloon.rs | 500 pub fn resize(&mut self, size: u64) -> Result<(), Error> { in resize() method
|
/cloud-hypervisor/vmm/src/api/openapi/ |
H A D | cloud-hypervisor.yaml | 148 /vm.resize: 150 summary: Resize the VM 166 /vm.resize-zone: 168 summary: Resize a memory zone
|
/cloud-hypervisor/scripts/ |
H A D | build-custom-image.sh | 14 qemu-img resize -f raw "$IMAGE_NAME_BASE.raw" 5G
|
/cloud-hypervisor/virtio-devices/src/vsock/csm/ |
H A D | txbuf.rs | 192 self.data.resize(self.capacity, 0); in set_capacity() 229 tmp.resize(TxBuf::SIZE - 1, 0); in test_push_error()
|
/cloud-hypervisor/vmm/src/ |
H A D | memory_manager.rs | 256 /// Failed to virtio-mem resize 257 #[error("Failed to virtio-mem resize")] 315 /// Forbidden operation. Impossible to resize guest memory if it is 317 #[error("Impossible to resize guest memory if it is backed by user defined memory regions")] 1121 // Update list of memory zones for resize. in new() 1481 nodemask.resize((node as usize / 64) + 1, 0); in create_ram_region() 1909 .resize(size) in virtio_mem_resize() 1931 pub fn resize(&mut self, desired_ram: u64) -> Result<Option<Arc<GuestRegionMmap>>, Error> { in resize() method 1934 "Not allowed to resize guest memory when backed with user \ in resize() 1970 "Not allowed to resize guest memory zone when no zone is \ in resize_zone()
|
H A D | cpu.rs | 1317 pub fn resize(&mut self, desired_vcpus: u8) -> Result<bool> { in resize() method 2615 buf.resize(pos + 4, 0); in cpu_write_elf64_note() 2619 buf.resize(pos + 32 + 4, 0); in cpu_write_elf64_note() 2690 buf.resize(note_size as usize, 0); in cpu_write_elf64_note() 2692 buf.resize(note_size as usize, 0); in cpu_write_elf64_note() 2724 buf.resize(pos + 4, 0); in cpu_write_vmm_note() 2811 buf.resize(note_size as usize, 0); in cpu_write_vmm_note() 2813 buf.resize(note_size as usize, 0); in cpu_write_vmm_note()
|
H A D | vm.rs | 1569 pub fn resize( in resize() method 1582 .resize(desired_vcpus) in resize() 1599 .resize(desired_memory) in resize() 1623 // We update the VM config regardless of the actual guest resize in resize() 1671 // actual 'resize-zone' operation result (happened or in resize_zone() 1689 error!("Could not find the memory zone {} for the resize", id); in resize_zone()
|
H A D | device_manager.rs | 519 /// Failed to resize virtio-balloon 520 #[error("Failed to resize virtio-balloon")] 3336 // virtio-mem device, which will be used for triggering a resize in make_virtio_mem_devices() 4733 .resize(size) in resize_balloon() 4737 warn!("No balloon setup: Can't resize the balloon"); in resize_balloon()
|
H A D | lib.rs | 1816 if let Err(e) = vm.resize(desired_vcpus, desired_ram, desired_balloon) { in vm_resize() 1862 error!("Could not find the memory zone {} for the resize", id); in vm_resize_zone()
|
/cloud-hypervisor/vmm/src/api/http/ |
H A D | mod.rs | 249 endpoint!("/vm.resize"), 253 endpoint!("/vm.resize-zone"),
|
/cloud-hypervisor/ |
H A D | release-notes.md | 588 * Fix memory resize error due to incorrect bounds checks (#6736) 1233 A separate thread had been created to capture the `SIGWINCH` signal and resize 1760 * Reject virtio-mem resize if device is not activated (#4003) 1807 * Reject `virtio-mem` resize if the guest doesn't activate the device 1896 resize) before the VM is booted. 2003 * Don't error out when setting up the SIGWINCH handler (for console resize) 2637 * When using the ACPI method to resize the guest memory the full reserved size 2687 - When using `ch-remote` to resize the VM parameter now accepts the standard sizes suffices (#1596) 2743 A `virtio-balloon` device has been added, controlled through the `resize` control, which allows the… 3047 * Fixed error reporting for resize command - Samuel Ortiz [all …]
|
/cloud-hypervisor/vmm/src/igvm/ |
H A D | igvm_loader.rs | 119 parameter_area.resize(end_of_parameter, 0); in import_parameter()
|
/cloud-hypervisor/tests/ |
H A D | integration.rs | 661 cmd.args([&format!("--api-socket={api_socket}"), "resize"]); in resize_command() 700 "resize-zone", in resize_zone_command() 1128 // Resize every memory zone and check each associated NUMA node in _test_guest_numa_nodes() 1133 // Resize to the maximum amount of CPUs and check each NUMA in _test_guest_numa_nodes() 1349 // keeps working after the resize. in test_vhost_user_net() 1483 // Check again the content of the block device after the resize in test_vhost_user_blk() 1699 // After the resize, check again that file1 exists and its in _test_virtio_fs() 2761 // Check if we can still resize down to the initial 'boot'size in test_user_defined_memory_regions() 4601 resize --memory=1073741824", in test_vfio() 4831 // Resize the VM in test_cpu_hotplug() [all …]
|
/cloud-hypervisor/arch/src/riscv64/ |
H A D | fdt.rs | 468 array.resize(value.len() / 4, 0u32); in print_node()
|
/cloud-hypervisor/arch/src/aarch64/ |
H A D | fdt.rs | 1138 array.resize(value.len() / 4, 0u32); in print_node()
|
/cloud-hypervisor/src/ |
H A D | main.rs | 802 // The code tries to resize the table to an adequate size for most use cases,
|
/cloud-hypervisor/hypervisor/src/kvm/ |
H A D | mod.rs | 933 cpuid.resize(256, kvm_bindings::kvm_cpuid_entry2::default()); in tdx_init()
|