x86/sev: Use SEV-SNP AP creation to start secondary CPUs
[sfrench/cifs-2.6.git] / arch / x86 / kernel / smpboot.c
index 2ef14772dc047d433e54e97a030026a69f6439df..85d7b1c5eb7075652ec74fce5505ea6534a0e89e 100644 (file)
@@ -82,6 +82,7 @@
 #include <asm/spec-ctrl.h>
 #include <asm/hw_irq.h>
 #include <asm/stackprotector.h>
+#include <asm/sev.h>
 
 /* representing HT siblings of each logical CPU */
 DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
@@ -1430,6 +1431,8 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
        smp_quirk_init_udelay();
 
        speculative_store_bypass_ht_init();
+
+       snp_set_wakeup_secondary_cpu();
 }
 
 void arch_thaw_secondary_cpus_begin(void)