Doc: Update hld-trace-log.rst

1) removed the earlylog section as we have remove
     the earlylog support from acrn hypervisor.
  2) updated SOS ACRN Log Module section as the size
     and base address of acrn log buffer are configured
     by kernel option now instead of hardcoding.

Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
Kaige Fu 2019-10-14 17:18:11 +08:00 committed by deb-intel
parent 96b4a6dbff
commit 8a2a56e87d
2 changed files with 4 additions and 14 deletions

View File

@ -182,24 +182,14 @@ of a single log message is 320 bytes. Log messages with a length between
messages with length larger then 320 will be truncated. messages with length larger then 320 will be truncated.
For security, SOS allocates sbuf in its memory range and assigns it to For security, SOS allocates sbuf in its memory range and assigns it to
the hypervisor. To handle log messages before SOS boots, sbuf for each the hypervisor.
physical cpu will be allocated in acrn hypervisor memory range for any
early log entries. Once sbuf in the SOS memory range is allocated and
assigned to hypervisor via hypercall, the Hypervisor logmsg will switch
to use SOS allocated sbuf, early logs will be copied, and early sbuf in
hypervisor memory range will be freed.
SOS ACRN Log Module SOS ACRN Log Module
=================== ===================
To enable retrieving log messages from a crash, 4MB of memory from ACRNLog module provides one kernel option `hvlog=$size@$pbase` to configure
0x6DE00000 is reserved for acrn log. This space is further divided into the size and base address of hypervisor log buffer. This space will be further divided
two each ranges, one for current run and one for last previous run: into two buffers with equal size: last log buffer and current log buffer.
.. figure:: images/log-image59.png
:align: center
ACRN Log crash log/current log buffers
On SOS boot, SOS acrnlog module is responsible to: On SOS boot, SOS acrnlog module is responsible to:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB