]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Tag shadow S2 entries with guest's leaf S2 level
authorMarc Zyngier <maz@kernel.org>
Fri, 14 Jun 2024 14:45:48 +0000 (15:45 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 08:14:38 +0000 (08:14 +0000)
commitb1a3a94812b95fb8ae410d1ca04a4cc3d61a7503
tree9bedae46bda5479ef316df4531db3b0f2f955dcb
parentd1de1576dc2178efcc5536edb0ea2b1cf022bd3e
KVM: arm64: nv: Tag shadow S2 entries with guest's leaf S2 level

Populate bits [56:55] of the leaf entry with the level provided
by the guest's S2 translation. This will allow us to better scope
the invalidation by remembering the mapping size.

Of course, this assume that the guest will issue an invalidation
with an address that falls into the same leaf. If the guest doesn't,
we'll over-invalidate.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240614144552.2773592-13-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_nested.h
arch/arm64/kvm/mmu.c