commit | 7a5a566eab48da7522f601f96aef3af102178046 | [log] [tgz] |
---|---|---|
author | Joerg Roedel <jroedel@suse.de> | Tue Jun 30 08:56:11 2015 +0200 |
committer | Joerg Roedel <jroedel@suse.de> | Wed Jul 01 08:43:07 2015 +0200 |
tree | 04aa5c7a5d77036e8a83f52a7b3585772627ca75 | |
parent | a6e08fb2d2f9eb38f52e6f2425a38f1cb9794742 [diff] |
iommu/amd: Introduce protection_domain_init() function This function contains the common parts between the initialization of dma_ops_domains and usual protection domains. This also fixes a long-standing bug which was uncovered by recent changes, in which the api_lock was not initialized for dma_ops_domains. Reported-by: George Wang <xuw2015@gmail.com> Tested-by: George Wang <xuw2015@gmail.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>