KVM: arm64: nv: Invalidate TLBs based on shadow S2 TTL-like information
authorMarc Zyngier <maz@kernel.org>
Fri, 14 Jun 2024 14:45:49 +0000 (15:45 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 08:14:38 +0000 (08:14 +0000)
commit809b2e6013a51352e407c3071219f12ecceed47f
tree9241d4d158b38a1a37088096e7570305597053c8
parentb1a3a94812b95fb8ae410d1ca04a4cc3d61a7503
KVM: arm64: nv: Invalidate TLBs based on shadow S2 TTL-like information

In order to be able to make S2 TLB invalidations more performant on NV,
let's use a scheme derived from the FEAT_TTL extension.

If bits [56:55] in the leaf descriptor translating the address in the
corresponding shadow S2 are non-zero, they indicate a level which can
be used as an invalidation range. This allows further reduction of the
systematic over-invalidation that takes place otherwise.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240614144552.2773592-14-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/nested.c