From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BT57F-0001WB-W9 for qemu-devel@nongnu.org; Wed, 26 May 2004 16:35:10 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BT56h-0001Qd-W5 for qemu-devel@nongnu.org; Wed, 26 May 2004 16:35:08 -0400 Received: from [213.146.130.142] (helo=trantor.org.uk) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BT540-00015T-Rv for qemu-devel@nongnu.org; Wed, 26 May 2004 16:31:54 -0400 Subject: Re: [Qemu-devel] PCI: Memory mapped / ROM resources From: Gianni Tedesco In-Reply-To: <40B4FC37.7080601@bellard.org> References: <1085582014.20025.11.camel@sherbert> <40B4FC37.7080601@bellard.org> Content-Type: text/plain Message-Id: <1085603535.4321.8.camel@sherbert> Mime-Version: 1.0 Date: Wed, 26 May 2004 21:32:16 +0100 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, 2004-05-26 at 21:21, Fabrice Bellard wrote: > Hi, > > Gianni Tedesco wrote: > > I'm writing some qemu PCI devices and i'd like to know if it's possible > > to register memory mapped I/O regions and also I'd like to be able to > > map in a ROM device, but I guess this is missing for the same reason > > memory mapped resources aren't currently supported. Is that to do with > > the qemu CPU/MMU code? > > Memory mapped resources are fully supported. ROM devices are not > supported, but it is very easy to add. Yeah, i figred that just after I hit send my last post. (isnt that always the way). > > Is this going to be implemented any time soon, what are the issues if > > any? I don't mind doing the monkey work to get it implemented, if i'm > > pointed in the right direction. I haven't even looked at how the CPU > > emulation parts work yet. > > Which hardware do you want to add ? I can add ROM devices if it is > really necessary. I'm adding a host PCI proxy layer that works under Linux, ie: make host PCI devices appear within the emulator. Similar to 'pcidev' on bochs, but without a custom kernel module, and some minor performance enhancements. I ought to have a patch ready by tomorrow evening. It's not amazingly urgent really, don't kill yourself over it, I'll probably get around to adding it later myself. PS. I am using mmap() on /proc/pci/bus/XX/YY.Z nodes to map PCI registers, probably there is a nice way to allow the code generator to generate accesses directly on to these vmas? It's probably not that much of a win in any case, but interesting. -- // Gianni Tedesco (gianni at scaramanga dot co dot uk) lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D