mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv: decouple IO completion polling from idle thread
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>
This commit is contained in:
@@ -296,15 +296,6 @@ int32_t acrn_insert_request_wait(struct acrn_vcpu *vcpu, const struct io_request
|
||||
*/
|
||||
void reset_vm_ioreqs(struct acrn_vm *vm);
|
||||
|
||||
/**
|
||||
* @brief Handle completed ioreq if any one pending
|
||||
*
|
||||
* @param pcpu_id The physical cpu id of vcpu whose IO request to be checked
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
void handle_complete_ioreq(uint16_t pcpu_id);
|
||||
|
||||
/**
|
||||
* @brief Get the state of VHM request
|
||||
*
|
||||
|
Reference in New Issue
Block a user