-
Notifications
You must be signed in to change notification settings - Fork 161
ref(vmpu): Standardize vMPU driver and update armv8-r MPU #216
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
Conversation
063a1b2 to
2f167aa
Compare
Signed-off-by: Jose Martins <[email protected]>
Signed-off-by: Jose Martins <[email protected]>
This API simplifies the implementation of vMPU entries coalescense. Updating a region requires a broadcast to the other CPUs on the same address space. This commit also fixes the install of the VM images where MPU entries on other cores were not correctly unmaped. Signed-off-by: Daniel Oliveira <[email protected]> Signed-off-by: Miguel Silva <[email protected]>
Add functionality to lock entries on the vMPU to prevent hypervisor MPU entries from being removed. Signed-off-by: Daniel Oliveira <[email protected]>
This reduces the number of vMPU/MPU entries. Signed-off-by: Daniel Oliveira <[email protected]> Signed-off-by: Miguel Silva <[email protected]>
b5d134b to
c058b4e
Compare
|
@miguelafsilva5 Please check for typos in commit messages. Also, the sentence after : should start lowecase. |
c058b4e to
91ac275
Compare
To simplify boot code we run with mpu disabled until the mem init. Signed-off-by: Daniel Oliveira <[email protected]>
Initally, when mapping and copying, the destination region was being created with the same size of the original region, instead of the size of the data being copied Signed-off-by: Miguel Silva <[email protected]>
91ac275 to
8e8c6a1
Compare
@josecm should be fixed already. Thank you |
@miguelafsilva5 commit 2922a2d still has a typo. Should be "deallocate" |
8e8c6a1 to
658439b
Compare
@danielRep my bad- Missed it. Its fixed now. Thank you |
Removed the complexity from the MPU driver related to the merge of regions, which was moved to the vMPU level. Removed the creation of MPU entries during boot. Signed-off-by: Miguel Silva <[email protected]>
During the context switch of MPU regions, locked entries are not disabled. Signed-off-by: Miguel Silva <[email protected]>
Added a function that deallocates a vMPU entry whenever the mpu fails to insert a region. Signed-off-by: Miguel Silva <[email protected]>
Signed-off-by: Miguel Silva <[email protected]>
658439b to
44db8da
Compare
PR Description
This PR aims to stantardize the vMPU driver and to the some extend the MPU API. This was needed to support different MPU implementations.
A major goal of this PR is remove the complexity from the MPU driver and move it to the vMPU.
In order to comply with these modifications to the vMPU, the MPU driver for armv8-r was also updated