summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2024-06-03 15:28:45 +0300
committerMarc Zyngier <maz@kernel.org>2024-06-04 17:06:33 +0300
commit6d8fb3cbf7e06431a607c30c1bc4cd53a62c220a (patch)
treeba24ba31fc7451bd33bbe7dbfc101dceb476d72f /tools/perf/scripts/python/export-to-postgresql.py
parent45f4ea9bcfe909b3461059990b1e232e55dde809 (diff)
downloadlinux-6d8fb3cbf7e06431a607c30c1bc4cd53a62c220a.tar.xz
KVM: arm64: Abstract set/clear of CPTR_EL2 bits behind helper
The same traps controlled by CPTR_EL2 or CPACR_EL1 need to be toggled in different parts of the code, but the exact bits and their polarity differ between these two formats and the mode (vhe/nvhe/hvhe). To reduce the amount of duplicated code and the chance of getting the wrong bit/polarity or missing a field, abstract the set/clear of CPTR_EL2 bits behind a helper. Since (h)VHE is the way of the future, use the CPACR_EL1 format, which is a subset of the VHE CPTR_EL2, as a reference. No functional change intended. Suggested-by: Oliver Upton <oliver.upton@linux.dev> Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Fuad Tabba <tabba@google.com> Link: https://lore.kernel.org/r/20240603122852.3923848-4-tabba@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions