acrn-hypervisor/hypervisor/arch/x86/guest
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
..
guest.c hv:fix MISRA-C violations in create_vm 2018-12-20 18:47:57 +08:00
instr_emul.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
instr_emul.h hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
pm.c HV: fix pm code for multi-exits & unsigned const 2018-12-20 21:56:48 +08:00
ucode.c hv: refine coding style for ucode.c 2018-12-19 09:44:42 +08:00
vcpu.c scheduler: make scheduling based on struct sched_object 2018-12-21 10:34:15 +08:00
vcpuid.c hv: coding style: refine set_vcpuid_entries to one exit 2018-12-20 22:07:53 +08:00
vlapic_priv.h hv: self-IPI APIC register in x2APIC mode of guest vLAPIC 2018-11-02 13:48:43 +08:00
vlapic.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vm.c hv:fix MISRA-C violations in create_vm 2018-12-20 18:47:57 +08:00
vmcall.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmsr.c hv: fix enable_msr_interception() function 2018-12-20 18:46:19 +08:00
vmtrr.c hv: refine a few functions to only one exit point 2018-12-19 09:17:30 +08:00