Received: from eggs.gnu.org ([2001:4830:134:3::10]:34571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Ubv-0001fE-LP for qemu-devel@nongnu.org; Wed, 11 May 2016 09:55:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0Ubr-0008F4-Dc for qemu-devel@nongnu.org; Wed, 11 May 2016 09:55:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Ubr-0008F0-7p for qemu-devel@nongnu.org; Wed, 11 May 2016 09:55:31 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 9BA917F6CF for ; Wed, 11 May 2016 13:55:30 +0000 (UTC) Date: Wed, 11 May 2016 16:55:28 +0300 From: "Michael S. Tsirkin" Message-ID: <20160511165429-mutt-send-email-mst@redhat.com> References: <1462816056-17463-1-git-send-email-marcel@redhat.com> <8737pqfhac.fsf@dusky.pond.sub.org> <20160510183412-mutt-send-email-mst@redhat.com> <573216B9.3060902@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <573216B9.3060902@redhat.com> 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: Paolo Bonzini Cc: Markus Armbruster , Marcel Apfelbaum , qemu-devel@nongnu.org On Tue, May 10, 2016 at 07:13:29PM +0200, Paolo Bonzini wrote: > > > On 10/05/2016 17:36, Michael S. Tsirkin wrote: > >> > Can you explain why requiring the user to specify -device in a sane > >> > order isn't good enough? > > Because it requires knowledge about the hardware. > > For example, how do users know that iommu must come before the devices? > > They don't. > > Could they "know" it by adding an iommu=foo argument to e.g. the PCI > bridge, pointing to the IOMMU device? > > Paolo People don't create the pci host bridge though, it's part of the default machine. -- MST