mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +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());
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
vcpu.configure(boot_setup, self.cpuid.clone(), self.config.kvm_hyperv)
|
||||
.expect("Failed to configure vCPU");
|
||||
vcpu.configure(boot_setup, self.cpuid.clone(), self.config.kvm_hyperv)?;
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
vcpu.configure(&self.vm, boot_setup)
|
||||
.expect("Failed to configure vCPU");
|
||||
vcpu.configure(&self.vm, boot_setup)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user