KVM: arm64: Apply hyp relocations at runtime
[linux-2.6-microblaze.git] / arch / arm64 / kernel / smp.c
index ad00f99..357590b 100644 (file)
@@ -434,8 +434,10 @@ static void __init hyp_mode_check(void)
                           "CPU: CPUs started in inconsistent modes");
        else
                pr_info("CPU: All CPU(s) started at EL1\n");
-       if (IS_ENABLED(CONFIG_KVM) && !is_kernel_in_hyp_mode())
+       if (IS_ENABLED(CONFIG_KVM) && !is_kernel_in_hyp_mode()) {
                kvm_compute_layout();
+               kvm_apply_hyp_relocations();
+       }
 }
 
 void __init smp_cpus_done(unsigned int max_cpus)