mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
cloud-hypervisor: Add the architecture crates
Both crates are based on Firecracker commit 9cdb5b2. They are ported to the new memory model and tests have been fixed accordingly. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
7
arch/src/aarch64/layout.rs
Normal file
7
arch/src/aarch64/layout.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// Kernel command line start address.
|
||||
pub const CMDLINE_START: usize = 0x0;
|
||||
/// Kernel command line start address maximum size.
|
||||
pub const CMDLINE_MAX_SIZE: usize = 0x0;
|
||||
26
arch/src/aarch64/mod.rs
Normal file
26
arch/src/aarch64/mod.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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)> {
|
||||
vec![(GuestAddress(0), size)]
|
||||
}
|
||||
|
||||
/// 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
|
||||
}
|
||||
Reference in New Issue
Block a user