From: Jiang Liu Date: Mon, 6 Jan 2014 06:18:10 +0000 (+0800) Subject: iommu/vt-d: fix a race window in allocating domain ID for virtual machines X-Git-Tag: v3.14-rc1~50^2^3~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18d99165d3ebe5e365de57bcc673901d754c7142;p=pandora-kernel.git iommu/vt-d: fix a race window in allocating domain ID for virtual machines Function intel_iommu_domain_init() may be concurrently called by upper layer without serialization, so use atomic_t to protect domain id allocation. Signed-off-by: Jiang Liu Cc: Alex Williamson Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed