Received: from eggs.gnu.org ([2001:4830:134:3::10]:57525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7zWB-00032B-P0 for qemu-devel@nongnu.org; Fri, 09 Aug 2013 23:07:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7zW4-0003rG-FU for qemu-devel@nongnu.org; Fri, 09 Aug 2013 23:07:03 -0400 Received: from mail-ve0-f170.google.com ([209.85.128.170]:38198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7zW4-0003rB-B2 for qemu-devel@nongnu.org; Fri, 09 Aug 2013 23:06:56 -0400 Received: by mail-ve0-f170.google.com with SMTP id 15so4448245vea.1 for ; Fri, 09 Aug 2013 20:06:55 -0700 (PDT) Date: Fri, 9 Aug 2013 23:06:54 -0400 From: Kevin O'Connor Message-ID: <20130810030654.GA8310@morn.localdomain> References: <20130807145312.GA14308@redhat.com> <52034F73.4040904@redhat.com> <20130808083732.GB26837@redhat.com> <52035D88.6040002@redhat.com> <20130808095226.GB27298@redhat.com> <5203712C.8090202@redhat.com> <20130808141347.GA30200@redhat.com> <5203B1B7.5000102@redhat.com> <20130809041306.GB6869@morn.localdomain> <20130809154918.GA19032@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130809154918.GA19032@redhat.com> Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Paolo Bonzini , seabios@seabios.org, lersek@redhat.com, Gerd Hoffmann , qemu-devel@nongnu.org On Fri, Aug 09, 2013 at 06:49:18PM +0300, Michael S. Tsirkin wrote: > On Fri, Aug 09, 2013 at 12:13:06AM -0400, Kevin O'Connor wrote: > > I don't think SeaBIOS should continue to do the above once the tables > > are moved to QEMU. QEMU has all the info SeaBIOS has, so it can > > generate the tables correctly on its own. > > > > In all practical situations, the PCI window should be at least an > > order of magnatude greater than the sum of the PCI bars in the system. > > If the bars are actually bigger than the window, then things are going > > to fail - the best the firmware can do is try to fail gracefully. I > > don't think it's worth the complexity to design mixed ownership and > > advanced interfaces just so we can fail slightly better. > > > > If this is a real worry, QEMU can sum all the PCI bars and warn the > > user if they don't fit. > > If we make it a rule that PCI is`setup before ACPI tables > are read, then QEMU can do the patching itself when > it detects BIOS reading the tables. QEMU can do the patching regardless of the order of initialization. The PCI bar sizes are static - they have no relationship to the timing of the BIOS PCI initialization. -Kevin