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

Support for specifying unmapped area #485

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raoulstrackx
Copy link
Contributor

@raoulstrackx raoulstrackx commented Jun 22, 2023

SGXv2 supports dynamically adding memory. This initial PR addresses issue #482 and adds support to the ftxsgx-elf2sgxs tool to reserve unmapped memory within the enclave.

Fixes #482

.validator(u64::validate_arg)
.required(false)
.default_value("0")
.help("Specify the (minimum) size of unmapped memory (useable on SGXv2 capable processors only)"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder, should we clarify why a user would be interested in this option? E.g.

Specifying an unmapped memory size allows dynamically allocating additional heap space on SGXv2 capable processors

I understand on the other hand that maybe we don't want to advertise it if the whole feature set is not ready yet; not sure.
What do you think?

Looks good to me either way 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should even call it dynamic memory or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point about not adding it to master yet. Will mark the PR as draft again

@raoulstrackx raoulstrackx marked this pull request as draft September 1, 2023 07:32
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.

Add unmapped memory region to SGX enclave
2 participants