From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azpHX-0002y8-GS for qemu-devel@nongnu.org; Mon, 09 May 2016 13:47:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azpHV-00047F-Da for qemu-devel@nongnu.org; Mon, 09 May 2016 13:47:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azpHV-000470-7r for qemu-devel@nongnu.org; Mon, 09 May 2016 13:47:45 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C6BAC6314D for ; Mon, 9 May 2016 17:47:44 +0000 (UTC) From: Marcel Apfelbaum Date: Mon, 9 May 2016 20:47:36 +0300 Message-Id: <1462816056-17463-4-git-send-email-marcel@redhat.com> In-Reply-To: <1462816056-17463-1-git-send-email-marcel@redhat.com> References: <1462816056-17463-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH RFC 3/3] hw/pci-bridge: add the corresponding creation priority flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, pbonzini@redhat.com, mst@redhat.com Signed-off-by: Marcel Apfelbaum --- hw/pci-bridge/pci_bridge_dev.c | 1 + hw/pci-bridge/pci_expander_bridge.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c index 7b582e9..eb552c4 100644 --- a/hw/pci-bridge/pci_bridge_dev.c +++ b/hw/pci-bridge/pci_bridge_dev.c @@ -210,6 +210,7 @@ static void pci_bridge_dev_class_init(ObjectClass *klass, void *data) dc->reset = qdev_pci_bridge_dev_reset; dc->props = pci_bridge_dev_properties; dc->vmsd = &pci_bridge_dev_vmstate; + dc->creation_priority = DEVICE_PRIO_BRIDGE; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); hc->plug = pci_bridge_dev_hotplug_cb; hc->unplug_request = pci_bridge_dev_hot_unplug_request_cb; diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expander_bridge.c index 5e7e546..e012eab 100644 --- a/hw/pci-bridge/pci_expander_bridge.c +++ b/hw/pci-bridge/pci_expander_bridge.c @@ -302,6 +302,7 @@ static void pxb_dev_class_init(ObjectClass *klass, void *data) dc->desc = "PCI Expander Bridge"; dc->props = pxb_dev_properties; + dc->creation_priority = DEVICE_PRIO_HOSTBRIDGE; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } @@ -335,6 +336,7 @@ static void pxb_pcie_dev_class_init(ObjectClass *klass, void *data) dc->desc = "PCI Express Expander Bridge"; dc->props = pxb_dev_properties; + dc->creation_priority = DEVICE_PRIO_HOSTBRIDGE; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); } -- 2.4.3