]> git.proxmox.com Git - qemu.git/commitdiff
q35: set fw_name
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 30 May 2013 08:35:23 +0000 (11:35 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 12 Jun 2013 20:39:40 +0000 (15:39 -0500)
PCI host bridges need to set fw_name to be discoverable
by bios for boot device selection.

In particular, seabios expects root device to be called
"/pci/@i0cf8", so let's set it up like that for Q35.

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Amos Kong <akong@redhat.com>
(cherry picked from commit 68c0e134a090666246b467deaf9046e573b089f2)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/pci-host/q35.c

index 8467f864506b0a899f0c5ca0ff5fc7cd6ab4c2ca..24df6b55cb256c9f72e0b7ae8787e6724601a0de 100644 (file)
@@ -76,6 +76,7 @@ static void q35_host_class_init(ObjectClass *klass, void *data)
 
     k->init = q35_host_init;
     dc->props = mch_props;
+    dc->fw_name = "pci";
 }
 
 static void q35_host_initfn(Object *obj)