mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-08 22:05:20 +00:00
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
@ -1444,6 +1444,11 @@ impl MemoryManager {
|
|||||||
log_dirty,
|
log_dirty,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
info!(
|
||||||
|
"Creating userspace mapping: {:x} -> {:x} {:x}, slot {}",
|
||||||
|
guest_phys_addr, userspace_addr, memory_size, slot
|
||||||
|
);
|
||||||
|
|
||||||
self.vm
|
self.vm
|
||||||
.create_user_memory_region(mem_region)
|
.create_user_memory_region(mem_region)
|
||||||
.map_err(Error::CreateUserMemoryRegion)?;
|
.map_err(Error::CreateUserMemoryRegion)?;
|
||||||
|
@ -1021,6 +1021,12 @@ impl Vm {
|
|||||||
.checked_sub(size)
|
.checked_sub(size)
|
||||||
.ok_or(Error::FirmwareTooLarge)?;
|
.ok_or(Error::FirmwareTooLarge)?;
|
||||||
|
|
||||||
|
info!(
|
||||||
|
"Loading RAW firmware at 0x{:x} (size: {})",
|
||||||
|
load_address.raw_value(),
|
||||||
|
size
|
||||||
|
);
|
||||||
|
|
||||||
self.memory_manager
|
self.memory_manager
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user