krata: log when a guest start failures occurs

This commit is contained in:
alex committed 2024-03-31 01:44:28 +00:00
1 parent 15d5ed5a45
commit c68f367e4a
2 files changed
+8

No files matched your search

+1
View File
@@ -134,6 +134,7 @@ impl GuestReconciler {
guest.state.as_mut().unwrap().error_info = Some(GuestErrorInfo {
message: error.to_string(),
});
warn!("failed to start guest {}: {}", guest.id, error);
true
}
};
+7
View File
@@ -87,6 +87,13 @@ impl XenCall {
if ptr == MAP_FAILED {
None
} else {
trace!(
"call fd={} mmap addr={:#x} len={} = {:#x}",
self.handle.as_raw_fd(),
addr,
len,
ptr as u64,
);
Some(ptr as u64)
}
}