Paravirt smp.patch
Subsystems (2)
PATCH 3/5 Paravirt smp.patch
Add VMI SMP boot hooks. This is a bit unclean (the #ifdef's), but I wanted a quick and dirty hack to get SMP up and working.
Signed-off-by Zachary Amsden <[email protected]>
===================================================================
arch/i386/kernel/paravirt.c +2 -0
@@ -698,5 +698,7 @@ struct paravirt_ops paravirt_ops = { .irq_enable_sysexit = native_irq_enable_sysexit, .iret = native_iret, + + .startup_ipi_hook = (void *)native_nop, };EXPORT_SYMBOL (paravirt_ops);
===================================================================
arch/i386/kernel/smpboot.c +5 -0
@@ -820,6 +823,11 @@ wakeup_secondary_cpu(int phys_apicid, un num_starts =2 ; else num_starts =0 ; + +#ifdef CONFIG_PARAVIRT + paravirt_ops.startup_ipi_hook (phys_apicid, (unsigned long ) start_secondary, + (unsigned long ) stack_start.esp); +#endif /* * Run STARTUP IPI loop.
===================================================================
include/asm-i386/paravirt.h +2 -0
@@ -148,6 +148,8 @@ struct paravirt_ops/* These two are jmp to, not actually called. */ void (fastcall *irq_enable_sysexit)(void); void (fastcall *iret)(void); + + void (fastcall *startup_ipi_hook)(int phys_apicid, unsigned long start_eip, unsigned long start_esp); };/* Mark a paravirt probe function. */