From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLNhv-0000x3-7M for qemu-devel@nongnu.org; Thu, 17 Dec 2009 16:16:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLNhq-0000rN-6z for qemu-devel@nongnu.org; Thu, 17 Dec 2009 16:16:22 -0500 Received: from [199.232.76.173] (port=58909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLNhp-0000r3-Ta for qemu-devel@nongnu.org; Thu, 17 Dec 2009 16:16:17 -0500 Received: from mail.gmx.net ([213.165.64.20]:58867) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NLNhm-0006A9-Js for qemu-devel@nongnu.org; Thu, 17 Dec 2009 16:16:17 -0500 Message-ID: From: "Sebastian Herbszt" References: <4B264AF1.6060802@codemonkey.ws> <7FB8DD1225E54176BCAF5523B6AEA89B@FSCPC> <4B26931E.4000101@codemonkey.ws> <20091214194210.GB6150@redhat.com> <4B269933.3010906@codemonkey.ws> <20091214202019.GF6150@redhat.com> <4B26A0DE.5000304@redhat.com> <20091214203428.GI6150@redhat.com> <20091214203603.GJ6150@redhat.com> <4B26A3B2.2030006@codemonkey.ws> <20091214205141.GC6398@redhat.com> <4B26F678.4010603@codemonkey.ws> <4B27541F.9020603@redhat.com> <4B278C34.6080401@codemonkey.ws> <4B28002D.6060502@codemonkey.ws> <2637964BA0394371A45A0970D489E5EA@FSCPC> <4B2806F1.3070504@codemonkey.ws> In-Reply-To: <4B2806F1.3070504@codemonkey.ws> Subject: Re: Proper support for PCI-based option rom loading (was Re: [Qemu-devel] Re: qdev property bug?) Date: Thu, 17 Dec 2009 22:14:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "Michael S. Tsirkin" , glommer@redhat.com, qemu-devel@nongnu.org, Alexander Graf , Kevin O'Connor , Gerd Hoffmann Anthony Liguori wrote: > Sebastian Herbszt wrote: >> What about isapc? Or (pci)pc with isa card? > > I'm not sure how the bios enumerates isa option roms on bare metal. Let's give this a shot: A typical isa expansion card seems to have a jumper to select a I/O port, IRQ and boot rom location, e.g. 280, 10, cc00. In its default configuration the PMC directs access to 0xc0000-0xdffff to pci and doesn't respond to those. Those accesses are forwarded to isa. Now they can be decoded by the expansion card. I assume isa option roms just appear to be there and the bios only needs to scan for them. This seems to be exactly what qemu does right now with "-option-rom". - Sebastian