]> www.infradead.org Git - nvme.git/commit
KVM: arm64: Spin off helper for programming CPTR traps
authorOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 16:46:45 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 19:04:10 +0000 (19:04 +0000)
commit1785f020b1124c37f59f3d92b7d45ba1d707ee91
treeeca1a13241968075b4c7ea6999dc6b2f6a9a2db4
parent2e3cf82063a00ea0629e03e223c7c6ba58718f12
KVM: arm64: Spin off helper for programming CPTR traps

A subsequent change to KVM will add preliminary support for merging a
guest hypervisor's CPTR traps with that of KVM. Prepare by spinning off
a new helper for managing CPTR traps.

Avoid reading CPACR_EL1 for the baseline trap config, and start off with
the most restrictive set of traps that is subsequently relaxed.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240620164653.1130714-9-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/vhe/switch.c