KVM: arm64: Use lm_alias in nVHE-only VA conversion
authorDavid Brazdil <dbrazdil@google.com>
Tue, 8 Dec 2020 14:24:48 +0000 (14:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Dec 2020 10:48:50 +0000 (10:48 +0000)
commit7a96a0687b80a1870c689418d7b72012c8bdd53d
treea342dae9f239d8e1908e06168272d154169fbd33
parentff367fe473a9857160c17827931375a899076394
KVM: arm64: Use lm_alias in nVHE-only VA conversion

init_hyp_physvirt_offset() computes PA from a kernel VA. Conversion to
kernel linear-map is required first but the code used kvm_ksym_ref() for
this purpose. Under VHE that is a NOP and resulted in a runtime warning.
Replace kvm_ksym_ref with lm_alias.

Reported-by: Qian Cai <qcai@redhat.com>
Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201208142452.87237-3-dbrazdil@google.com
arch/arm64/kvm/va_layout.c