thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
9ae3a8
From 9bcd11daf18c189b908a752e0a617a564b6b0ca7 Mon Sep 17 00:00:00 2001
9ae3a8
From: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Date: Thu, 16 Jan 2014 14:28:15 -0500
9ae3a8
Subject: [PATCH 11/14] pci: fix pci bridge fw path
9ae3a8
9ae3a8
Message-id: <1389882495-30964-2-git-send-email-kraxel@redhat.com>
9ae3a8
Patchwork-id: 56747
9ae3a8
O-Subject: [RHEL-7 qemu-kvm PATCH 1/1] pci: fix pci bridge fw path
9ae3a8
Bugzilla: 1034518
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Bandan Das <bsd@redhat.com>
9ae3a8
9ae3a8
qemu uses "pci" as name for pci bridges in the firmware device path.
9ae3a8
seabios expects "pci-bridge".  Result is that bootorder is broken for
9ae3a8
devices behind pci bridges.
9ae3a8
9ae3a8
Some googling suggests that "pci-bridge" is the correct one.  At least
9ae3a8
PPC-based Apple machines are using this.  See question "How do I boot
9ae3a8
from a device attached to a PCI card" here:
9ae3a8
	http://www.netbsd.org/ports/macppc/faq.html
9ae3a8
9ae3a8
So lets change qemu to use "pci-bridge" too.
9ae3a8
9ae3a8
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
9ae3a8
(cherry picked from commit 4c41425d2e79f267b2236da31abedb866777d92f)
9ae3a8
---
9ae3a8
 hw/pci/pci.c | 2 +-
9ae3a8
 1 file changed, 1 insertion(+), 1 deletion(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/pci/pci.c | 2 +-
9ae3a8
 1 file changed, 1 insertion(+), 1 deletion(-)
9ae3a8
9ae3a8
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
9ae3a8
index 598d288..d166ab0 100644
9ae3a8
--- a/hw/pci/pci.c
9ae3a8
+++ b/hw/pci/pci.c
9ae3a8
@@ -1308,7 +1308,7 @@ static const pci_class_desc pci_class_descriptions[] =
9ae3a8
     { 0x0601, "ISA bridge", "isa"},
9ae3a8
     { 0x0602, "EISA bridge", "eisa"},
9ae3a8
     { 0x0603, "MC bridge", "mca"},
9ae3a8
-    { 0x0604, "PCI bridge", "pci"},
9ae3a8
+    { 0x0604, "PCI bridge", "pci-bridge"},
9ae3a8
     { 0x0605, "PCMCIA bridge", "pcmcia"},
9ae3a8
     { 0x0606, "NUBUS bridge", "nubus"},
9ae3a8
     { 0x0607, "CARDBUS bridge", "cardbus"},
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8