vm-migration: preserve error chain

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-02 06:40:11 +02:00
committed by Rob Bradford
parent b4c37def26
commit 85109ebae0
2 changed files with 9 additions and 3 deletions

View File

@@ -26,7 +26,11 @@ pub enum UffdError {
Create(#[source] std::io::Error),
#[error("Cannot translate GPA {gpa:#x} to host address")]
GpaTranslation { gpa: u64 },
GpaTranslation {
gpa: u64,
#[source]
source: vm_memory::GuestMemoryError,
},
#[error("Failed to register region at {addr:#x}+{len:#x}")]
Register {