From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH 0/9][RFC] stackable dma_ops for x86 Date: Mon, 22 Sep 2008 19:41:28 -0700 Message-ID: <48D85758.7080303@goop.org> References: <1222107681-8185-1-git-send-email-joerg.roedel@amd.com> <20080922113619.5075e7e4@infradead.org> <20080922183944.GJ24392@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Arjan van de Ven , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, iommu@lists.linux-foundation.org, David Woodhouse , Muli Ben-Yehuda , Amit Shah , Ingo Molnar , FUJITA Tomonori To: Joerg Roedel Return-path: Received: from gw.goop.org ([64.81.55.164]:39553 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbYIWCl1 (ORCPT ); Mon, 22 Sep 2008 22:41:27 -0400 In-Reply-To: <20080922183944.GJ24392@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: Joerg Roedel wrote: > Its implemented using the per-device dma-ops already there. With this > patches there is a list of available dma_ops implementations which are > asked in a particular order if they can handle the device. The first > implementation which returns true is assigned to the device as the > per-device dma_ops structure. > > (Hmm, maybe the name stackable is misleading, is "dma_ops multiplexing" > better?) Is per-device the right level? Wouldn't per-bus make more sense? How does a dma_ops implementation "know" whether it can handle a particular device? (I haven't had a chance to read the patches yet.) J