mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-23 04:55:22 +00:00
7552f4db61
When the hypervisor crate was introduced, a few places that handled errors were commented out in favor of unwrap, but that's bad practice. Restore proper error handling in those places in this patch. We cannot use from_raw_os_error anymore because it is wrapped deep under hypervisor crate. Create new custom errors instead. Fixes: e4dee57e81369 ("arch, pci, vmm: Initial switch to the hypervisor crate") Signed-off-by: Wei Liu <liuwe@microsoft.com>