mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Several error mappings in vm.rs dropped the underlying error with map_err(|_| ...), making failures harder to diagnose. Preserve the source error by adding #[source] fields to InitramfsLoad and ErrorNmi. - InitramfsLoad: now wraps std::io::Error from seek/rewind operations - ErrorNmi: now wraps cpu::Error from the CPU manager nmi() call Partially addresses #7563 Signed-off-by: Keith Adler <kadler@cloudflare.com>