mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-18 08:11:07 +00:00
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:
parent
2ea3b49858
commit
953f6b5b1b
@ -1049,7 +1049,11 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic)
|
|||||||
/* put target vcpu to INIT state and wait for SIPI */
|
/* put target vcpu to INIT state and wait for SIPI */
|
||||||
pause_vcpu(target_vcpu, VCPU_PAUSED);
|
pause_vcpu(target_vcpu, VCPU_PAUSED);
|
||||||
reset_vcpu(target_vcpu);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user