On Mon, Sep 22, 2008 at 08:21:18PM +0200, Joerg Roedel wrote:
> Signed-off-by: Joerg Roedel <[EMAIL PROTECTED]>
> ---
>  arch/x86/kernel/pci-calgary_64.c |   21 +++++++++++----------
>  1 files changed, 11 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/x86/kernel/pci-calgary_64.c 
> b/arch/x86/kernel/pci-calgary_64.c
> index fe7695e..e2f2f60 100644
> --- a/arch/x86/kernel/pci-calgary_64.c
> +++ b/arch/x86/kernel/pci-calgary_64.c
> @@ -525,6 +525,15 @@ static void calgary_free_coherent(struct device *dev, 
> size_t size,
>       free_pages((unsigned long)vaddr, get_order(size));
>  }
>  
> +static int calgary_device_supported(struct device *dev)
> +{
> +     struct iommu_table *tbl;
> +
> +     tbl = find_iommu_table(dev);
> +
> +     return translation_enabled(tbl);
> +}
> +

Whole patchset and this patch in particular looks very good. Will ack
after I get a chance to test it.

Cheers,
Muli
-- 
The First Workshop on I/O Virtualization (WIOV '08)
Dec 2008, San Diego, CA, http://www.usenix.org/wiov08/
                     and
SYSTOR 2009---The Israeli Experimental Systems Conference
http://www.haifa.il.ibm.com/conferences/systor2009/
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to