From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Gregor Haas <gregorhaas1997@gmail.com>, qemu-devel@nongnu.org
Cc: berrange@redhat.com, yaoxt.fnst@fujitsu.com
Subject: Re: [PATCH v4] hw/core/loader: allow loading larger ROMs
Date: Fri, 12 Jul 2024 18:34:34 +0200 [thread overview]
Message-ID: <1ac07dde-effd-4e7e-a209-7293a48a6902@linaro.org> (raw)
In-Reply-To: <20240628182706.99525-1-gregorhaas1997@gmail.com>
On 28/6/24 20:27, Gregor Haas wrote:
> The read() syscall is not guaranteed to return all data from a file. The
> default ROM loader implementation currently does not take this into account,
> instead failing if all bytes are not read at once. This change loads the ROM
> using g_file_get_contents() instead, which correctly reads all data using
> multiple calls to read() while also returning the loaded ROM size.
>
> Signed-off-by: Gregor Haas <gregorhaas1997@gmail.com>
> ---
> hw/core/loader.c | 30 +++++-------------------------
> 1 file changed, 5 insertions(+), 25 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
and queued, thanks!
prev parent reply other threads:[~2024-07-12 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 18:27 [PATCH v4] hw/core/loader: allow loading larger ROMs Gregor Haas
2024-06-28 21:09 ` Daniel P. Berrangé
2024-07-08 0:37 ` Xingtao Yao (Fujitsu) via
2024-07-12 16:34 ` Philippe Mathieu-Daudé [this message]
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=1ac07dde-effd-4e7e-a209-7293a48a6902@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=gregorhaas1997@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=yaoxt.fnst@fujitsu.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).