# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1214908855 -3600
# Node ID 0b7f7c564c83fafeecc5a08aeeda2d69dcfd73ae
# Parent 0c5183e764d8dfc3d916b4f216b3b6c484caccc9
VT-d: Do CLFLUSH after updating IRTE entries
Like root, context and DMA remap page table, interrupt remap table
also needs CLFLUSH after any update.
Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
---
xen/drivers/passthrough/vtd/intremap.c | 2 ++
1 files changed, 2 insertions(+)
diff -r 0c5183e764d8 -r 0b7f7c564c83 xen/drivers/passthrough/vtd/intremap.c
--- a/xen/drivers/passthrough/vtd/intremap.c Tue Jul 01 11:40:07 2008 +0100
+++ b/xen/drivers/passthrough/vtd/intremap.c Tue Jul 01 11:40:55 2008 +0100
@@ -153,6 +153,7 @@ static void ioapic_rte_to_remap_entry(st
}
memcpy(iremap_entry, &new_ire, sizeof(struct iremap_entry));
+ iommu_flush_cache_entry(iremap_entry);
iommu_flush_iec_index(iommu, 0, index);
invalidate_sync(iommu);
@@ -378,6 +379,7 @@ static void msi_msg_to_remap_entry(
remap_rte->data = 0;
memcpy(iremap_entry, &new_ire, sizeof(struct iremap_entry));
+ iommu_flush_cache_entry(iremap_entry);
iommu_flush_iec_index(iommu, 0, index);
invalidate_sync(iommu);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|