acrn-hypervisor/hypervisor/arch/x86/guest
Shuo A Liu f85106d1ed hv: Do not reset vcpu thread's stack when reset_vcpu
vcpu thread's stack shouldn't follow reset_vcpu to reset.
There is also a bug here:
while vcpu B thread set vcpu->running to false, other vcpu A thread
will treat the vcpu B is paused while it has not been switch out
completely, then reset_vcpu will reset the vcpu B thread's stack and
corrupt its running context.

This patch will remove the vcpu thread's stack reset from reset_vcpu.
With the change, we need do init_vmcs between vcpu startup address be
settled and scheduled in. And switch_to_idle() is not needed anymore
as S3 thread's stack will not be reset.

Tracked-On: #3813
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2019-10-23 12:47:08 +08:00
..
assign.c hv: pci: update "union pci_bdf" 2019-09-25 13:45:39 +08:00
ept.c hv: ept: mask EPT leaf entry bit 52 to bit 63 in gpa2hpa 2019-07-03 09:39:41 +08:00
guest_memory.c hv: cleanup vmcs.h 2019-08-22 14:13:15 +08:00
hyperv.c hv: support reference time enlightenment 2019-10-22 10:09:16 +08:00
instr_emul.c hv: fix Violations touched ACRN Coding Guidelines 2019-08-15 09:47:11 +08:00
pm.c hv:Wrap some APIs related with guest pm 2019-10-21 10:13:02 +08:00
trusty.c hv:move down structures run_context and ext_context 2019-09-16 14:51:36 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c hv: Do not reset vcpu thread's stack when reset_vcpu 2019-10-23 12:47:08 +08:00
vcpuid.c hv: support minimum set of TLFS 2019-10-22 10:09:16 +08:00
virq.c hv:change function parameter for invept 2019-09-05 16:32:30 +08:00
virtual_cr.c hv: vcr: check guest cr3 before loading pdptrs 2019-08-16 11:43:17 +08:00
vlapic_priv.h hv: add ops to vlapic structure 2019-07-19 16:47:06 +08:00
vlapic.c hv: Do not reset vcpu thread's stack when reset_vcpu 2019-10-23 12:47:08 +08:00
vm_reset.c hv:remove some unnecessary includes 2019-10-15 14:40:39 +08:00
vm.c hv: Do not reset vcpu thread's stack when reset_vcpu 2019-10-23 12:47:08 +08:00
vmcall.c hv: make hypercall HC_CREATE_VCPU empty 2019-09-24 11:58:45 +08:00
vmcs.c hv: Do not reset vcpu thread's stack when reset_vcpu 2019-10-23 12:47:08 +08:00
vmexit.c hv: refine handler to 'rdpmc' vmexit 2019-07-24 15:05:46 +08:00
vmsr.c hv: support reference time enlightenment 2019-10-22 10:09:16 +08:00
vmtrr.c hv: ept: unify EPT API name to verb-object style 2019-06-14 14:40:25 +08:00
vmx_asm.S hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
vmx_io.c HV: rename 'type' in struct io_request 2019-05-06 18:25:20 +08:00