Received: from eggs.gnu.org ([2001:4830:134:3::10]:47411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBkq-0002vn-4z for qemu-devel@nongnu.org; Mon, 08 Jul 2013 09:45:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwBkn-0008DT-Gm for qemu-devel@nongnu.org; Mon, 08 Jul 2013 09:45:24 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59566 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBkn-0008DC-0w for qemu-devel@nongnu.org; Mon, 08 Jul 2013 09:45:21 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: Date: Mon, 8 Jul 2013 15:45:17 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1372338255-3934-1-git-send-email-peter.maydell@linaro.org> <39E5AB85-E7DD-4B9F-9F6F-F80CA6FCAC11@suse.de> <83A07262-ED9A-4E5A-BC11-5B357F5B4996@suse.de> Subject: Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , patches@linaro.org, qemu-devel@nongnu.org, David Gibson , kvmarm@lists.cs.columbia.edu, KONRAD Frederic On 08.07.2013, at 15:23, Peter Maydell wrote: > On 8 July 2013 14:16, Alexander Graf wrote: >>=20 >> On 08.07.2013, at 15:08, Peter Maydell wrote: >>=20 >>> On 8 July 2013 13:59, Alexander Graf wrote: >>>> On 08.07.2013, at 14:57, Alexander Graf wrote: >>>>> On 27.06.2013, at 15:04, Peter Maydell wrote: >>>>>> The basic idea is that the board instantiates some transports, >>>>>=20 >>>>> I really dislike that idea. Couldn't you also create a new >>>>> bus for your vexpress platform and add a virtio-mmio-vexpress >>>>> device that automatically allocates an interrupt from the main >>>>> PIC on instantiation? That way you could create transports >>>>> using -device. >>>=20 >>> This doesn't seem to gain anything except that the user has >>> to use -device twice rather than once. >>=20 >> Yes, it does. You can have other devices than just virtio ones >> on those IRQ lines. Assigned devices for example. >=20 > Now I'm completely confused. Why would assigned devices > have anything to do with this? Can you explain in more > detail, because I don't really see what you're suggesting? The only missing link we have to create any device using -device on the = command line is the IRQ line enumeration. If we can allocate IRQ lines = automatically, we can put any command line given -device onto our main = system bus that is non-pci, non-isa. So if we want to ever support VFIO for platform devices, the user will = want to pass -device vfio-ahci,foo=3Dbar on the command line to assign = an AHCI device. The only infrastructure blocker we have for that today = is the IRQ allocation. Maybe we could even try to be as smart as putting = the MMIO regions into guest address space intelligently automatically. So if we need all that logic anyway, I don't think it's a good idea to = go into the wrong direction with virtio-mmio which has the exact same = requirements. >=20 >>> As far as I know there's no way to find out at board >>> construction how many virtio devices you might want. >>=20 >> Hence you shouldn't create them :). >=20 > You've got to create them sometime... Yes, when the user says he wants them. Alex