WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Handling VT-d translation faults

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Handling VT-d translation faults
From: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Date: Thu, 6 Mar 2008 20:17:49 +0000
Delivery-date: Thu, 06 Mar 2008 12:18:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I've been looking through the VT-d code trying to get a better grip on
what's going on internally, and I've got some questions regarding VT-d
translation faults.

 o Currently all VT-d faults are handled in the iommu_page_fault()
   handler.  This is kind of a misnomer since the fault handler must
   also be able to handle interrupt remapping faults and faults
   related to lookups for the context entry.  I assume that this
   naming is just temporary?

 o The fault handler doesn't actually do much right now.  It just
   clears out the fault queue and prints out warnings.  I can only
   suspect that some more code to handle faults more gracefully are
   somewhere in the pipeline.

The question is what the plans for dealing with DMA translation faults
are (i.e., due to accessing unmapped memory or writing to read-only
mappings).  At the very least the associated driver should have the
possibility to somehow be notified about failed transactions due to
translation faults.  Is something like this being planned for?

        eSk


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>