MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / reserve_bootloader_regions

Method reserve_bootloader_regions

vmm/src/vm.rs:1548–1555  ·  view source on GitHub ↗
(memory_manager: &Arc<Mutex<MemoryManager>>)

Source from the content-addressed store, hash-verified

1546
1547 #[cfg(all(feature = "kvm", feature = "sev_snp"))]
1548 fn reserve_bootloader_regions(memory_manager: &Arc<Mutex<MemoryManager>>) -> Result<()> {
1549 let mut mm = memory_manager.lock().unwrap();
1550 mm.add_ram_region(BOOTLOADER_START, BOOTLOADER_SIZE)
1551 .map_err(Error::MemoryManager)?;
1552 mm.add_ram_region(KVM_VMSA_PAGE_ADDRESS, KVM_VMSA_PAGE_SIZE)
1553 .map_err(Error::MemoryManager)?;
1554 Ok(())
1555 }
1556
1557 #[cfg(feature = "igvm")]
1558 #[allow(clippy::needless_pass_by_value)]

Callers

nothing calls this directly

Calls 1

add_ram_regionMethod · 0.80

Tested by

no test coverage detected