cloud-hypervisor/vmm/src
Alyssa Ross 4bfeba967b vmm: fix console resizing
DeviceManager::add_virtio_console_device used to create the console
resize pipe and assign it to self.console_resize_pipe, but when this
was changed to use console_info, that was deleted without replacement.
This meant that, even though the console resize pipe was created by
pre_create_console_devices, the DeviceManager never found out about
it, so console resize didn't work (at least for pty consoles).

To fix this, the console resize pipe needs to be passed to the Vm
initializer, which is already supported, it was just previously not
used for new VMs.

Since DeviceManager already stores the console resize pipe in an Arc,
and Vmm also needs a copy of it, the sensible thing to do is change
DeviceManager::new to take Arc, and then we don't need to dup the file
descriptor, which could fail.

Fixes: 52eebaf6 ("vmm: refactor DeviceManager to use console_info")
Signed-off-by: Alyssa Ross <hi@alyssa.is>
2024-08-31 20:55:33 +00:00
..
api vmm: Add landlock elements to openapi spec 2024-08-05 17:46:30 +00:00
igvm build: use released version of the IGVM crates 2024-04-29 11:13:59 +00:00
acpi.rs vmm: acpi: Use .contains_key() 2024-03-19 18:36:22 +00:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs devices: Add pvmemcontrol device 2024-08-05 22:41:56 +00:00
console_devices.rs vmm: fix console resizing 2024-08-31 20:55:33 +00:00
coredump.rs vmm: Automatically pause VM for coredump 2023-07-31 17:05:46 +01:00
cpu.rs hypervisor: vmm: Switch to common StandardRegisters implementation 2024-08-30 17:04:37 +00:00
device_manager.rs vmm: fix console resizing 2024-08-31 20:55:33 +00:00
device_tree.rs vmm: Fix clippy warnings for use of .clone() 2024-03-19 18:36:22 +00:00
gdb.rs build: Bump gdbstub and gdbstub_arch 2023-12-05 10:50:06 +00:00
interrupt.rs vmm: Avoid kernel panic when unmasking guest IRQ on AMD 2024-04-07 08:58:03 +00:00
landlock.rs vmm: Limit the visibility of Landlock objects 2024-07-06 04:42:58 +00:00
lib.rs vmm: fix console resizing 2024-08-31 20:55:33 +00:00
memory_manager.rs vmm: fix documentation formatting 2024-06-12 16:59:20 +00:00
migration.rs vmm: speed up JSON load when reading snap files 2023-11-16 14:56:04 -08:00
pci_segment.rs vm-device: generalize BusDevice to use a shared reference 2024-08-05 22:41:56 +00:00
seccomp_filters.rs vmm: allow to call fcntl in debug 2024-08-27 18:13:21 +00:00
serial_manager.rs vmm: refactor DeviceManager to use console_info 2024-06-12 15:47:19 +00:00
sigwinch_listener.rs vmm: move listen_for_sigwinch_on_tty method 2024-06-12 15:47:19 +00:00
vm_config.rs devices: Add pvmemcontrol device 2024-08-05 22:41:56 +00:00
vm.rs vmm: fix console resizing 2024-08-31 20:55:33 +00:00