Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HV: return an error code when REQ state mismatch in acrn_insert_request
This issue is triggered when launch fuzzing test. Fuzzing test thread will call destroy_vm(IC_DESTROY_VM) to set the guest vCPU state to VCPU_ZOMBIE then VCPU_INIT and then VCPU_OFFLINE, it will cause post-work can't resume the guest vCPU and can't changes the state of the corresponding I/O request slot to REQ_STATE_FREE. so replace improper use of ASSERT with return error code. Tracked-On: #2606 Signed-off-by: Tianhua Sun <tianhuax.s.sun@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
- Loading branch information