KVM: arm64: Use __gfn_to_page() when copying MTE tags to/from userspace
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:24:19 +0000 (11:24 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 17:00:50 +0000 (13:00 -0400)
commit570d666c11af0c95eba0a86582ae2cd8689211d0
treed20fb98313a32901a572821f64b3b030edb15fb9
parentf42e289a2095f61755e6ca5fd1370d441bf589d5
KVM: arm64: Use __gfn_to_page() when copying MTE tags to/from userspace

Use __gfn_to_page() instead when copying MTE tags between guest and
userspace.  This will eventually allow removing gfn_to_pfn_prot(),
gfn_to_pfn(), kvm_pfn_to_refcounted_page(), and related APIs.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-78-seanjc@google.com>
arch/arm64/kvm/guest.c