diff options
author | Sean Christopherson <seanjc@google.com> | 2025-02-27 03:07:05 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-02-28 20:14:05 +0300 |
commit | 61146f67e4cb67064ce3003d94ee19302d314fff (patch) | |
tree | 6357fbbac84abcd34101e00a34816bfef4812283 /tools/perf/scripts/python/task-analyzer.py | |
parent | fa6c8fc2d2673dcaf7333bc35eb759ab7c39b81f (diff) | |
download | linux-61146f67e4cb67064ce3003d94ee19302d314fff.tar.xz |
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 <jon@nutanix.com>
Cc: Nikolay Borisov <nik.borisov@suse.com>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/r/20250227000705.3199706-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions