Skip to content

Commit a02395d

Browse files
jgoulyoupton
authored andcommitted
KVM: arm64: removed unused kern_hyp_va asm macro
The last usage of this macro was removed in: commit 5dc33bd ("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>
1 parent d198e26 commit a02395d

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

arch/arm64/include/asm/kvm_mmu.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,6 @@
5353

5454
#include <asm/alternative.h>
5555

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-
7256
/*
7357
* Convert a hypervisor VA to a PA
7458
* reg: hypervisor address to be converted in place

0 commit comments

Comments
 (0)