[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [patch 0/2] VT-d: code cleanup


  • To: 'Keir Fraser' <keir.fraser@xxxxxxxxxxxxx>
  • From: "Han, Weidong" <weidong.han@xxxxxxxxx>
  • Date: Fri, 12 Jun 2009 13:15:30 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: 'xen-devel' <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 11 Jun 2009 22:17:31 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcnrHM4Ae9IiqGYDR4+4TATqpCvikg==
  • Thread-topic: [Xen-devel] [patch 0/2] VT-d: code cleanup

The patchset does cleanup on flush and lock. 

Patch 1: 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.

Patch 2: Clean up lock for VT-d register writes
        It should get lock to write VT-d registers. Currently there are some 
register writes without lock. This patch complements register_lock for those 
writes.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.