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

Add support for PMP emulation #21

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Add support for PMP emulation #21

merged 2 commits into from
Mar 5, 2024

Conversation

CharlyCst
Copy link
Owner

Rebasing #20 and squashing things around.

@fesqvw did all the work and gets the credit :)

fesqvw and others added 2 commits March 5, 2024 10:07
This commit adds support for PMP virtualization. Note that the lock bit is not
yet supported, thus PMPs are never enforced. The PMPs will need to be honoured
when we will add support for running the OS.
This commit adds a test payload to exercise PMP emulation. For now QEMU exposes
only 16 PMPs, so Mirage can only expose 0 to the payload to stay spec-compliant
while keeping a few PMPs to protect itself.
The commit does include a test function for 16 exposed PMPs, we can enable it
later once more PMPs become available.

Co-authored-by: Abel Vexina Wilkinson <abel.vexinawilkinson@epfl.ch>
@CharlyCst CharlyCst merged commit 89e7161 into main Mar 5, 2024
1 check passed
@CharlyCst CharlyCst deleted the push-sozmyrrytrvz branch March 5, 2024 09:17
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.

2 participants