diff --git a/arch/src/x86_64/mod.rs b/arch/src/x86_64/mod.rs index 977bf3678..4ee69075e 100644 --- a/arch/src/x86_64/mod.rs +++ b/arch/src/x86_64/mod.rs @@ -202,7 +202,7 @@ pub enum Error { /// Error retrieving TDX capabilities through the hypervisor (kvm/mshv) API #[cfg(feature = "tdx")] #[error("Error retrieving TDX capabilities through the hypervisor API: {0}")] - TdxCapabilities(HypervisorError), + TdxCapabilities(#[source] HypervisorError), /// Failed to configure E820 map for bzImage #[error("Failed to configure E820 map for bzImage")] diff --git a/arch/src/x86_64/mptable.rs b/arch/src/x86_64/mptable.rs index 406db7575..490b4ca73 100644 --- a/arch/src/x86_64/mptable.rs +++ b/arch/src/x86_64/mptable.rs @@ -60,7 +60,7 @@ pub enum Error { AddressOverflow, /// Failure while zeroing out the memory for the MP table. #[error("Failure while zeroing out the memory for the MP table: {0}")] - Clear(GuestMemoryError), + Clear(#[source] GuestMemoryError), /// Number of CPUs exceeds the maximum supported CPUs #[error("Number of CPUs exceeds the maximum supported CPUs")] TooManyCpus,