Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: arm64: removed unused kern_hyp_va asm macro

The last usage of this macro was removed in:
commit 5dc33bd199ca ("KVM: arm64: nVHE: Pass pointers consistently to hyp-init")

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240208105422.3444159-3-joey.gouly@arm.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>

authored by

Joey Gouly and committed by
Oliver Upton
a02395d0 d198e266

-16
-16
arch/arm64/include/asm/kvm_mmu.h
··· 54 54 #include <asm/alternative.h> 55 55 56 56 /* 57 - * Convert a kernel VA into a HYP VA. 58 - * reg: VA to be converted. 59 - */ 60 - .macro kern_hyp_va reg 61 - #ifndef __KVM_VHE_HYPERVISOR__ 62 - alternative_cb ARM64_ALWAYS_SYSTEM, kvm_update_va_mask 63 - and \reg, \reg, #1 /* mask with va_mask */ 64 - ror \reg, \reg, #1 /* rotate to the first tag bit */ 65 - add \reg, \reg, #0 /* insert the low 12 bits of the tag */ 66 - add \reg, \reg, #0, lsl 12 /* insert the top 12 bits of the tag */ 67 - ror \reg, \reg, #63 /* rotate back */ 68 - alternative_cb_end 69 - #endif 70 - .endm 71 - 72 - /* 73 57 * Convert a hypervisor VA to a PA 74 58 * reg: hypervisor address to be converted in place 75 59 * tmp: temporary register