acrn-hypervisor/hypervisor/arch/x86/guest
Zide Chen aee9f3c666 hv: reset per cpu sbuf pointers during vcpu reset
When shutting down SOS VM, the shared sbuf is released from guest OS, but
the per cpu sbuf pointers in hypervisor keep inact. This creates a problem
that after SOS is re-launched, hypervisor could write to the shared
buffer that no longer exists.

This patch implements sbuf_reset() and call it from reset_vcpu() to
reset sbuf pointers.

Tracked-On: #2700
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2019-04-19 16:20:34 +08:00
..
assign.c hv: Remove separate interrupt routine for pre-launched VMs 2019-04-04 17:51:36 +08:00
ept.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
guest_memory.c HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
instr_emul.c hv: fix "Else alternative missing in if." 2019-04-03 09:20:55 +08:00
pm.c HV: Minor refinement about RTVM pm MACRO and comments 2019-04-04 00:27:55 +08:00
trusty.c HV: use term of UUID 2019-04-12 13:45:32 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c hv: reset per cpu sbuf pointers during vcpu reset 2019-04-19 16:20:34 +08:00
vcpuid.c hv: enable vMCE from guest CPUID 2019-04-18 09:00:42 +08:00
virq.c hv: vlapic: add TPR below threshold implement 2019-04-19 11:11:54 +08:00
virtual_cr.c hv: vlapic: remove TPR set/get API 2019-03-25 13:31:51 -07:00
vlapic_priv.h
vlapic.c hv: vlapic: add TPR below threshold implement 2019-04-19 11:11:54 +08:00
vm.c hv: Remove need for init_fallback_iommu_domain and fallback_iommu_domain 2019-04-17 11:42:36 +08:00
vmcall.c hv: add new hypercall to fetch platform configurations 2019-04-15 22:14:13 +08:00
vmcs.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
vmexit.c hv: rename io_emul.c to vmx_io.c 2019-04-12 10:09:26 +08:00
vmsr.c hv: enable vMCE from guest CPUID 2019-04-18 09:00:42 +08:00
vmtrr.c hv: vmtrr: hide mtrr if hide_mtrr is true 2019-03-16 17:14:12 +08:00
vmx_asm.S hv: refine guest.h 2019-02-03 13:00:42 +08:00
vmx_io.c hv: rename io_emul.c to vmx_io.c 2019-04-12 10:09:26 +08:00