We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f83530e + e3a5fcf commit d6f3fa5Copy full SHA for d6f3fa5
vmm_core/virt_mshv/src/lib.rs
@@ -138,6 +138,9 @@ impl virt::Hypervisor for LinuxMshv {
138
break;
139
}
140
141
+ vmfd.initialize()
142
+ .map_err(|e| Error::CreateVMInitFailed(e.into()))?;
143
+
144
// Create virtual CPUs.
145
let mut vps: Vec<MshvVpInner> = Vec::new();
146
for vp in config.processor_topology.vps_arch() {
@@ -1076,6 +1079,8 @@ pub enum Error {
1076
1079
NotSupported,
1077
1080
#[error("create_vm failed")]
1078
1081
CreateVMFailed,
1082
+ #[error("failed to initialize VM")]
1083
+ CreateVMInitFailed(#[source] anyhow::Error),
1084
#[error("failed to create VCPU")]
1085
CreateVcpu(#[source] MshvError),
1086
#[error("vtl2 not supported")]
0 commit comments