From: Keir Fraser Subject: Re: Re: [Qemu-devel] Recursion in cpu_physical_memory_rw Date: Wed, 15 Nov 2006 07:55:48 +0000 Message-ID: References: <20061115025839.GA22608@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061115025839.GA22608@gondor.apana.org.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Herbert Xu , Paul Brook Cc: Xen Development Mailing List , qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org On 15/11/06 2:58 am, "Herbert Xu" wrote: >> It isn't always system memory. Some DMA controllers deliberately write to >> device FIFOs. There are also several devices which map areas of onboard RAM. >> At minimum you need to make those to use RAM mappings rather than MMIO. > > I'm not suggesting that we change all existing users of cpu_physical_* > to a new interface that only accessed RAM. However, for cases where it > is obvious that only system RAM is intended (e.g., rtl8139), it makes > sense to bypass MMIO handlers. Could we add a recursion counter to the memory-access functions, and bail if it reaches some limit? -- Keir