acrn-hypervisor/hypervisor/include/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
..
console.h hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
dbg_cmd.h hv:cleanup console.h 2019-02-27 11:12:48 +08:00
dump.h hv: clean up function definitions in dump.h 2018-11-28 14:57:49 +08:00
logmsg.h hv: send IPI instead of irq injection to notify vcpu with lapic pt 2019-01-28 19:47:33 +08:00
npk_log.h hv: clean up function definitions in npk_log.h 2018-11-28 14:57:49 +08:00
profiling_internal.h HV: use term of UUID 2019-04-12 13:45:32 +08:00
profiling.h profiling: split profiling_vmexit_handler into two functions 2018-12-14 08:54:30 +08:00
sbuf.h hv: reset per cpu sbuf pointers during vcpu reset 2019-04-19 16:20:34 +08:00
shell.h hv:cleanup console.h 2019-02-27 11:12:48 +08:00
trace.h hv: clean up function definitions in trace.h 2018-11-28 14:57:49 +08:00
uart16550.h hv:cleanup console.h 2019-02-27 11:12:48 +08:00
vuart.h hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00