hypervisor: mshv: Emulate IrqFd and IOEventFd for mshv module

We don't have IrqFd and IOEventFd support in the kernel for now.
So an emulation layer is needed. In the future, we will be adding this
support in the kernel.

Co-Developed-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2020-12-04 10:30:29 -08:00
committed by Samuel Ortiz
parent 286a23fbd4
commit fd0ef6cfb5
4 changed files with 264 additions and 2 deletions

View File

@@ -158,6 +158,11 @@ pub enum HypervisorVmError {
///
#[error("Failed to get dirty log: {0}")]
GetDirtyLog(#[source] anyhow::Error),
///
/// Assert virtual interrupt error
///
#[error("Failed to assert virtual Interrupt: {0}")]
AsserttVirtualInterrupt(#[source] anyhow::Error),
}
///
/// Result type for returning from a function