acrn-hypervisor/hypervisor/common
Tianhua Sun 8478a328a3 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>
2019-02-26 09:23:24 +08:00
..
hv_main.c hv: extend lapic pass-through for DM launched VM 2019-01-28 19:47:33 +08:00
hypercall.c HV: Modularize vtd.c to remove acrn_vm usage 2019-02-06 08:53:46 +08:00
io_req.c HV: return an error code when REQ state mismatch in acrn_insert_request 2019-02-26 09:23:24 +08:00
ptdev.c HV: rename the term of vm0 to sos vm 2019-01-21 18:03:31 +08:00
schedule.c hv: replace improper use of panic with ASSERT 2019-01-31 11:09:39 +08:00
softirq.c hv: remove the theoretic infinite loop 2018-12-05 13:17:38 +08:00
stack_protector.c HV:common:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
trusty_hypercall.c hv:refine coding style for trusty_hypercallc. 2019-02-03 15:06:05 +08:00
vm_load.c HV: e820 refinement 2019-02-02 11:53:37 +08:00