Skip to content

Commit

Permalink
app/vfe-vdpa: add sleep interval in restoring VFs
Browse files Browse the repository at this point in the history
When multiple VFs need to be restored, per-VF restore time will be
longer because of QEMU clean-up and device config takes more time
for one VF. Therefore, add a sleep interval of 4 seconds for one VF
so that downtime for one VF will be stable.

Signed-off-by: Chenbo Xia <chenbox@nvidia.com>
  • Loading branch information
Ch3n60x committed Mar 1, 2024
1 parent 9c4ecf4 commit 2ad4998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/vfe-vdpa/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ virtio_ha_client_dev_restore(void)
ret = -1;
goto err_vf_ctx;
}
sleep(4);
err_vf_ctx:
free(vf_ctx);
}
Expand Down

0 comments on commit 2ad4998

Please sign in to comment.