iommu/vt-d: Use cmpxchg16b to update posted format IRTE atomically
authorFeng Wu <feng.wu@intel.com>
Thu, 15 Oct 2015 02:19:11 +0000 (10:19 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 15 Oct 2015 14:21:55 +0000 (16:21 +0200)
commit344cb4e0b6f3a0dbef0643eacb4946338eb228c0
tree2141ccf81ee92feef6f2073009df3523607cd847
parentdfddb969edf021f21a45fc6fd019db4f99d12308
iommu/vt-d: Use cmpxchg16b to update posted format IRTE atomically

If IRTE is in posted format, the 'pda' field goes across the 64-bit
boundary, we need use cmpxchg16b to atomically update it. We only
expose posted-interrupt when X86_FEATURE_CX16 is supported and use
to update it atomically.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel_irq_remapping.c