Commit a02395d0 authored by Joey Gouly's avatar Joey Gouly Committed by Oliver Upton

KVM: arm64: removed unused kern_hyp_va asm macro

The last usage of this macro was removed in:
    commit 5dc33bd1 ("KVM: arm64: nVHE: Pass pointers consistently to hyp-init")
Signed-off-by: default avatarJoey Gouly <joey.gouly@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240208105422.3444159-3-joey.gouly@arm.comSigned-off-by: default avatarOliver Upton <oliver.upton@linux.dev>
parent d198e266
...@@ -53,22 +53,6 @@ ...@@ -53,22 +53,6 @@
#include <asm/alternative.h> #include <asm/alternative.h>
/*
* Convert a kernel VA into a HYP VA.
* reg: VA to be converted.
*/
.macro kern_hyp_va reg
#ifndef __KVM_VHE_HYPERVISOR__
alternative_cb ARM64_ALWAYS_SYSTEM, kvm_update_va_mask
and \reg, \reg, #1 /* mask with va_mask */
ror \reg, \reg, #1 /* rotate to the first tag bit */
add \reg, \reg, #0 /* insert the low 12 bits of the tag */
add \reg, \reg, #0, lsl 12 /* insert the top 12 bits of the tag */
ror \reg, \reg, #63 /* rotate back */
alternative_cb_end
#endif
.endm
/* /*
* Convert a hypervisor VA to a PA * Convert a hypervisor VA to a PA
* reg: hypervisor address to be converted in place * reg: hypervisor address to be converted in place
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment