krata: log when a guest start failures occurs

This commit is contained in:
Alex Zenla 2024-03-31 01:44:28 +00:00
parent 15d5ed5a45
commit c68f367e4a
No known key found for this signature in database
GPG Key ID: 067B238899B51269
2 changed files with 8 additions and 0 deletions

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
}
};

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)
}
}