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 <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Oliver Upton <[email protected]> Acked-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent d198e26 commit a02395d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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)