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 letting enclaves do time keeping #660

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

raoulstrackx
Copy link
Contributor

SGXv2 platforms support calling the rdtscp instruction inside an enclave. This PR piggy backs on #659 that implemented logic to keep track of time. This PR starts using this logic in various tools and crates (e.g., async-usercalls, enclave-runner, ...).
Note that the enclave-runner does not change the returned value of insecure_time usercalls at this point; it will always return a null pointer as the second value in the returned tuple. These changes can thus be used on all existing enclaves, no new Rust compiler is required. Another PR will be filed to change the default behavior of enclave runner so enclaves by default take advantage of their improved hardware capabilities.

mzohreva
mzohreva previously approved these changes Dec 2, 2024
Taowyoo
Taowyoo previously approved these changes Dec 5, 2024
Base automatically changed from raoul/rte-204-insecure_time_computation to master December 12, 2024 14:01
@raoulstrackx raoulstrackx dismissed stale reviews from Taowyoo and mzohreva December 12, 2024 14:01

The base branch was changed.

@raoulstrackx raoulstrackx force-pushed the raoul/rte-204-insecure_time_through_rdtscp branch from a41c00b to a34e976 Compare December 12, 2024 14:11
@raoulstrackx raoulstrackx added this pull request to the merge queue Dec 13, 2024
Merged via the queue into master with commit 52c797d Dec 13, 2024
1 check passed
@raoulstrackx raoulstrackx deleted the raoul/rte-204-insecure_time_through_rdtscp branch December 13, 2024 13:57
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.

3 participants