From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhxEu-0008Il-Gk for qemu-devel@nongnu.org; Thu, 30 May 2013 03:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhxEp-0008CN-HT for qemu-devel@nongnu.org; Thu, 30 May 2013 03:25:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhxEp-0008C9-9a for qemu-devel@nongnu.org; Thu, 30 May 2013 03:25:31 -0400 From: Amos Kong Date: Thu, 30 May 2013 15:25:17 +0800 Message-Id: <1369898717-7592-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [QEMU PATCH v2] pci: set firmware name of q35 to pci List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aliguori@us.ibm.com, seabios@seabios.org, kevin@koconnor.net, mst@redhat.com In QEMU, we set the firmware name of pc-i440fx to 'pci', and the typename 'q35-pcihost' is set to the firmware name of q35 by default. The seabios matches pci devices by "/pci/@i0cf8", so q35 device could not be identified, seabios fails to adjust the boot priority of q35 devices. This patch sets firmware name of q35 to 'pci'. Signed-off-by: Michael S. Tsirkin Signed-off-by: Amos Kong --- v2: just set the fw_name, no need to change seabios --- hw/pci-host/q35.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 8467f86..24df6b5 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -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) -- 1.8.1.4