Re: [PATCH] iommu/amd: Add allocated domain to global list earlier

2019-04-26 Thread Joerg Roedel
Hi Tom, On Mon, Apr 15, 2019 at 07:05:56PM +0100, Tom Murphy wrote: > dma_ops_domain_free() expects domain to be in a global list. > Arguably, could be called before protection_domain_init(). This could in theory create new races because a not fully initialized domain becomes visible in the globa

[PATCH] iommu/amd: Add allocated domain to global list earlier

2019-04-15 Thread Tom Murphy via iommu
dma_ops_domain_free() expects domain to be in a global list. Arguably, could be called before protection_domain_init(). Signed-off-by: Dmitry Safonov Signed-off-by: Tom Murphy --- drivers/iommu/amd_iommu.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/io