acrn-hypervisor/hypervisor/debug
Kaige Fu 9af38e16e5 HV: Add log info when setup hvlog share buf
We have two sbuf for hvlog: one is allocated by hv for "early hvlog" and
the other one is allocated by SOS. Once SOS allocate the later one, the
hv allocated sbufs would be released after the contents being copied, we
call it sbuf switch.

And there is a trick here to guarantee that the switch of a certain per_cpu
sbuf is being done on exactly the certain physical CPU, that is doing the
switch at the first print after SOS allocated and setup its sbuf.

Because there are few logmsg within our current code, so will wait a bit long
for the next print. For ordinary case, it should be ok. However, for the
BTM(Boot Time Measurement) case, we need the content of "early hvlog" for
boot time calculation and it is not ok. So, we print those prints to force
the sbuf switch.

Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
2018-05-30 14:49:09 +08:00
..
console.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
dump.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
logmsg.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
printf.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
sbuf.c HV: Add log info when setup hvlog share buf 2018-05-30 14:49:09 +08:00
serial_internal.h hv: refine atomic_load/store_xxx name 2018-05-18 10:52:31 +08:00
serial.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
shell_internal.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
shell_internal.h hv: Add reboot shell command 2018-05-18 16:38:40 +08:00
shell_public.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
uart16550.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
uart16550.h initial import 2018-05-11 14:44:28 +08:00
vuart.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00