mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
aarch64: Reduce UEFI space size to 4 MiB
UEFI need to be loaded to a flash area at the beginning of guest memory address space. To simulate the flash, we take a piece of RAM and hide it to the guest. As this is a temporary solution, the hiden RAM for UEFI should be as little as possible. The size was 64 MiB, that's too much, 4 MiB is enough. The down side of such simulation is that there is a gap (4 MiB) between the memory size in VMM's view and that in guest's view. This is to be fixed by implementing a flash device in future. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Rob Bradford
parent
d4d62fc9dc
commit
45c4d1a06e
@@ -46,10 +46,11 @@
|
||||
|
||||
use vm_memory::GuestAddress;
|
||||
|
||||
/// 0x0 ~ 0x400_0000 is reserved to uefi
|
||||
/// 0x0 ~ 0x40_0000 (4 MiB) is reserved to UEFI
|
||||
/// UEFI binary size is required less than 3 MiB, reserving 4 MiB is enough.
|
||||
pub const UEFI_START: u64 = 0x0;
|
||||
pub const MEM_UEFI_START: GuestAddress = GuestAddress(0);
|
||||
pub const UEFI_SIZE: u64 = 0x0400_0000;
|
||||
pub const UEFI_SIZE: u64 = 0x040_0000;
|
||||
|
||||
/// Below this address will reside the GIC, above this address will reside the MMIO devices.
|
||||
pub const MAPPED_IO_START: u64 = 0x0900_0000;
|
||||
|
||||
Reference in New Issue
Block a user