From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40257 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7mPr-0001Lt-Ka for qemu-devel@nongnu.org; Mon, 18 Oct 2010 05:54:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7mPq-0001tt-H0 for qemu-devel@nongnu.org; Mon, 18 Oct 2010 05:54:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7mPq-0001to-Ad for qemu-devel@nongnu.org; Mon, 18 Oct 2010 05:54:02 -0400 Date: Mon, 18 Oct 2010 11:47:42 +0200 From: "Michael S. Tsirkin" Message-ID: <20101018094742.GA21892@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: [PATCH 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: cam@cs.ualberta.ca, seabios@seabios.org, adnan@khaleel.us, qemu-devel@nongnu.org On Mon, Oct 18, 2010 at 06:34:21PM +0900, Isaku Yamahata wrote: > 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. > > Isaku Yamahata (2): > pci: introduce pci_region to manage pci io/memory/prefmemory regions. > pciinit: use pci_region functions. > > Makefile | 3 +- > src/pci_region.c | 70 +++++++++++++++++++++++++++++++ > src/pciinit.c | 122 ++++++++++++++++++++++++++--------------------------- > src/util.h | 15 +++++++ > 4 files changed, 147 insertions(+), 63 deletions(-) > create mode 100644 src/pci_region.c Could you clarify what do you mean by bar overflow please?