vmm: populate console_info during vm actions

Use pre_create_console_devices method to create and populate console
device FDs into console_info in Vmm Object.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
This commit is contained in:
Praveen K Paladugu
2024-05-02 20:02:25 +00:00
committed by Rob Bradford
parent 385f9a9aa9
commit 380ba564f4
3 changed files with 32 additions and 1 deletions
+4
View File
@@ -16,6 +16,7 @@ use crate::config::{
UserDeviceConfig, ValidationError, VdpaConfig, VmConfig, VsockConfig,
};
use crate::config::{NumaConfig, PayloadConfig};
use crate::console_devices::ConsoleDeviceError;
#[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
use crate::coredump::{
CpuElf64Writable, DumpState, Elf64Writable, GuestDebuggable, GuestDebuggableError, NoteDescType,
@@ -322,6 +323,9 @@ pub enum Error {
#[error("Error resuming the VM: {0}")]
ResumeVm(#[source] hypervisor::HypervisorVmError),
#[error("Error creating console devices")]
CreateConsoleDevices(ConsoleDeviceError),
}
pub type Result<T> = result::Result<T, Error>;