commit | f934bc04139e847ca2d5c15e160c000b98aba949 | [log] [tgz] |
---|---|---|
author | Takaya Saeki <takayas@chromium.org> | Mon Feb 19 18:17:02 2024 +0900 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 21 07:15:34 2024 +0000 |
tree | 7f21d32985f2a592673b2eeb360a30dbb3ee9f41 | |
parent | b27613f5a43b94557689295aa480272e22e11492 [diff] |
serial: allow multiple console=true devices Currently crosvm does not allow users to give multiple serial devices with `console=true`. However, actually Linux kernel can have multiple `console=` options at the same time. Each serial hardware type can have one console. Kernel logs will be copied to all consoles, and the inputs will be taken from the last `console=` device. Even if multiple `console=` options for the same device type are given, no error occurs and the last one is effective. Therefore, crosvm doesn't have to restrict console option. Thus, this CL removes the restriction on multiple consoles of crosvm. BUG=b:325362584 TEST=`crosvm run --serial type=file,path=serial,console=true --serial type=stdout,hardware=virtio-console,console=true,stdin=true ...`. Both file and stdout have console outputs Change-Id: I911c9223704eb91f369b74e9cdcd901f115aa7eb Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5306814 Commit-Queue: Takaya Saeki <takayas@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on ChromeOS devices.