mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
4bfeba967b
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:
|
||
---|---|---|
.. | ||
api | ||
igvm | ||
acpi.rs | ||
clone3.rs | ||
config.rs | ||
console_devices.rs | ||
coredump.rs | ||
cpu.rs | ||
device_manager.rs | ||
device_tree.rs | ||
gdb.rs | ||
interrupt.rs | ||
landlock.rs | ||
lib.rs | ||
memory_manager.rs | ||
migration.rs | ||
pci_segment.rs | ||
seccomp_filters.rs | ||
serial_manager.rs | ||
sigwinch_listener.rs | ||
vm_config.rs | ||
vm.rs |