Skip to content

Commit 529ccd7

Browse files
zhenggenjren1
authored andcommitted
UEFI: bug fix on redundant waking up APs
Due to redundant waking up APs When rebooting UOS, the crash occurs and fail to reboot UOS. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 1c57adc commit 529ccd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hypervisor/bsp/uefi/uefi.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ void efi_deferred_wakeup_pcpu(int cpu_id)
104104
{
105105
uint32_t timeout;
106106
uint32_t expected_up;
107+
static uint32_t waked_pcpu_bitmap;
108+
109+
if ((1 << cpu_id) & waked_pcpu_bitmap)
110+
return;
111+
112+
waked_pcpu_bitmap |= 1 << cpu_id;
107113

108114
expected_up = up_count + 1;
109115

0 commit comments

Comments
 (0)