-
Notifications
You must be signed in to change notification settings - Fork 26
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
Hugepage support #92
Comments
I am working on this. |
Re-opening this since it's far from done :) @stillson is still working on an orthogonal piece to this, which is to map Salus itself with hugepages. That should speed up our boot times. For hugepage usage in TVMs, I'd propose the following new TH-ABI calls (largely inspired from @rsahita's draft spec):
The implementation of the existing Note that the host VM will continue to always be mapped with 4kB pages so as to avoid having to transparently break up hugepage mappings within Salus. This also is consistent with MTT-based deployment modes where the host can operate on physical memory at a 4kB granularity. We do however need to make sure the host VM is mapped in 2MB-aligned chunks so that we can exercise hugepages; we currently only guarantee 16kB. The flow for promotion/demotion would look like this:
Some points for discussion:
|
The TEE APIs have placeholder support for hugepages, but our current implementation rejects anything other than 4kB pages. There's a number of places internally (page table manipulation, page tracking) that will need to be updated to take hugepages into account, and we'll likely want an interface to promote/demote hugepage mappings in a TVM.
The text was updated successfully, but these errors were encountered: