mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +00:00
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> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |