From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Gerd Hoffmann" <kraxel@redhat.com>,
qemu-devel@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Yanan Wang" <wangyanan55@huawei.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Fabiano Rosas" <farosas@suse.de>,
"Eric Blake" <eblake@redhat.com>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Dr. David Alan Gilbert" <dave@treblig.org>,
"Laurent Vivier" <lvivier@redhat.com>,
"Zhao Liu" <zhao1.liu@intel.com>
Subject: Re: [PATCH v4 1/2] hw/uefi: add "info firmware-log" + "query-firmware-log" monitor commands
Date: Wed, 15 Oct 2025 09:17:11 +0100 [thread overview]
Message-ID: <aO9Yh2CQGKGxFD9p@redhat.com> (raw)
In-Reply-To: <87sefkfw84.fsf@pond.sub.org>
On Wed, Oct 15, 2025 at 09:41:15AM +0200, Markus Armbruster wrote:
> Gerd Hoffmann <kraxel@redhat.com> writes:
>
> > Hi,
> >
> >> > +static void handle_ovmf_log_range(GString *out,
> >> > + dma_addr_t start,
> >> > + dma_addr_t end,
> >> > + Error **errp)
> >> > +{
> >> > + g_autofree char *buf = NULL;
> >>
> >> Left-over variable - unfortunately gcc doens't warn about unused
> >> vars when g_autofree is present :-(
> >
> > Fixed.
> >
> >> > +{ 'struct': 'FirmwareLog',
> >> > + 'data': { '*version': 'str',
> >> > + '*log': 'str' } }
> >>
> >> Having version be optional makes sense, but what is the semantics for
> >> 'log' being optional. If the log is unavailable, wouldn't we be better
> >> raising an error ?
> >
> > That is what the current implementation actually does. I change it.
>
> Drawback: when some Firmware provides version, but not log, the command
> can't give us the version, because it fails. Do we care?
This command is literally called 'query-firmware-log' though. From this
I consider the log to be the important deliverable. If not available then
I would expect an error from such a named command. If we want to provide
non-log related info about the firmware when no log is available, then we
should rename the command to "query-firmware-info" instead.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2025-10-15 8:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 10:49 [PATCH v4 0/2] hw/uefi: add support for receiving the firmware log via monitor Gerd Hoffmann
2025-10-13 10:49 ` [PATCH v4 1/2] hw/uefi: add "info firmware-log" + "query-firmware-log" monitor commands Gerd Hoffmann
2025-10-14 8:56 ` Daniel P. Berrangé
2025-10-15 6:33 ` Gerd Hoffmann
2025-10-15 7:41 ` Markus Armbruster
2025-10-15 8:08 ` Gerd Hoffmann
2025-10-15 8:17 ` Daniel P. Berrangé [this message]
2025-10-14 12:03 ` Markus Armbruster
2025-10-15 6:36 ` Gerd Hoffmann
2025-10-15 7:21 ` Markus Armbruster
2025-10-13 10:49 ` [PATCH v4 2/2] hw/uefi/ovmf-log: add maxsize parameter Gerd Hoffmann
2025-10-14 8:57 ` Daniel P. Berrangé
2025-10-14 12:48 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aO9Yh2CQGKGxFD9p@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=dave@treblig.org \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=farosas@suse.de \
--cc=kraxel@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=wangyanan55@huawei.com \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).