Skip to content

Commit b63d1b8

Browse files
committed
Fix compile errors
1 parent a3d19a1 commit b63d1b8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/firecracker/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ fn main_exec() -> Result<(), MainError> {
337337
state: VmState::NotStarted,
338338
vmm_version: FIRECRACKER_VERSION.to_string(),
339339
app_name: "Firecracker".to_string(),
340+
memory_regions: None,
340341
};
341342

342343
if let Some(metrics_path) = arguments.single_value("metrics-path") {

src/vmm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ impl Vmm {
466466
&self.guest_memory
467467
}
468468

469+
/// Returns the memory mappings for the guest memory.
469470
pub fn guest_memory_mappings(&self, vm_info: &VmInfo) -> Vec<GuestMemoryRegionMapping> {
470471
let mut offset = 0;
471472
let mut mappings = Vec::new();

src/vmm/src/rpc_interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ impl RuntimeApiController {
652652
let mut instance_info = locked_vmm.instance_info();
653653

654654
instance_info.memory_regions =
655-
locked_vmm.guest_memory_mappings(&VmInfo::from(&self.vm_resources));
655+
Some(locked_vmm.guest_memory_mappings(&VmInfo::from(&self.vm_resources)));
656656

657657
Ok(VmmData::InstanceInformation(instance_info))
658658
}

0 commit comments

Comments
 (0)