From: Amit Shah Subject: Re: [PATCH 5/8] KVM: PVDMA: Update dma_alloc_coherent to make it paravirt-aware Date: Mon, 12 Nov 2007 17:29:33 +0530 Message-ID: <200711121729.33458.amit.shah@qumranet.com> References: <20071112105637.GH3299@rhun.haifa.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Muli Ben-Yehuda Return-path: In-Reply-To: <20071112105637.GH3299-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Monday 12 November 2007 16:26:37 Muli Ben-Yehuda wrote: > On Wed, Nov 07, 2007 at 04:21:06PM +0200, Amit Shah wrote: > > Of all the DMA calls, only dma_alloc_coherent might not actually > > call dma_ops->alloc_coherent. We make sure that gets called if the > > device that's being worked on is a PV device > > I always thougt that's a mess... the reason it's done this way is that > Andi Kleen preferred it for some reason at the time. How about trying > to fix it cleanly so that dma_alloc_coherent always gets called rather > than adding a hack to work around a hack? It will require auditing all > of the different x86 dma-ops but I can help with that. Hmm, nice to know it's like that just because of "not necessary now". Fixing this along with stacking dma_ops and making 32-bit also dma_ops-ready will greatly simplify things. > > Cheers, > Muli ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/