|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] VT-d code cleanup
This patch narrow context caching flush range from the domain-selective
to the device-selective, when unmapping a device.
Signed-off-by: Yu Zhao <yu.zhao@xxxxxxxxx>
diff -r f39673ce7d6e xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c Mon Dec 01 13:45:46 2008 +0000
+++ b/xen/drivers/passthrough/vtd/iommu.c Tue Dec 02 06:27:02 2008 -0500
@@ -1308,7 +1308,9 @@
context_clear_entry(*context);
iommu_flush_cache_entry(context);
- if ( iommu_flush_context_domain(iommu, domain_iommu_domid(domain), 0) )
+ if ( iommu_flush_context_device(iommu, domain_iommu_domid(domain),
+ (((u16)bus) << 8) | devfn,
+ DMA_CCMD_MASK_NOBIT, 0) )
iommu_flush_write_buffer(iommu);
else
iommu_flush_iotlb_dsi(iommu, domain_iommu_domid(domain), 0);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] VT-d code cleanup,
Zhao, Yu <=
|
|
|
|
|