@@ -418,7 +418,7 @@ static inline void *kvm_get_hyp_vector(void)
/* This is only called on a !VHE system */
static inline int kvm_map_vectors(void)
{
- phys_addr_t vect_pa = virt_to_phys(__bp_harden_hyp_vecs_start);
+ phys_addr_t vect_pa = __pa_symbol(__bp_harden_hyp_vecs_start);
unsigned long size = __bp_harden_hyp_vecs_end - __bp_harden_hyp_vecs_start;
if (cpus_have_const_cap(ARM64_HARDEN_BRANCH_PREDICTOR)) {
@@ -1494,7 +1494,7 @@ static int init_hyp_mode(void)
}
}
- return 0;
+ err = -EINVAL;
out_err:
teardown_hyp_mode();