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

@@ -142,6 +142,9 @@ pub enum Error {
#[error("Error from device manager: {0:?}")]
DeviceManager(DeviceManagerError),
#[error("Error initializing VM: {0:?}")]
InitializeVm(hypervisor::HypervisorVmError),
#[error("No device with id {0:?} to remove")]
NoDeviceToRemove(String),
@@ -604,6 +607,8 @@ impl Vm {
.map_err(Error::InitializeTdxVm)?;
}
vm.init().map_err(Error::InitializeVm)?;
cpu_manager
.lock()
.unwrap()