On 10/10/25 09:10, Gerd Hoffmann wrote:
Starting with the edk2-stable202508 tag OVMF (and ArmVirt too) have
optional support for logging to a memory buffer. There is guest side
support -- for example in linux kernels v6.17+ -- to read that buffer.
But that might not helpful if your guest stops booting early enough that
guest tooling can not be used yet. So host side support to read that
log buffer is a useful thing to have.
This patch implements both qmp and hmp monitor commands to read the
firmware log.
Signed-off-by: Gerd Hoffmann <[email protected]>
---
include/monitor/hmp.h | 1 +
hw/uefi/ovmf-log.c | 265 +++++++++++++++++++++++++++++++++++++
tests/qtest/qmp-cmd-test.c | 2 +
hmp-commands-info.hx | 14 ++
hw/uefi/meson.build | 2 +-
qapi/machine.json | 23 ++++
6 files changed, 306 insertions(+), 1 deletion(-)
create mode 100644 hw/uefi/ovmf-log.c
At a glance, why not "info ovmf-log" and "query-ovmf-log"?