diff options
| author | Brijesh Singh <brijesh.singh@amd.com> | 2022-04-26 17:35:48 +0000 |
|---|---|---|
| committer | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2022-07-13 17:27:25 -0500 |
| commit | 394b78942c092fc25f1215d1f92c6b2032cb0cd3 (patch) | |
| tree | 65992794b4bee1151addbb326005031b47881f81 /include/linux | |
| parent | ab2883dcac131dc50a984d3cbb4e15f296272242 (diff) | |
| download | cachepc-linux-394b78942c092fc25f1215d1f92c6b2032cb0cd3.tar.gz cachepc-linux-394b78942c092fc25f1215d1f92c6b2032cb0cd3.zip | |
x86/sev: Invalid pages from direct map when adding it to RMP table
The integrity guarantee of SEV-SNP is enforced through the RMP table.
The RMP is used with standard x86 and IOMMU page tables to enforce memory
restrictions and page access rights. The RMP check is enforced as soon as
SEV-SNP is enabled globally in the system. When hardware encounters an
RMP checks failure, it raises a page-fault exception.
The rmp_make_private() and rmp_make_shared() helpers are used to add
or remove the pages from the RMP table. Improve the rmp_make_private() to
invalid state so that pages cannot be used in the direct-map after its
added in the RMP table, and restore to its default valid permission after
the pages are removed from the RMP table.
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
