mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-26 21:32:21 +00:00
Remove ACPI table creation from arch crate to the vmm crate simplifying arch::configure_system() GuestAddress(0) is used to mean no RSDP table rather than adding complexity with a conditional argument or an Option type as it will evaluate to a zero value which would be the default anyway. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
28 lines
830 B
Rust
28 lines
830 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,
|
|
_rsdp_addr: Option<GuestAddress>,
|
|
) -> super::Result<()> {
|
|
Ok(())
|
|
}
|
|
|
|
/// Stub function that needs to be implemented when aarch64 functionality is added.
|
|
pub fn get_reserved_mem_addr() -> usize {
|
|
0
|
|
}
|