cloud-hypervisor/vmm/src
Yong He bb38e4e599 vmm: Allow simultaneously set serial and console as TTY mode
Cloud Hypovrisor supports legacy serial device and virito console device
for VMs. Using legacy serial device, CH can capture full VM console logs,
but its implementation is based on KVM PIO emulation and has poor
performance. Using the virtio console device, the VM console logs will
be sent to CH through the virtio ring, the performance is better, but CH
will only capture the VM console logs after the virtio console device is
initialized, the VM early startup logs will be discarded.

This patch provides a way to enable both the legacy serial device and the
virtio console device as a TTY mode by setting the leagcy serial port as
the VM's early printk device and setting the virtio console as the VM's
main console device.

Then CH can capture early boot logs from the legacy serial device and
capture later logs from the virito console device with better performance.

Signed-off-by: Yong He <alexyonghe@tencent.com>
2023-11-02 11:06:30 -07:00
..
api vmm: Allow assignment of PCI segments to NUMA node 2023-10-18 11:18:15 -07:00
acpi.rs misc: Fix various spelling errors using typos 2023-09-09 10:46:21 +01:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs vmm: Allow simultaneously set serial and console as TTY mode 2023-11-02 11:06:30 -07:00
coredump.rs vmm: Automatically pause VM for coredump 2023-07-31 17:05:46 +01:00
cpu.rs arch, vmm: Clear AMX CPUID bits if the feature is not enabled 2023-10-18 11:13:12 -07:00
device_manager.rs block: add aio disk backend 2023-10-25 10:19:23 -07:00
device_tree.rs vmm: reduce memory copy when BFT device tree 2023-05-15 17:19:48 +01:00
gdb.rs misc: Remove unnecessary clippy directives 2023-04-18 10:48:31 -07:00
interrupt.rs vm-device: support batch update interrupt source group GSI 2023-08-03 15:58:36 +01:00
lib.rs arch, vmm: Clear AMX CPUID bits if the feature is not enabled 2023-10-18 11:13:12 -07:00
memory_manager.rs misc: Fix various spelling errors using typos 2023-09-09 10:46:21 +01:00
migration.rs vm-migration: Snapshot should have a unique SnapshotDataSection 2022-12-09 10:26:06 +01:00
pci_segment.rs vmm: Allow assignment of PCI segments to NUMA node 2023-10-18 11:18:15 -07:00
seccomp_filters.rs virtio-devices, vmm: Update seccomp list 2023-10-31 15:34:17 +00:00
serial_manager.rs serial_manager: Remove serial socket 2023-10-05 15:26:29 +01:00
sigwinch_listener.rs vmm: sigwinch_listener: Remove unncessary mut from reference 2023-08-22 12:01:54 +01:00
vm_config.rs block: add aio disk backend 2023-10-25 10:19:23 -07:00
vm.rs vmm: Fix clippy warnings 2023-10-23 16:03:16 -07:00