[SeaBIOS] [SeaBIOS PATCH v2] boot: fix fw_dev_path pattern to match q35

Amos Kong akong at redhat.com
Thu May 30 04:51:53 CEST 2013

We match pci domain by "/pci at i0cf8" in SeaBIOS, but fw_dev_path prefix
of q35 is "/q35-pcihost at i0cf8". It causes boot priority of q35 devices
could not be changed by bootindex parameter in QEMU.

I have a patch to change typename of q35 to 'pci-q35', this patch fixes
the pattern to match both pc-i440fx and q35.

Signed-off-by: Amos Kong <akong at redhat.com>
v2: use exact pattern
 src/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/boot.c b/src/boot.c
index c308602..300ecc3 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -97,7 +97,7 @@ find_prio(const char *glob)
     return -1;
-#define FW_PCI_DOMAIN "/pci at i0cf8"
+#define FW_PCI_DOMAIN "/pci*@i0cf8"
 static char *
 build_pci_path(char *buf, int max, const char *devname, struct pci_device *pci)

More information about the SeaBIOS mailing list