(memory_manager: &Arc<Mutex<MemoryManager>>)
| 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)] |
nothing calls this directly
no test coverage detected