RE: [PATCH] iommu/vt-d: Use cmpxchg16b to update posted format IRTE atomically

2015-10-15 Thread Wu, Feng
; Subject: Re: [PATCH] iommu/vt-d: Use cmpxchg16b to update posted format > IRTE atomically > > On Thu, Oct 15, 2015 at 10:19:11AM +0800, Feng Wu wrote: > > If IRTE is in posted format, the 'pda' field goes across the 64-bit > > boundary, we need use cmpxchg16

Re: [PATCH] iommu/vt-d: Use cmpxchg16b to update posted format IRTE atomically

2015-10-15 Thread Joerg Roedel
On Thu, Oct 15, 2015 at 10:19:11AM +0800, Feng Wu wrote: > 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. > > Sig

[PATCH] iommu/vt-d: Use cmpxchg16b to update posted format IRTE atomically

2015-10-14 Thread Feng Wu
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 --- drivers/iommu/intel_irq_remapping.c | 33 ++