mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-01 19:15:46 +00:00
f98a69f42e
With this new AddressAllocator as part of the SystemAllocator, the VMM can now decide with finer granularity where to place memory. By allocating the RAM and the hole into the MMIO address space, we ensure that no memory will be allocated by accident where the RAM or where the hole is. And by creating the new MMIO hole address space, we create a subset of the entire MMIO address space where we can place 32 bits BARs for example. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
27 lines
792 B
Rust
27 lines
792 B
Rust
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
pub mod layout;
|
|
|
|
use memory_model::{GuestAddress, GuestMemory};
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn arch_memory_regions(size: usize) -> Vec<(GuestAddress, usize, RegionType)> {
|
|
vec![(GuestAddress(0), size, RegionType::Ram)]
|
|
}
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn configure_system(
|
|
_guest_mem: &GuestMemory,
|
|
_cmdline_addr: GuestAddress,
|
|
_cmdline_size: usize,
|
|
_num_cpus: u8,
|
|
) -> super::Result<()> {
|
|
Ok(())
|
|
}
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn get_reserved_mem_addr() -> usize {
|
|
0
|
|
}
|