Received: from [140.186.70.92] (port=58558 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PF8pT-0001fA-WF for qemu-devel@nongnu.org; Sun, 07 Nov 2010 12:14:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PF8pS-0003Qd-Pj for qemu-devel@nongnu.org; Sun, 07 Nov 2010 12:14:55 -0500 Received: from mail-qw0-f45.google.com ([209.85.216.45]:51321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PF8pS-0003QC-NW for qemu-devel@nongnu.org; Sun, 07 Nov 2010 12:14:54 -0500 Received: by qwf6 with SMTP id 6so4093073qwf.4 for ; Sun, 07 Nov 2010 09:14:53 -0800 (PST) Date: Sun, 7 Nov 2010 12:14:49 -0500 From: Kevin O'Connor Message-ID: <20101107171449.GA13302@morn.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [SeaBIOS] [PATCH v3 0/2] pciinit: fix overflow when bar allocation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: mst@redhat.com, seabios@seabios.org, adnan@khaleel.us, cam@cs.ualberta.ca, qemu-devel@nongnu.org On Thu, Oct 28, 2010 at 03:54:34PM +0900, Isaku Yamahata wrote: > Changes v2 -> v3: > - use [first, last] instead of [start, end) > > Changes v1 -> v2: > - add comment. > > Patch description: > This patch set fixes PCI bar allocation when bar overflow occured. > I checked if pmm_alloc facility can be used, but it doesn't suit for > pci bar allocation. So I resulted in new API, pci_region which > encapsulates region allocation and overflow checks. > The first patch introduces pci_region, and the second patch fixes > the overflow case with pci_region. Looks okay to me. If there are no further comments, I'll commit. BTW, as a minor nit - I'd prefer to put function descriptions in the .c file next to the code instead of in the .h file - no need to resend the patch though. -Kevin