vmm: Improve logging related to memory management
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
9b0fe505ca
commit
7bb343dce8
2 changed files with 11 additions and 0 deletions
|
|
@ -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)?;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue