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

xen-devel

[Top] [All Lists]

RE: [Xen-devel] Handling VT-d translation faults

To: "Han, Weidong" <weidong.han@xxxxxxxxx>
Subject: RE: [Xen-devel] Handling VT-d translation faults
From: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Date: Fri, 7 Mar 2008 16:20:16 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2008年3月07日 08:21:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <08DF4D958216244799FC84F3514D70F0012033D0@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <18384.20845.21395.350685@xxxxxxxxxxxxxxxxxx> <08DF4D958216244799FC84F3514D70F0012033D0@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[Weidong Han]
> Espen Skoglund wrote:
>> 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?
>> 
> Pls refer to 3.5 setion of VT-d spec. DMA requests that result in
> remapping faults must be blocked by hardware. The exact method of
> DMA blocking is implementation-specific. Faulting DMA write / read
> requests may be handled in much the same way as hardware handles
> write requests to non-existent memory. So I think our fault handler
> that clears fault queue and prints out warnings is enough.
Yes, I'm aware that faulting DMA remapping transactions are blocked by
the hardware. However, I'm concerned that faulting transactions can
cause malfunctions if not detected by the system. Sure, for read
requests on PCIe the device will notice the error in the completion
status and can handle it apropriately. But how about write requests?
(I don't know if PCIe device will be notified of memory write
failures.) And how about requests from non-PCIe devices?
It may be the case that all DMA translation faults are entirely the
result of device drivers having screwed up and shot themselves in the
foot, and that they should be allowed to repeatedly do so until their
leg falls off. However, I'm not convinced that faulting DMA
translations are always the cause of faulty drivers, in particular if
one starts allowing frontends to more directly talk to the device.
If DMA translation faults can always safely be ignored then I'm happy
to accept that. On the other hand, a device repeatedly raising
translation faults is surely doing something wrong, and bringing it
down might be a good idea.
Anyhow, if all DMA translation faults can be ignored, why then bother
enabling faults in the context entries in the first place?
 eSk
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] MSI and VT-d interrupt remapping , Espen Skoglund
Next by Date: [Xen-devel] [PATCH] Fix EDD pointer in int 13h, fn 48h BIOS call return buffer , Bruce Rogers
Previous by Thread: RE: [Xen-devel] Handling VT-d translation faults , Han, Weidong
Next by Thread: RE: [Xen-devel] Handling VT-d translation faults , Kay, Allen M
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /