Merged
Conversation
microbnechmark so that it can retrieve measurements and generate reports for zygotes and trustlets independently Precisely, it performs the following: - convert some `info` prints to `debug` to not affect the measurements - set the `AllocationRange` of the `Manifest`, `Libos` and `PAL` correctly - add an `AllocationRange` in the base context for the `function` - `AllocationRange`s in the base context now hold their actual size instead of the amount of pages they span to have accurate, correct measurements - make `addr_to_idx` a public function as it is needed for identifying the mapped regions in the attestation report generation microbenchmark - add a `TP_FUNCTION_START_VADDR` global variable for the predefined virtual address of the function mapping - set the `features.set_restrict_injection` to `false` in the `igvmbuilder` to get correct and comparable measurements in the CVM reports - add helper functions and helper options in the `attest` call in `attestation/monitor.rs` for getting the measurements independently Signed-off-by: dimstav23 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attestation microbenchmark
This PR introduces the attestation report generation microbenchmark.
It retrieves measurements and generates reports for zygotes and trustlets independently
Precisely, it performs the following:
infoprints todebugto not affect the measurementsAllocationRangeof theManifest,LibosandPALcorrectlyAllocationRangein the base context for thefunctionAllocationRanges in the base context now hold their actual size instead of the amount of pages they span to have accurate, correct measurementsaddr_to_idxa public function as it is needed for identifying the mapped regions in the attestation report generation microbenchmarkTP_FUNCTION_START_VADDRglobal variable for the predefined virtual address of the function mappingfeatures.set_restrict_injectiontofalsein theigvmbuilderto get correct and comparable measurements in the CVM reportsattestcall inattestation/monitor.rsfor getting the measurements independently