commit | 18d99165d3ebe5e365de57bcc673901d754c7142 | [log] [tgz] |
---|---|---|
author | Jiang Liu <jiang.liu@linux.intel.com> | Mon Jan 06 14:18:10 2014 +0800 |
committer | Joerg Roedel <joro@8bytes.org> | Thu Jan 09 12:43:24 2014 +0100 |
tree | 9729b26cae46a1ebf2c66cdd8de7418beb4948c3 | |
parent | ada4d4b2a32e9f63d4dcb9f69578473408f4622c [diff] |
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 <jiang.liu@linux.intel.com> Cc: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>