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

Questions regarding TOR as the first entry #16

Open
YazanHussnain-10x opened this issue Oct 22, 2024 · 0 comments
Open

Questions regarding TOR as the first entry #16

YazanHussnain-10x opened this issue Oct 22, 2024 · 0 comments

Comments

@YazanHussnain-10x
Copy link

Section 2.5 of the IOPMP Spec:
Since the address encoding scheme of TOR refers to the previous entry’s memory region, which is not in the same memory domain, it would cause two kinds of unexpected results. If the first entry of a memory domain selects TOR, the entry refers to the previous memory domain. When the previous memory domain may change unexpectedly, the region of this entry will be altered. To prevent the unexpected change of the memory region, one should avoid adopting TOR for the first entry of a memory domain. The second issue is that the memory region of the last entry is referred to by the next memory domain. To avoid this, one can set an OFF for the last entry of a memory domain with the maximal address.

Question 1
It makes sense that one should avoid adopting TOR for the first entry of a memory domain (MD). But why should the last entry of the MD be set to OFF? Since the last entry of the MD can only be referenced by the next MD if the first entry of the following MD is TOR (correct me if I’m wrong), one should adopt only one of the solutions, not both.

Question 2
If the IOPMP setting specifies that the first entry of the MD is not TOR and the second entry is TOR, and later the first entry of the corresponding MD is dissociated from the MD, leaving TOR as the first entry, what should be done in this case? I assume there would be no issue as long as the dissociated entry is not associated with another MD. But what if it is associated with a different MD?

@YazanHussnain-10x YazanHussnain-10x changed the title Issue regarding TOR as the first entry Questions regarding TOR as the first entry Oct 22, 2024
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

No branches or pull requests

1 participant