mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user