From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32EO-0001y8-Ql for qemu-devel@nongnu.org; Thu, 01 Mar 2012 04:23:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S32E0-0006S0-Dv for qemu-devel@nongnu.org; Thu, 01 Mar 2012 04:23:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32E0-0006R6-5e for qemu-devel@nongnu.org; Thu, 01 Mar 2012 04:23:00 -0500 Message-ID: <4F4F3FBE.7030202@redhat.com> Date: Thu, 01 Mar 2012 10:22:06 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1330581043.29508.61.camel@nzhmlwks0057.ad.endace.com> <1330585052.29508.114.camel@nzhmlwks0057.ad.endace.com> In-Reply-To: <1330585052.29508.114.camel@nzhmlwks0057.ad.endace.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH 4/6] Mapping of BARs and Bridge regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alexey.korolev@endace.com Cc: sfd@endace.com, seabios@seabios.org, mst@redhat.com, qemu-devel@nongnu.org, avi@redhat.com On 03/01/12 07:57, Alexey Korolev wrote: > In pci_bios_map_regions() we try to reserve memory for > all entries of root bus regions. > If pci_bios_init_root_regions() fails - e.g no enough space, we create two new pci_regions: > r64pref, r64mem and migrate all entries which are 64bit capable to them. Migration process > is very simple: delete the entry from one list add to another. It isn't that simple. There are a bunch of constrains. First the bridge must be 64bit capable. All bridges up to the root bus in case of nested bridges. Second all other prefmem bars of devices behind the bridge must be 64bit capable too. Again, in case of nested bridges this applies to all devices behind the toplevel bridge. cheers, Gerd