q35: set fw_name

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>
This commit is contained in:
Michael S. Tsirkin 2013-05-30 11:35:23 +03:00
parent 87d23f78aa
commit 68c0e134a0

View File

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