Received: from [140.186.70.92] (port=38229 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P81HL-0005kl-9c for qemu-devel@nongnu.org; Mon, 18 Oct 2010 21:46:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P81EX-0004fS-Ii for qemu-devel@nongnu.org; Mon, 18 Oct 2010 21:43:22 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:55404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P81EX-0004eL-A0 for qemu-devel@nongnu.org; Mon, 18 Oct 2010 21:43:21 -0400 Date: Tue, 19 Oct 2010 10:43:17 +0900 From: Isaku Yamahata Message-ID: <20101019014317.GA21701@valinux.co.jp> References: <712ef3fe0235a61f870b46fff1cdbd282551e3b7.1287394119.git.yamahata@valinux.co.jp> <20101018095508.GB21892@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101018095508.GB21892@redhat.com> Subject: [Qemu-devel] Re: [SeaBIOS] [PATCH 1/2] pci: introduce pci_region to manage pci io/memory/prefmemory regions. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: adnan@khaleel.us, cam@cs.ualberta.ca, seabios@seabios.org, qemu-devel@nongnu.org On Mon, Oct 18, 2010 at 11:55:08AM +0200, Michael S. Tsirkin wrote: > > +static u32 pci_region_alloc_align(struct pci_region *r, u32 size, u32 align) > > +{ > > + if (r->cur_end == PCI_REGION_DISABLED) { > > + return 0; > > + } > > So is special value PCI_REGION_DISABLED or cur_end? cur_end is in special state, and PCI_REGION_DISABLED was chosen such that cur_end can't be PCI_REGION_DISABLED in normal case. -- yamahata