acrn-hypervisor/hypervisor/debug
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
..
Makefile hv: enhance Makefile to compile debug/release into 2 libraries 2018-11-23 08:47:34 +08:00
console.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
dbg_cmd.c hv: fix "Else alternative missing in if." 2019-04-03 09:20:55 +08:00
dump.c hv: Add host CR2 to exception dump 2019-04-18 09:01:02 +08:00
hypercall.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
logmsg.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
npk_log.c hv: fix "Else alternative missing in if." 2019-04-03 09:20:55 +08:00
printf.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
profiling.c HV: use term of UUID 2019-04-12 13:45:32 +08:00
sbuf.c hv: reset per cpu sbuf pointers during vcpu reset 2019-04-19 16:20:34 +08:00
shell.c HV: show VM UUID in shell 2019-04-12 13:45:32 +08:00
shell_priv.h HV: show VM UUID in shell 2019-04-12 13:45:32 +08:00
string.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
trace.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
uart16550.c hv: minor fixes to a few calls to strncpy_s() 2019-03-20 08:55:42 +08:00
vuart.c hv: fix the vm pointer check before use 2019-04-02 16:29:51 +08:00