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

Need to check the PAGE.AUG attribute of PermMem metadata section #579

Closed
gaojiaqi7 opened this issue Jun 30, 2023 · 0 comments · Fixed by #580
Closed

Need to check the PAGE.AUG attribute of PermMem metadata section #579

gaojiaqi7 opened this issue Jun 30, 2023 · 0 comments · Fixed by #580

Comments

@gaojiaqi7
Copy link
Member

gaojiaqi7 commented Jun 30, 2023

td-shim/doc/tdshim_spec.md

Lines 160 to 179 in 871ab6b

**Table 1.1-3 TDVF_DESCTION.Attributes definition**
| Bits | Name | Description |
|:-----|:----------------|:---------------------------------------|
| 0 | MR.EXTEND | If the VMM need use TDCALL [TDH.MR.EXTEND] for this section.<br/>0: Do not need TDCALL [TDH.MR.EXTEND]<br/>1: Need TDCALL [TDH.MR.EXTEND]<br/><br/>For example, BFV sets to 1. CFV/TD_HOB/TempMem/PermMem set to 0.<br/>The Payload sets 1 or 0. The PayloadParam sets to 0. |
| 1 | PAGE.AUG | If the VMM need use TDCALL [TDH.MEM.PAGE.AUG] for this section.<br/>0: Use TDCALL [TDH.MEM.PAGE.ADD]<br/>1: Use TDCALL [TDH.MEM.PAGE.AUG]<br/><br/>For example, PermMem sets be 1. Others set to 0. |
| 31:2 | Reserved | Must be 0. |
**Table 1.1-4 TDVF_SECTION.Type definition**
| Value | Name | Memory Type | VMM Action | Td-Shim Action | Measurement |
|:---------------|:-------------|:------------------|:------------------------|:---------------|:------------------|
| 0 | BFV | Private Memory | PAGE.ADD + MR.EXTEND | N/A | MRTD |
| 1 | CFV | Private Memory | PAGE.ADD | RTMR.EXTEND | RTMR[0] |
| 2 | TD_HOB | Private Memory | PAGE.ADD | RTMR.EXTEND | RTMR[0] |
| 3 | TempMem | Private Memory | PAGE.ADD | N/A | N/A |
| 4 | PermMem | Unaccepted Memory | PAGE.AUG | PAGE.ACCEPT | N/A |
| 5 | Payload | Private Memory | PAGE.ADD + MR.EXTEND(o) | RTMR.EXTEND(o) | MRTD (or) RTMR[1] |
| 6 | PayloadParam | Private Memory | PAGE.ADD | RTMR.EXTEND | RTMR[1] |
| 7 ~ 0xFFFFFFFF | Reserved | N/A | N/A | N/A | N/A |

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 a pull request may close this issue.

1 participant