Home
last modified time | relevance | path

Searched full:resize (Results 1 – 23 of 23) sorted by relevance

/cloud-hypervisor/src/bin/
H A Dch-remote.rs302 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 Dhotplug.md36 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 Driscv.md122 ### (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 Dapi.md94 | 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 Dmem.rs122 #[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 Dconsole.rs424 "Failed to get resize event: {:?}", in handle_event()
533 /// Resize handler
H A Dballoon.rs500 pub fn resize(&mut self, size: u64) -> Result<(), Error> { in resize() method
/cloud-hypervisor/vmm/src/api/openapi/
H A Dcloud-hypervisor.yaml148 /vm.resize:
150 summary: Resize the VM
166 /vm.resize-zone:
168 summary: Resize a memory zone
/cloud-hypervisor/scripts/
H A Dbuild-custom-image.sh14 qemu-img resize -f raw "$IMAGE_NAME_BASE.raw" 5G
/cloud-hypervisor/virtio-devices/src/vsock/csm/
H A Dtxbuf.rs192 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 Dmemory_manager.rs256 /// 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 Dcpu.rs1317 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 Dvm.rs1569 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 Ddevice_manager.rs519 /// 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 Dlib.rs1816 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 Dmod.rs249 endpoint!("/vm.resize"),
253 endpoint!("/vm.resize-zone"),
/cloud-hypervisor/
H A Drelease-notes.md588 * 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 Digvm_loader.rs119 parameter_area.resize(end_of_parameter, 0); in import_parameter()
/cloud-hypervisor/tests/
H A Dintegration.rs661 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 Dfdt.rs468 array.resize(value.len() / 4, 0u32); in print_node()
/cloud-hypervisor/arch/src/aarch64/
H A Dfdt.rs1138 array.resize(value.len() / 4, 0u32); in print_node()
/cloud-hypervisor/src/
H A Dmain.rs802 // The code tries to resize the table to an adequate size for most use cases,
/cloud-hypervisor/hypervisor/src/kvm/
H A Dmod.rs933 cpuid.resize(256, kvm_bindings::kvm_cpuid_entry2::default()); in tdx_init()