acrn-hypervisor/hypervisor/include/common
Jason Chen CJ ff0703dd40 scheduler: make scheduling based on struct sched_object
use struct sched_object as the main interface of scheduling, then
make scheduler as an independent module to vcpu:
- add struct sched_object as one field in struct vcpu
- define sched_object.thread for switch_to thread
- define sched_object.prepare_switch_out/in for prepare_switch before
  switch_to
- move context_switch_out/context_switch_in into vcpu.c as
  vcpu.sched_obj.prepare_switch_out/in
- make default_idle as global idle.thread for idle_thread
- make vcpu_thread as vcpu.sched_obj.thread for each vcpu thread
- simplify switch_to based on sched_object

Tracked-On: #1842
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <edide.dong@intel.com>
2018-12-21 10:34:15 +08:00
..
hypercall.h hv: hypercall: clean up HV_DEBUG usage 2018-11-20 10:01:50 +08:00
irq.h doc: replace return with retval 2018-11-30 14:55:17 +08:00
ptdev.h hv: assign: change ptirq vpin source type from enum to macro 2018-12-20 13:43:47 +08:00
schedule.h scheduler: make scheduling based on struct sched_object 2018-12-21 10:34:15 +08:00
softirq.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00