]> www.infradead.org Git - nvme.git/commit
KVM: arm64: nv: Add additional trap setup for CPTR_EL2
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Jun 2024 16:46:51 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 19:04:49 +0000 (19:04 +0000)
commitcd931bd6093cb7da7b9787f04b21bca58c494537
tree12b0cc9b75a68e61ecbc46a2e9ac7169e10cee08
parente19d533126accf342d34019f4bc92b8796b125bc
KVM: arm64: nv: Add additional trap setup for CPTR_EL2

We need to teach KVM a couple of new tricks. CPTR_EL2 and its
VHE accessor CPACR_EL1 need to be handled specially:

- CPACR_EL1 is trapped on VHE so that we can track the TCPAC
  and TTA bits

- CPTR_EL2.{TCPAC,E0POE} are propagated from L1 to L2

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