KVM: arm64: Do not transfer page refcount for THP adjustment
authorVincent Donnefort <vdonnefort@google.com>
Thu, 28 Sep 2023 17:32:03 +0000 (18:32 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 30 Sep 2023 17:17:45 +0000 (17:17 +0000)
commitc04bf723ccd639250fa680a0fb4e1ac15bb84c3b
tree5715b340d9151a37ed08603c73bc04f2070b9b5b
parent909b583f81b5bb5a398d4580543f59b908a86ccc
KVM: arm64: Do not transfer page refcount for THP adjustment

GUP affects a refcount common to all pages forming the THP. There is
therefore no need to move the refcount from a tail to the head page.
Under the hood it decrements and increments the same counter.

Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230928173205.2826598-2-vdonnefort@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/mmu.c