mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-08 18:25:05 +00:00
IO completion polling will access vcpu and vm structs. If doing it in idle thread, there might be some race issues between vm destroying and idle thread. They are running on different cores. Got suggestion from Fengwei, decouple the polling action from idle thread and just do it in vcpu thread, then we can guarantee idle thread in really idle status. Tracked-On: #1821 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>