-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preinstall: Check the value of TPM_PT_NV_COUNTERS_AVAIL
When testing for sufficient NV counters, we check TPM_PT_NV_COUNTERS_MAX (the maximum number of counters that are permitted to be allocated) and TPM_PT_COUNTERS (the number of counters allocated). There is another metric - TPM_PT_NV_COUNTERS_AVAIL which is an estimate of the number of orderly counters that can be created based on the amount of RAM remaining for orderly indices and the amount of shared NV space remaining. This isn't perfect because we aren't creating orderly counters (so the RAM constraints don't apply), and the TCG reference library permits TPMs to always return 1 for this property, so we have to handle this case as inconclusive.
- Loading branch information
1 parent
e0c45dc
commit ec7cabe
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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