Re: Intel IOMMU (and IOMMU for Virtualization) performances

From: FUJITA Tomonori
Date: Mon Jun 09 2008 - 05:40:30 EST


On Mon, 09 Jun 2008 10:17:11 +0200
Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> "Grant Grundler" <grundler@xxxxxxxxxx> writes:
> >
> > The historical DMA mapping "failure mode" is a kernel panic. Resizing or
>
> Hasn't been for a long time, except in some extreme cases. All drivers
> are expected to check return values for a long time now.

Agreed, but I think that lots of network drivers still assume that DMA
mapping always succeeds (they don't check return values).

Most of the SCSI drivers were fixed in this regard. Very old HBA
drivers (that are unlikely to be used with an IOMMU) just
crashes. Recent HBA drivers can handle the dma mapping failure (as far
as I know, the only exception is cciss.

Old IOMMU code has "failure mode" but new IOMMU code like VT-d doesn't
crash on the failure. Now drivers need to handle the dma mapping
failure properly.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/