Skip to content

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
@jethrogb
Copy link
Member

jethrogb commented Jul 1, 2025

Please add doc comments for the changes in fortanix-sgx-abi

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.

5 participants