qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Check rom_load_all() return value.
Date: Mon, 14 Dec 2009 08:39:30 -0600	[thread overview]
Message-ID: <4B264E22.6000503@codemonkey.ws> (raw)
In-Reply-To: <1260788938-20864-1-git-send-email-kraxel@redhat.com>

Gerd Hoffmann wrote:
> ... otherwise we'll continue without the bios loaded in case the
> option roms don't fit.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  vl.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index c0d98f5..1682808 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -6031,7 +6031,10 @@ int main(int argc, char **argv, char **envp)
>  
>      qdev_machine_creation_done();
>  
> -    rom_load_all();
> +    if (rom_load_all() != 0) {
> +        fprintf(stderr, "rom loading failed\n");
> +        exit(1);
> +    }
>   

Failing to load option roms shouldn't be treated as a critical failure.  
The BIOS has dedicated space so no amount of option roms should prevent 
the BIOS from loading.

So I think we may need to tweak rom_load_all() a bit to be more 
intelligent about handling this.

Regards,

Anthony Liguori

      reply	other threads:[~2009-12-14 14:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 11:08 [Qemu-devel] [PATCH] Check rom_load_all() return value Gerd Hoffmann
2009-12-14 14:39 ` Anthony Liguori [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=4B264E22.6000503@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).