From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNKSG-0008UQ-Vz for qemu-devel@nongnu.org; Mon, 16 Feb 2015 07:07:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNKSD-0000RN-7n for qemu-devel@nongnu.org; Mon, 16 Feb 2015 07:07:12 -0500 Message-ID: <54E1DD51.5070207@redhat.com> Date: Mon, 16 Feb 2015 14:06:41 +0200 From: Marcel Apfelbaum MIME-Version: 1.0 References: <1424080457-13752-1-git-send-email-marcel@redhat.com> <1424080457-13752-5-git-send-email-marcel@redhat.com> In-Reply-To: <1424080457-13752-5-git-send-email-marcel@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC V2 04/17] hw/acpi: add _CRS method for extra root busses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: seabios@seabios.org, kraxel@redhat.com, mst@redhat.com, quintela@redhat.com, agraf@suse.de, alex.williamson@redhat.com, kevin@koconnor.net, qemu-ppc@nongnu.org, hare@suse.de, imammedo@redhat.com, amit.shah@redhat.com, pbonzini@redhat.com, leon.alrae@imgtec.com, aurelien@aurel32.net, rth@twiddle.net On 02/16/2015 11:54 AM, Marcel Apfelbaum wrote: > Save the IO/mem/bus numbers ranges assigned to the extra root busses > to be removed from the root bus 0 range. > > Signed-off-by: Marcel Apfelbaum > --- > hw/i386/acpi-build.c | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 146 insertions(+) > > diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c > index ee1a50a..0822a20 100644 > --- a/hw/i386/acpi-build.c > +++ b/hw/i386/acpi-build.c > @@ -719,6 +719,145 @@ static AcpiAml build_prt(void) > return method; > } > > +typedef struct PciRangeEntry { > + QLIST_ENTRY(PciRangeEntry) entry; > + int64_t base; > + int64_t limit; > +} PciRangeEntry; > + > +typedef QLIST_HEAD(PciRangeQ, PciRangeEntry) PciRangeQ; > + > +static void pci_range_insert(PciRangeQ *list, int64_t base, int64_t limit) { > + PciRangeEntry *entry, *next, *e; > + > + if (!base) { > + return; > + } > + > + if (limit - base + 1 < 0x1000) > + limit = base + 0x1000 - 1; The above hack is not needed anymore, it was needed before: - [PATCH v4 0/3] pc: acpi-build: make linker & RSDP tables dynamic as a temp solution. I will remove it from the next version. Thanks, Marcel [...]