build: Bump mshv crates from 0.4.0 to 0.5.0

Along with also bump the vfio-bindings crates to use the latest
mshv-bindings.

There is a breaking change in the new mshv crate which requires an
additional step to initialize vm after creating it.

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain
2025-05-02 10:27:05 +05:30
parent 3eb6b69dd2
commit f16d45e86e
6 changed files with 82 additions and 57 deletions

View File

@@ -255,6 +255,11 @@ pub enum HypervisorVmError {
#[cfg(feature = "sev_snp")]
#[error("Failed to mmap:")]
MmapToRoot,
///
/// Failed to initialize VM
///
#[error("Failed to initialize VM: {0}")]
InitializeVm(#[source] anyhow::Error),
}
///
/// Result type for returning from a function
@@ -417,7 +422,10 @@ pub trait Vm: Send + Sync + Any {
) -> Result<()> {
unimplemented!()
}
/// Initialize the VM
fn init(&self) -> Result<()> {
Ok(())
}
/// Pause the VM
fn pause(&self) -> Result<()> {
Ok(())