diff options
author | Brijesh Singh <[email protected]> | 2024-01-25 22:11:10 -0600 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2024-01-29 20:30:59 +0100 |
commit | 2c35819ee00b8893626914b3384cdef2afea7dbd (patch) | |
tree | d434654080e77711b1b4ba3981d464c39c6b1a5c /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | e8bbd303d7de3fb32be1434a5d5ce3e1cb182018 (diff) |
x86/sev: Add helper functions for RMPUPDATE and PSMASH instruction
The RMPUPDATE instruction updates the access restrictions for a page via
its corresponding entry in the RMP Table. The hypervisor will use the
instruction to enforce various access restrictions on pages used for
confidential guests and other specialized functionality. See APM3 for
details on the instruction operations.
The PSMASH instruction expands a 2MB RMP entry in the RMP table into a
corresponding set of contiguous 4KB RMP entries while retaining the
state of the validated bit from the original 2MB RMP entry. The
hypervisor will use this instruction in cases where it needs to re-map a
page as 4K rather than 2MB in a guest's nested page table.
Add helpers to make use of these instructions.
[ mdr: add RMPUPDATE retry logic for transient FAIL_OVERLAP errors. ]
Signed-off-by: Brijesh Singh <[email protected]>
Signed-off-by: Ashish Kalra <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Liam Merwick <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions