Skip to content

Commit 953f6b5

Browse files
JasonChenCJlijinxia
authored andcommitted
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>
1 parent 2ea3b49 commit 953f6b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hypervisor/arch/x86/guest/vlapic.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,11 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic)
10491049
/* put target vcpu to INIT state and wait for SIPI */
10501050
pause_vcpu(target_vcpu, VCPU_PAUSED);
10511051
reset_vcpu(target_vcpu);
1052-
target_vcpu->arch_vcpu.nr_sipi = 2;
1052+
/* new cpu model only need one SIPI to kick AP run,
1053+
* the second SIPI will be ignored as it move out of
1054+
* wait-for-SIPI state.
1055+
*/
1056+
target_vcpu->arch_vcpu.nr_sipi = 1;
10531057

10541058
return 0;
10551059
}

0 commit comments

Comments
 (0)