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:
Bo Chen
2022-10-07 08:41:11 -07:00
committed by Bo Chen
parent fd9fa2a681
commit 29cf637f3f
2 changed files with 18 additions and 18 deletions
-16
View File
@@ -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 {