mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
aarch64: Return the hidden RAM for UEFI
Size of `memory` node in FDT was reduced by 4MiB. Now it is returned. In memory regions, a `Ram` region of 4MiB was created at address 0. Now it is removed. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Rob Bradford
parent
7d7bfb2034
commit
6e562eb1e7
@@ -241,10 +241,6 @@ fn create_memory_node(
|
||||
for memory_region in numa_node.unwrap().memory_regions.iter() {
|
||||
let memory_region_start_addr: u64 = memory_region.start_addr().raw_value();
|
||||
let memory_region_size: u64 = memory_region.size() as u64;
|
||||
// RAM at 0-4M is hidden to the guest for edk2
|
||||
if memory_region_start_addr == 0 {
|
||||
continue;
|
||||
}
|
||||
mem_reg_prop.push(memory_region_start_addr);
|
||||
mem_reg_prop.push(memory_region_size);
|
||||
// Set the node address the first non-zero regison address
|
||||
|
||||
Reference in New Issue
Block a user