acrn-hypervisor/hypervisor/common
Shuo A Liu 3cb32bb6e3 hv: make init_vmcs as a event of VCPU
After changing init_vmcs to smp call approach and do it before
launch_vcpu, it could work with noop scheduler. On real sharing
scheudler, it has problem.

   pcpu0                  pcpu1            pcpu1
 vmBvcpu0                vmAvcpu1         vmBvcpu1
                         vmentry
init_vmcs(vmBvcpu1) vmexit->do_init_vmcs
                    corrupt current vmcs
                        vmentry fail
launch_vcpu(vmBvcpu1)

This patch mark a event flag when request vmcs init for specific vcpu. When
it is running and checking pending events, will do init_vmcs firstly.

Tracked-On: #4178
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-12-02 16:20:43 +08:00
..
hv_main.c hv: make init_vmcs as a event of VCPU 2019-12-02 16:20:43 +08:00
hypercall.c hv:refine 'uint64_t' string print format in comm moudle 2019-11-09 11:42:38 +08:00
ptdev.c hv: ptdev: move softirq_dev_entry_list from vm structure to per_cpu region 2019-09-16 09:36:52 +08:00
sched_noop.c hv: sched: decouple scheduler from schedule framework 2019-10-25 13:00:21 +08:00
schedule.c hv: sched: add kick_thread to support notification 2019-10-25 13:00:21 +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:remove redundant memset in some cases 2019-09-24 09:02:05 +08:00
vm_load.c hv:refine 'uint64_t' string print format in comm moudle 2019-11-09 11:42:38 +08:00