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

ResetVector: remove 5-level paging #738

Merged

Conversation

gaojiaqi7
Copy link
Member

5-level paging is not necessary in td-shim, remove the related code and page table entry in reset vector.

As the level 5 entry is removed, update the size of ResetVector in image layout.

This PR should close #734 as GPAW is no longer needed.

"Ipl": "0x349000",
"ResetVector": "0x008000"
"Ipl": "0x34A000",
"ResetVector": "0x007000"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please dont change size.

@jyao1
Copy link
Member

jyao1 commented Sep 12, 2024

Need check CR4.LA57.

5-level paging is not necessary in td-shim, remove the related code and
page table entry in reset vector.

td-shim checks the CR4.LA57 before setting the new page table, it will
panic if the bit is set.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
@jyao1 jyao1 merged commit 0448cfd into confidential-containers:main Sep 19, 2024
23 checks passed
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.

Wrong bitmask on GPAW?
2 participants