From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mw9A6-0001LG-Tq for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:41:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mw99z-0001Hp-Bf for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:41:07 -0400 Received: from [199.232.76.173] (port=57952 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mw99z-0001Hm-8k for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:41:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19578) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mw99y-0002f4-H1 for qemu-devel@nongnu.org; Fri, 09 Oct 2009 02:41:02 -0400 Message-ID: <4ACEDAFA.8070202@redhat.com> Date: Fri, 09 Oct 2009 08:40:58 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCHv2] seabios: enable io/memory unconditionally References: <20091008155346.GB13660@redhat.com> <20091009022953.GA26395@morn.localdomain> In-Reply-To: <20091009022953.GA26395@morn.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: Anthony Liguori , "qemu-devel@nongnu.org" , kvm-devel , "Michael S. Tsirkin" On 10/09/2009 04:29 AM, 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. I don't have enough knowledge > to say for sure though - can someone else with knowledge in this area > confirm this approach? > > The vga option rom is often itself in a BAR, so it cannot enable memory. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.