vmm: save console_resize_pipe info to Vmm

With this change all the information to manage console devices is now
available within Vmm Object.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
This commit is contained in:
Praveen K Paladugu
2024-05-02 21:18:23 +00:00
committed by Rob Bradford
parent d784bf0c75
commit 385f9a9aa9
2 changed files with 27 additions and 0 deletions
+2
View File
@@ -549,6 +549,7 @@ pub struct Vmm {
signals: Option<Handle>,
threads: Vec<thread::JoinHandle<()>>,
original_termios_opt: Arc<Mutex<Option<termios>>>,
console_resize_pipe: Option<File>,
}
impl Vmm {
@@ -683,6 +684,7 @@ impl Vmm {
signals: None,
threads: vec![],
original_termios_opt: Arc::new(Mutex::new(None)),
console_resize_pipe: None,
})
}