acrn-hypervisor/hypervisor/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
..
hv_main.c scheduler: make scheduling based on struct sched_object 2018-12-21 10:34:15 +08:00
hypercall.c hv:refine prepare_vm0 api 2018-12-19 09:16:37 +08:00
io_request.c hv:clean io_request.c misra violations 2018-12-20 09:10:02 +08:00
ptdev.c hv: ptdev: fix MISRAC violations 2018-12-20 09:08:57 +08:00
schedule.c scheduler: make scheduling based on struct sched_object 2018-12-21 10:34:15 +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: coding style: refine initialize_trusty to one exit 2018-12-20 21:53:51 +08:00
vm_load.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00