Skip to content

Commit 2da3ffa

Browse files
AndrewScullMarc Zyngier
authored andcommitted
arm64: kvm: Remove kern_hyp_va from get_vcpu_ptr
get_vcpu_ptr is an assembly accessor for the percpu value kvm_host_data->host_ctxt.__hyp_running_vcpu. kern_hyp_va only applies to nVHE however __hyp_running_vcpu is always assigned a pointer that has already had kern_hyp_va applied in __kvm_vcpu_run_nvhe. kern_hyp_va is currently idempotent as it just masks and inserts the tag, but this could change in future and the second application is unnecessary. Signed-off-by: Andrew Scull <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: James Morse <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a47dee5 commit 2da3ffa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arm64/include/asm/kvm_asm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ extern char __smccc_workaround_1_smc[__SMCCC_WORKAROUND_1_SMC_SZ];
143143
.macro get_vcpu_ptr vcpu, ctxt
144144
get_host_ctxt \ctxt, \vcpu
145145
ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
146-
kern_hyp_va \vcpu
147146
.endm
148147

149148
#endif

0 commit comments

Comments
 (0)