Reset CPU on INIT IPI
PATCH 1/1 Reset CPU on INIT IPI
INIT IPI should reset CPU. Also non boot CPU should be halted. It will be un-halted by SIPI.
Signed-off-by Gleb Natapov <[email protected]>
hw/apic.c +5 -0
@@ -458,6 +458,11 @@ static void apic_init_ipi(APICState *s) s->initial_count =0 ; s->initial_count_load_time =0 ; s->next_time =0 ; + +cpu_reset (s->cpu_env); + +if (!(s->apicbase &MSR_IA32_APICBASE_BSP )) + s->cpu_env->halted =1 ; }/* send a SIPI message to the CPU to start it */
--
Gleb.
Aurelien Jarno
AppliedQuoted 2 lines · Gleb Natapov
INIT IPI should reset CPU. Also non boot CPU should be halted. It will be un-halted by SIPI.
Applied, thanks.
Quoted 23 lines
Signed-off-by Gleb Natapov <[email protected]>hw/apic.c +5
-1@@ -458,6 +458,11 @@ static void apic_init_ipi(APICState *s) s->initial_count =0 ; s->initial_count_load_time =0 ; s->next_time =0 ; + +cpu_reset (s->cpu_env); + +if (!(s->apicbase &MSR_IA32_APICBASE_BSP )) + s->cpu_env->halted =1 ; }/* send a SIPI message to the CPU to start it */ --Gleb.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net