From c68f367e4af845c2145b94a5a54e7cc923998e01 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sun, 31 Mar 2024 01:44:28 +0000 Subject: [PATCH] krata: log when a guest start failures occurs --- crates/daemon/src/reconcile/guest.rs | 1 + crates/xen/xencall/src/lib.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/crates/daemon/src/reconcile/guest.rs b/crates/daemon/src/reconcile/guest.rs index 018ec1e..8c98563 100644 --- a/crates/daemon/src/reconcile/guest.rs +++ b/crates/daemon/src/reconcile/guest.rs @@ -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 } }; diff --git a/crates/xen/xencall/src/lib.rs b/crates/xen/xencall/src/lib.rs index 76f926c..ff8da21 100644 --- a/crates/xen/xencall/src/lib.rs +++ b/crates/xen/xencall/src/lib.rs @@ -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) } }