diff options
| author | Fuad Tabba <tabba@google.com> | 2026-03-06 14:02:31 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-03-28 11:29:40 +0000 |
| commit | 84699747aa554197f6d5b4f4c9d1bcb6cb28e21f (patch) | |
| tree | f77977f41534a6eb9e2c2f656946840db5cd5cd0 /tools/perf/scripts/python | |
| parent | 3456943e8786d56aa2bd3f99e9ad2d735a9879c8 (diff) | |
KVM: arm64: Hoist MTE validation check out of MMU lock path
Simplify the non-cacheable attributes assignment by using a ternary
operator. Additionally, hoist the MTE validation check (mte_allowed) out
of kvm_s2_fault_map() and into kvm_s2_fault_compute_prot(). This allows
us to fail faster and avoid acquiring the KVM MMU lock unnecessarily
when the VMM introduces a disallowed VMA for an MTE-enabled guest.
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
