From 953f6b5b1b925455f6fd3c69378d050b1e1c465f Mon Sep 17 00:00:00 2001 From: Jason Chen CJ Date: Tue, 15 May 2018 14:43:53 +0800 Subject: [PATCH] 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 Acked-by: Xu, Anthony Acked-by: Eddie Dong --- hypervisor/arch/x86/guest/vlapic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/guest/vlapic.c b/hypervisor/arch/x86/guest/vlapic.c index 159873eb1..e2239e277 100644 --- a/hypervisor/arch/x86/guest/vlapic.c +++ b/hypervisor/arch/x86/guest/vlapic.c @@ -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; }