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] [patch 1/2] Fix flush for SRTP and SIRTP set

To: 'Keir Fraser' <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [patch 1/2] Fix flush for SRTP and SIRTP set
From: "Han, Weidong" <weidong.han@xxxxxxxxx>
Date: Fri, 12 Jun 2009 13:15:37 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: 'xen-devel' <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Jun 2009 22:19:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnrHNH8Wk+DurgMRiCc8ouqvLq87w==
Thread-topic: [Xen-devel] [patch 1/2] Fix flush for SRTP and SIRTP set
SRTP (Set Root Table Pointer) operation must be set before enable or re-enable 
DMA remapping. And after set it, software must globally invalidate the 
context-cache and then globally invalidate the IOTLB. This is required to 
ensure hardware uses only the remapping structures referenced by the new 
root-table pointer, and not stale cached entries. Similarly, SIRTP (Set 
Interrupt Remap Table Pointer) operation must be set before enable or re-enable 
Interrupt remapping, and after set it, software must globally invalidate the 
interrupt entry cache. 
        
This patch adds global context and iotlb flush after set root entry, and 
globally flushs interrupt entry cache before enabling Interrupt remapping. And 
remove the iommu_flush_all in iommu_resume becuase it becomes redundant after 
adds flush for SRTP in init_vtd_hw.

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>

Attachment: flush.patch
Description: flush.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch 1/2] Fix flush for SRTP and SIRTP set, Han, Weidong <=