KVM: arm64: Apply hyp relocations at runtime
[linux-2.6-microblaze.git] / arch / arm64 / kernel / smp.c
index 6bc3a36..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))
+       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)
@@ -807,7 +809,6 @@ int arch_show_interrupts(struct seq_file *p, int prec)
        unsigned int cpu, i;
 
        for (i = 0; i < NR_IPI; i++) {
-               unsigned int irq = irq_desc_get_irq(ipi_desc[i]);
                seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i,
                           prec >= 4 ? " " : "");
                for_each_online_cpu(cpu)