mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 08:21:15 +00:00
vmm: Propagate vCPU configure error correctly
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
725e388684
commit
bfa31f9c56
@ -746,12 +746,10 @@ impl CpuManager {
|
|||||||
assert!(!self.cpuid.is_empty());
|
assert!(!self.cpuid.is_empty());
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
vcpu.configure(boot_setup, self.cpuid.clone(), self.config.kvm_hyperv)
|
vcpu.configure(boot_setup, self.cpuid.clone(), self.config.kvm_hyperv)?;
|
||||||
.expect("Failed to configure vCPU");
|
|
||||||
|
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
vcpu.configure(&self.vm, boot_setup)
|
vcpu.configure(&self.vm, boot_setup)?;
|
||||||
.expect("Failed to configure vCPU");
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user