forked from firecracker-microvm/firecracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: prepare crate for aarch64 code
- Refactored crate to support addition of non-x86_64 architectures - Labeled code accordingly - non-x86_64 code was moved outside x86_64 folder - Adjusted vmm related code - Added aarch64 dummy template Signed-off-by: Diana Popa <[email protected]>
- Loading branch information
Showing
7 changed files
with
102 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters