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 1BT6OJ-0001dN-NS for qemu-devel@nongnu.org; Wed, 26 May 2004 17:56:51 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BT6JU-0000aZ-14 for qemu-devel@nongnu.org; Wed, 26 May 2004 17:52:25 -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 1BT6JT-0000a7-IF for qemu-devel@nongnu.org; Wed, 26 May 2004 17:51:51 -0400 Subject: Re: [Qemu-devel] PCI: Memory mapped / ROM resources From: Gianni Tedesco In-Reply-To: <200405270045.22891.hetz@witch.dyndns.org> References: <1085582014.20025.11.camel@sherbert> <40B4FC37.7080601@bellard.org> <1085603535.4321.8.camel@sherbert> <200405270045.22891.hetz@witch.dyndns.org> Content-Type: text/plain Message-Id: <1085608337.4321.14.camel@sherbert> Mime-Version: 1.0 Date: Wed, 26 May 2004 22:52:18 +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: hetz@witch.dyndns.org Cc: qemu-devel@nongnu.org On Wed, 2004-05-26 at 22:45, Hetz Ben Hamo wrote: > Let me see if I get this straight: > > With your patches, will I be able to use a real PCI card within the emulator? > for example: Would I be able to use a PCI graphics card which is not being > used by XFree under Linux? Yes basically. However there are some technical limitations which mean that for most PCI devices this will be unusable as it is impossible (well, very difficult) to emulate PCI DMA. Also, I don't think VGA cards will work correctly under this scheme without hacking qemu's BIOS code. > Also, if you plan to use real PCI cards under guest OS, you might need to > create some "locking" mechanism so that the host OS cannot use them, nor > another instance of QEMU which will run in parallel (and I see already few > people running few QEMU instances at once ;) Yeah, I think we can tell if the kernel is using the device already buy checking if a driver is associated with it. Excluding multiple copies of qemu can probably be done with an advisory file lock. I'll look in to this. I was basically ignoring these issues up till now as it is quite a 'hacker tool' for the moment :) -- // 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