All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Marcel Apfelbaum <marcel.a@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] pci: fix pci bridge fw path
Date: Sun, 8 Dec 2013 13:31:38 +0200	[thread overview]
Message-ID: <20131208113138.GC6841@redhat.com> (raw)
In-Reply-To: <1386329080-28836-1-git-send-email-kraxel@redhat.com>

On Fri, Dec 06, 2013 at 12:24:40PM +0100, Gerd Hoffmann wrote:
> qemu uses "pci" as name for pci bridges in the firmware device path.
> seabios expects "pci-bridge".  Result is that bootorder is broken for
> devices behind pci bridges.
> 
> Some googling suggests that "pci-bridge" is the correct one.  At least
> PPC-based Apple machines are using this.  See question "How do I boot
> from a device attached to a PCI card" here:
> 	http://www.netbsd.org/ports/macppc/faq.html
> 
> So lets change qemu to use "pci-bridge" too.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Sounds good but this needs to be enabled for
new machine types only - otherwise guest will read
corrupted data since bootindex is in FW CFG.

Alternatively, extend
04920fc0faa4760f9c4fc0e73b992b768099be70
to work for all fw cfg file entries.

I think the whole boot index thing needs
to be reworked: we also have the long-standing feature request to allow
booting from a device added by hot add.

> ---
>  hw/pci/pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/pci/pci.c b/hw/pci/pci.c
> index 49eca95..82c11ec 100644
> --- a/hw/pci/pci.c
> +++ b/hw/pci/pci.c
> @@ -1330,7 +1330,7 @@ static const pci_class_desc pci_class_descriptions[] =
>      { 0x0601, "ISA bridge", "isa"},
>      { 0x0602, "EISA bridge", "eisa"},
>      { 0x0603, "MC bridge", "mca"},
> -    { 0x0604, "PCI bridge", "pci"},
> +    { 0x0604, "PCI bridge", "pci-bridge"},
>      { 0x0605, "PCMCIA bridge", "pcmcia"},
>      { 0x0606, "NUBUS bridge", "nubus"},
>      { 0x0607, "CARDBUS bridge", "cardbus"},
> -- 
> 1.8.3.1

  reply	other threads:[~2013-12-08 11:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-06 11:24 [Qemu-devel] [PATCH] pci: fix pci bridge fw path Gerd Hoffmann
2013-12-08 11:31 ` Michael S. Tsirkin [this message]
2013-12-09  7:14   ` Gerd Hoffmann
2013-12-09  9:24     ` Marcel Apfelbaum
2013-12-09 10:00       ` Gerd Hoffmann
2013-12-09 10:22     ` Michael S. Tsirkin
2013-12-09 10:23 ` Michael S. Tsirkin

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=20131208113138.GC6841@redhat.com \
    --to=mst@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=marcel.a@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 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.