vmm: Remove concept of "input_enabled"

This concept ends up being broken with multiple types on input connected
e.g. console on TTY and serial on PTY. Already the code for checking for
injecting into the serial device checks that the serial is configured.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-09-08 15:12:36 +01:00
committed by Bo Chen
parent 951ad3495e
commit 387753ae1d
3 changed files with 35 additions and 70 deletions

View File

@@ -1452,12 +1452,6 @@ pub enum ConsoleOutputMode {
Null,
}
impl ConsoleOutputMode {
pub fn input_enabled(&self) -> bool {
matches!(self, ConsoleOutputMode::Tty | ConsoleOutputMode::Pty)
}
}
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct ConsoleConfig {
#[serde(default = "default_consoleconfig_file")]