mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Move 'default_serial/console()' to vm_config.rs
In this way, we have all functions related to generate default values of vm-config structs in the same location. Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
@@ -1414,22 +1414,6 @@ impl ConsoleConfig {
|
||||
|
||||
Ok(Self { file, mode, iommu })
|
||||
}
|
||||
|
||||
pub fn default_serial() -> Self {
|
||||
ConsoleConfig {
|
||||
file: None,
|
||||
mode: ConsoleOutputMode::Null,
|
||||
iommu: false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn default_console() -> Self {
|
||||
ConsoleConfig {
|
||||
file: None,
|
||||
mode: ConsoleOutputMode::Tty,
|
||||
iommu: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl DeviceConfig {
|
||||
|
||||
Reference in New Issue
Block a user