acrn-hypervisor/hypervisor/common
Conghui ee2eb2e8e3 hv: sched: fix bug when reboot vm
When a new thread is wakeup and added to runqueue, it will get the
smallest avt (svt) from runqueue to initiate its avt. But when all
threads are blocked, and removed from the runqueue, the svt is 0. The
new thread will get avt=0. avt=0 means very high priority, and can run
for a very long time until it catchup with other thread's avt in
runqueue.

To fix it, adjust the new thread's avt when there is another thread in
runqueue.

Tracked-On: #6888
Signed-off-by: Conghui <conghui.chen@intel.com>
2021-11-25 13:43:44 +08:00
..
delay.c hv/mod_timer: separate delay functions from the timer module 2021-05-18 16:43:28 +08:00
efi_mmap.c HV: fix build issue on RELEASE version 2021-11-17 08:56:36 +08:00
event.c hv: Change sched_event structure to resolve data race in event handling 2021-08-20 08:11:40 +08:00
hv_main.c hv: add priority based scheduler 2021-09-24 09:32:18 +08:00
hypercall.c hv: hypercall: return 0 for empty PX or CX tables 2021-11-18 08:56:23 +08:00
irq.c hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
ptdev.c ACRN: hv: Unify terminology for service vm 2021-11-02 10:00:55 +08:00
sched_bvt.c hv: sched: fix bug when reboot vm 2021-11-25 13:43:44 +08:00
sched_iorr.c hv/mod_timer: refine timer interface 2021-05-18 16:43:28 +08:00
sched_noop.c hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
sched_prio.c hv: add priority based scheduler 2021-09-24 09:32:18 +08:00
schedule.c hv: add priority based scheduler 2021-09-24 09:32:18 +08:00
softirq.c hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
ticks.c hv/mod_timer: split tsc handling code from timer. 2021-05-18 16:43:28 +08:00
timer.c hv/mod_timer: refine timer interface 2021-05-18 16:43:28 +08:00
trusty_hypercall.c ACRN: hv: Unify terminology for user vm 2021-11-02 10:00:55 +08:00
vm_load.c HV: Add elf loader sketch 2021-08-19 20:00:45 +08:00