Received: from eggs.gnu.org ([2001:4830:134:3::10]:47611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b032B-0000b1-D6 for qemu-devel@nongnu.org; Tue, 10 May 2016 04:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0326-0001oT-8o for qemu-devel@nongnu.org; Tue, 10 May 2016 04:28:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0326-0001ne-2i for qemu-devel@nongnu.org; Tue, 10 May 2016 04:28:46 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 7BE6183F47 for ; Tue, 10 May 2016 08:28:45 +0000 (UTC) From: Markus Armbruster References: <1462816056-17463-1-git-send-email-marcel@redhat.com> Date: Tue, 10 May 2016 10:28:43 +0200 In-Reply-To: <1462816056-17463-1-git-send-email-marcel@redhat.com> (Marcel Apfelbaum's message of "Mon, 9 May 2016 20:47:33 +0300") Message-ID: <8737pqfhac.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, mst@redhat.com Marcel Apfelbaum writes: > This series aims to allow more devices to be used with '-device' > by sorting the devices based on a predefined creation order flag > before creating them. > > Devices like IOMMU need to be created before others, so they can leverage > the DeviceCreationPriority flag introduced by the first patch to DeviceClass. > > The second patch sorts the devices by their DeviceCreationPriority > before creating them. > > Finally, the last patch demonstrates how it can be used to ensure > the creation of host-bridges before the pci-bridges and pci-bridges before > the others. > > I preferred to combine all the priorities into a single enum > to better manage the creation order. > > This is an RFC because I only wanted to know if it seems like the right way to go. > Comments are appreciated, Can you explain why requiring the user to specify -device in a sane order isn't good enough?