hw/uefi/ovmf-log: add maxsize parameter

Allow limiting the amount of log output sent.  Allow up to 1 MiB.
In case the guest log buffer is larger than 1 MiB limit the output
instead of throwing an error.

Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20251017115006.2696991-4-kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-10-17 13:50:05 +02:00
parent c8aa812031
commit c6c6d85444
3 changed files with 41 additions and 10 deletions

View file

@ -998,8 +998,8 @@ ERST
{
.name = "firmware-log",
.args_type = "",
.params = "",
.args_type = "max-size:o?",
.params = "[max-size]",
.help = "show the firmware (ovmf) debug log",
.cmd = hmp_info_firmware_log,
},