From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mw9J6-00071k-02 for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:50:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mw9J1-0006zZ-Ia for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:50:27 -0400 Received: from [199.232.76.173] (port=45215 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mw9J1-0006zM-7Z for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:50:23 -0400 Received: from mx20.gnu.org ([199.232.41.8]:7236) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mw9J0-0003q6-Nb for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:50:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mw9J0-0007nr-0Y for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:50:22 -0400 Date: Fri, 9 Oct 2009 08:48:09 +0200 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCHv2] seabios: enable io/memory unconditionally Message-ID: <20091009064809.GB9942@redhat.com> References: <20091008155346.GB13660@redhat.com> <20091009022953.GA26395@morn.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091009022953.GA26395@morn.localdomain> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: Anthony Liguori , avi@redhat.com, kvm-devel , "qemu-devel@nongnu.org" On Thu, Oct 08, 2009 at 10:29:53PM -0400, Kevin O'Connor wrote: > Hi Michael, > > On Thu, Oct 08, 2009 at 05:53:46PM +0200, Michael S. Tsirkin wrote: > > VGA adapters need to claim memory and i/o > > transactions even if they do not have any > > i/o or memory bars. E.g. PCI spec, page 297, > > gives an example of such a device: > > > > Programming interface 0000 0000b > > VGA-compatible controller. Memory > > addresses 0A 0000h through 0B > > FFFFh. I/O addresses 3B0h to 3BBh > > and 3C0h to 3DFh and all aliases of > > these addresses. > > > > While we could check for these devices and special-case them, it is > > easier to fix this by enabling i/o and memory space unconditionally: > > devices that do not support it will just ignore this setting. > > This doesn't sound correct to me - I would think the vga option rom > should enable the memory and io bars. You can do this, but in real systems, BIOS enables memory on all devices. Just take a real system and do lspci -v on a device that has no driver loaded. And note how seabios does this *already* - it just doesn't enable I/O for VGA device unless it has I/O bar, which is wrong. > I don't have enough knowledge > to say for sure though - can someone else with knowledge in this area > confirm this approach? > > -Kevin