Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudHv:arm: add PEI memory init lib #3289

Closed
wants to merge 2 commits into from
Closed

Conversation

jongwu
Copy link
Contributor

@jongwu jongwu commented Sep 6, 2022

Currently, the meminfo lib for CloudHv/arm is reusing QEMU's. As the memory
layout for cloud hypervisor is changed, it needs a new meminfo lib.

Signed-off-by: Jianyong Wu jianyong.wu@arm.com

@jongwu jongwu force-pushed the memlayout branch 3 times, most recently from 3517d90 to f947a6c Compare September 6, 2022 05:31
Memory layout in CLoud Hypervisor for arm is changed and is different
with Qemu, thus we should build its own PeiMemInfoLib.
The main change in the memory layout is that normal ram may not contiguous
under 4G. The top 64M under 4G is reserved for 32bit device.

What this patch does:
1. get all of the memory node from DT;
2. Init page table for each memory node;
3. Add all of the memory nodes to Hob;

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
As Cloud Hypervisor has its own PeiMemLib, change it in dsc
file accordingly.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant