diff options
| author | Sean Christopherson <[email protected]> | 2025-02-27 00:07:05 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2025-02-28 17:14:05 +0000 |
| commit | 61146f67e4cb67064ce3003d94ee19302d314fff (patch) | |
| tree | 6357fbbac84abcd34101e00a34816bfef4812283 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | KVM: VMX: Remove EPT_VIOLATIONS_ACC_*_BIT defines (diff) | |
| download | kernel-61146f67e4cb67064ce3003d94ee19302d314fff.tar.gz kernel-61146f67e4cb67064ce3003d94ee19302d314fff.zip | |
KVM: nVMX: Decouple EPT RWX bits from EPT Violation protection bits
Define independent macros for the RWX protection bits that are enumerated
via EXIT_QUALIFICATION for EPT Violations, and tie them to the RWX bits in
EPT entries via compile-time asserts. Piggybacking the EPTE defines works
for now, but it creates holes in the EPT_VIOLATION_xxx macros and will
cause headaches if/when KVM emulates Mode-Based Execution (MBEC), or any
other features that introduces additional protection information.
Opportunistically rename EPT_VIOLATION_RWX_MASK to EPT_VIOLATION_PROT_MASK
so that it doesn't become stale if/when MBEC support is added.
No functional change intended.
Cc: Jon Kohler <[email protected]>
Cc: Nikolay Borisov <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
