vlapic: kick AP for INIT-SIPI sequence

wakeup AP need INIT-SIPI-SIPI sequence in old time, now we only need
INIT-SIPI.

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Jason Chen CJ 2018-05-15 14:43:53 +08:00 committed by lijinxia
parent 2ea3b49858
commit 953f6b5b1b

View File

@ -1049,7 +1049,11 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic)
/* put target vcpu to INIT state and wait for SIPI */
pause_vcpu(target_vcpu, VCPU_PAUSED);
reset_vcpu(target_vcpu);
target_vcpu->arch_vcpu.nr_sipi = 2;
/* new cpu model only need one SIPI to kick AP run,
* the second SIPI will be ignored as it move out of
* wait-for-SIPI state.
*/
target_vcpu->arch_vcpu.nr_sipi = 1;
return 0;
}