vmm: log guest memory mapping address
When initializing the guest's memory, log the address where it starts
(in the host's space) in order to find it later in the process maps.
Substracting the corresponding rss from the process' total rss gives us
Firecracker's memory overhead.
@@ -70,6 +70,7 @@ impl Vm {
/// Currently this is x86 specific (because of the TSS address setup)
pub fn memory_init(&mut self, guest_mem: GuestMemory) -> Result<()> {
guest_mem.with_regions(|index, guest_addr, size, host_addr| {
+ info!("Guest memory starts at {:x?}", host_addr);
// Safe because the guest regions are guaranteed not to overlap.
self.fd.set_user_memory_region(
index as u32,
