Re: [Xen-devel] [PATCH v2] VT-d: correct dma_msi_set_affinity()

2016-12-15 Thread Andrew Cooper
On 15/12/16 15:53, Jan Beulich wrote: > Commit 83cd2038fe ("VT-d: use msi_compose_msg()) together with > 15aa6c6748 ("amd iommu: use base platform MSI implementation"), > introducing the use of a per-CPU scratch CPU mask, went too far: > dma_msi_set_affinity() may, at least in theory, be called in

[Xen-devel] [PATCH v2] VT-d: correct dma_msi_set_affinity()

2016-12-15 Thread Jan Beulich
Commit 83cd2038fe ("VT-d: use msi_compose_msg()) together with 15aa6c6748 ("amd iommu: use base platform MSI implementation"), introducing the use of a per-CPU scratch CPU mask, went too far: dma_msi_set_affinity() may, at least in theory, be called in interrupt context, and hence the use of that