mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
HV: life_mngr: add sync delay for WaaG lifecycle manager
The lifecycle manager in Service VM checks sync message every 5 seconds, so need add 5 seconds to sync delay for WaaG lifecycle manager to avoid to unnecessary sync resending. Tracked-On: #6652 Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
This commit is contained in:
parent
a67b114c73
commit
fe061c0930
@ -179,6 +179,12 @@ int main()
|
||||
snprintf(buf, sizeof(buf), SYNC_FMT, WIN_VM_NAME);
|
||||
enable_uart_resend(buf, MIN_RESEND_TIME);
|
||||
send_message_by_uart(hCom2, buf, strlen(buf));
|
||||
/**
|
||||
* The lifecycle manager in Service VM checks sync message every 5 seconds
|
||||
* during listening phase, delay 5 seconds to wait Service VM to receive the
|
||||
* sync message, then start to read ack message from Service VM.
|
||||
*/
|
||||
Sleep(5U * MS_TO_SECOND);
|
||||
do {
|
||||
do {
|
||||
retry_times = RETRY_RECV_TIMES;
|
||||
|
Loading…
Reference in New Issue
Block a user