vmm: Improve logging related to memory management

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2021-12-02 15:41:47 +01:00
parent 9b0fe505ca
commit 7bb343dce8
2 changed files with 11 additions and 0 deletions

View File

@ -1444,6 +1444,11 @@ impl MemoryManager {
log_dirty,
);
info!(
"Creating userspace mapping: {:x} -> {:x} {:x}, slot {}",
guest_phys_addr, userspace_addr, memory_size, slot
);
self.vm
.create_user_memory_region(mem_region)
.map_err(Error::CreateUserMemoryRegion)?;

View File

@ -1021,6 +1021,12 @@ impl Vm {
.checked_sub(size)
.ok_or(Error::FirmwareTooLarge)?;
info!(
"Loading RAW firmware at 0x{:x} (size: {})",
load_address.raw_value(),
size
);
self.memory_manager
.lock()
.unwrap()