All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@qumranet.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 1/6] Use IO port for qemu<->guest BIOS communication.
Date: Sun, 31 Aug 2008 17:18:19 +0300	[thread overview]
Message-ID: <20080831141819.GH6192@minantech.com> (raw)
In-Reply-To: <f43fc5580808310639i37f99c50v50fedccc83846426@mail.gmail.com>

With the fix below this patch series works for me.

On Sun, Aug 31, 2008 at 04:39:34PM +0300, Blue Swirl wrote:
> +static uint8_t fw_cfg_read(FWCfgState *s)
> +{
> +    int arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL);
> +    FWCfgEntry *e = &s->entries[arch][s->cur_entry & ~FW_CFG_ARCH_LOCAL];
> +    uint8_t ret;
> +
> +    if (s->cur_entry != FW_CFG_INVALID || !e->data || s->cur_offset >= e->len)
This should be "=="     ^^^

> +        ret = 0;
> +    else
> +        ret = e->data[s->cur_offset++];
> +
> +    FW_CFG_DPRINTF("read %d\n", ret);
> +
> +    return ret;
> +}
> +


--
			Gleb.

  reply	other threads:[~2008-08-31 14:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28 16:52 [Qemu-devel] [PATCH v3 0/6] Add UUID command-line option Gleb Natapov
2008-08-28 16:52 ` [Qemu-devel] [PATCH v3 1/6] Use IO port for qemu<->guest BIOS communication Gleb Natapov
2008-08-28 17:57   ` Blue Swirl
2008-08-28 18:04   ` Blue Swirl
2008-08-29 19:00     ` Gleb Natapov
2008-08-29 19:26       ` Blue Swirl
2008-08-30 19:57       ` Blue Swirl
2008-08-31 11:12         ` Gleb Natapov
2008-08-31 11:40           ` Blue Swirl
2008-08-31 12:45           ` Blue Swirl
2008-08-31 13:02             ` Gleb Natapov
2008-08-31 13:39               ` Blue Swirl
2008-08-31 14:18                 ` Gleb Natapov [this message]
2008-08-31 18:41                   ` Blue Swirl
2008-08-31 19:24                     ` Gleb Natapov
2008-08-28 16:52 ` [Qemu-devel] [PATCH v3 2/6] Add -uuid command line option Gleb Natapov
2008-08-28 16:52 ` [Qemu-devel] [PATCH v3 3/6] Add "info uuid" command to monitor Gleb Natapov
2008-08-28 16:52 ` [Qemu-devel] [PATCH v3 4/6] Use libuuid if available Gleb Natapov
2008-08-28 16:52 ` [Qemu-devel] [PATCH v3 5/6] Add UUID to firmware configuration info Gleb Natapov
2008-08-28 16:53 ` [Qemu-devel] [PATCH v3 6/6] Pass cpu speed into SM BIOS Gleb Natapov

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=20080831141819.GH6192@minantech.com \
    --to=gleb@qumranet.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.