acrn-hypervisor/hypervisor/common
Conghui Chen d531e84d32 hv: fix deadloop in sleep_thread_sync
As we only set BLOCKED status in context switch_out, which means, only
running thread can be changed to BLOCKED, but runnable thread can not.
This lead to the deadloop in sleep_thread_sync.

To solve the problem, in sleep_thread, we set the status to BLOCKED
directly when the original thread status is RUNNABLE.

Tracked-On: #5115
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
2020-07-30 16:54:19 +08:00
..
event.c hv: reset vcpu events in reset_vcpu 2020-02-23 16:27:57 +08:00
hv_main.c hv:add per-vm lock for vm & vcpu state change 2020-07-20 11:22:17 +08:00
hypercall.c hv: vmcall: check vm id in dispatch_sos_hypercall 2020-07-23 20:13:20 +08:00
ptdev.c hv:unify spin_lock initialization 2020-07-02 09:40:29 +08:00
sched_bvt.c hv: list: rename list_entry to container_of 2020-03-31 10:57:47 +08:00
sched_iorr.c hv: sched_iorr: add some interfaces implementation of sched_iorr 2019-12-11 09:31:39 +08:00
sched_noop.c hv: sched: decouple scheduler from schedule framework 2019-10-25 13:00:21 +08:00
schedule.c hv: fix deadloop in sleep_thread_sync 2020-07-30 16:54:19 +08:00
softirq.c softirq: move softirq from hv_main to interrupt context 2019-07-22 09:55:06 +08:00
trusty_hypercall.c hv: rename the ACRN_DBG_XXX 2020-01-14 10:21:23 +08:00
vm_load.c gpa2hva: add INVAVLID_HPA return value check 2020-05-06 11:29:30 +08:00